AI Coding Benchmark Update: The Engineering Logic Behind a Doubled Pass Rate
A refreshed AI coding benchmark for mobile development shows one model doubling its long-horizon task pass rate from 12.0% to 24.0% while cutting a single full run from 66.2 to 27.4 hours and from $418.3 to $317.4. This article explains how to read those numbers: why average completion of 82.3% and a pass rate of 24.0% measure very different things, where the "last mile" failures come from, and why per-passing-task metrics change the efficiency picture. It then turns the analysis into practice — task specs, plan/execute/verify loops with feedback gating, rollback checkpoints, reproducible verification environments, tiered model dispatch, and metric designs for evaluating AI coding capability — and closes with guidance on integrating AI coding into CI and scaling it on cloud infrastructure.
1. What the new leaderboard actually signals
A recently updated benchmark for AI coding in mobile development added several new models. One new model reached a 24.0% pass rate on long-horizon tasks with an average task completion of 82.3%, placing sixth on the long-horizon board. The previous generation in the same family scored only 12.0% — the new release doubled it. The average wall-clock time of a full single run dropped from 66.2 hours to 27.4 hours, and average cost fell from $418.3 to $317.4. A separate model positioned around low cost posts a 17.3% pass rate, 12.0 hours per run and just $9.9 in cost. The model at the top of the board reaches a 40.0% pass rate.
For engineering leaders, the value of such a board is not the ranking itself but the signal it carries about how far “AI independently delivers a complete development task” has actually come. Long-horizon tasks require multiple rounds of planning, edits across many files, and continuous builds and tests before the work can be completed and verified. They come closest to the full loop of real development — from requirement to acceptable, verifiable deliverable — which is why they are generally treated as the hardest class of scenario for measuring coding ability.
2. Reading the numbers: four takeaways
2.1 Doubling the pass rate is about doing it right, not doing more
The pass rate went from 12.0% to 24.0%. On a 100-task set, the number of tasks completed by the model on its own and passing every acceptance check rose from 12 to 24. Two distinct metrics are involved:
- Task completion measures how far the task was pushed — for example, the number of files modified or the proportion of required feature points implemented.
- Task pass rate requires the task to satisfy all acceptance conditions at once: it builds, it introduces no new static-check warnings, unit and UI automation tests all pass, and behavior matches the requirement.
The second is an all-or-nothing judgment. If the main body of a feature is correct but edge-case handling or a regression test fails, the whole task still counts as a failure. So a doubled pass rate means the model is no longer just writing more code — it is delivering correct outcomes.
2.2 High completion does not imply a high pass rate: the last mile is the bottleneck
Average task completion reached 82.3% while the pass rate stayed at 24.0% — a gap of 58.3 percentage points. Most tasks are pushed past 80% completion at the “main body of the feature” level, yet most still fail full acceptance. The failures fall into four typical categories:
- Buildability: the change does not compile, or dependencies and resource references are incomplete.
- Regressions: the new feature works but breaks existing behavior, so previously passing tests now fail.
- Requirement drift: a superficially reasonable implementation that violates implicit constraints in the requirement — empty states, error branches, permission and lifecycle handling.
- Missing wrap-up: no necessary tests, configuration not updated in sync, or a patch whose scope exceeds what was expected.
These four share one property: nearly all of them can be detected automatically, provided the acceptance environment is complete and the criteria are explicit. That is precisely where engineering improvements pay off.
2.3 Time and cost fell together, so the efficiency gain is easy to underestimate
Single-run time fell 58.6% and cost fell 24.1%. Beyond the change in pass rate itself, both improvements show up in the cost and time per successful output. Dividing average cost by pass rate approximates how much you must spend to obtain one passing task. Based on the public figures:
| Metric | Previous generation | New model | Change |
|---|---|---|---|
| Task pass rate | 12.0% | 24.0% | 2x |
| Average task completion | Not disclosed | 82.3% | Not comparable |
| Average time per run | 66.2 hours | 27.4 hours | −58.6% |
| Average cost per run | $418.3 | $317.4 | −24.1% |
| Average cost per passing task (derived) | ~$3,485.8 | ~$1,322.5 | ~−62.1% |
| Average time per passing task (derived) | ~551.7 hours | ~114.2 hours | ~−79.3% |
Note: derived figures are arithmetic transformations of public data, not official leaderboard metrics. Actual values are affected by task difficulty distribution, failure patterns and budget caps.
The conclusion: the new version delivers twice as many successful tasks using roughly 40% of the previous generation’s wall-clock time and about three-quarters of its cost. Measured by cost and time per passing task, cost efficiency improved about 2.64x and time efficiency about 4.83x. Teams that make selection decisions on a per-run budget will easily underestimate the real value of this upgrade.
2.4 Leaderboard shape: leaders stay ahead, and the low-cost route has distinct value
The top model’s 40.0% pass rate is 16 percentage points above the new model’s. Even with a doubled pass rate, the leader still holds a clear advantage on complex tasks. The upper part of the board also contains a model with a 17.3% pass rate, 12.0 hours per run and only $9.9 in cost. By the same method, its average cost per passing task is about $57.2 — under 5% of the new model’s. Capability and cost are not simply linearly related, which gives tiered dispatch strategies a concrete data basis.
3. Why long-horizon tasks are hard: failure mechanisms and countermeasures
3.1 Errors compound along the task chain
A long-horizon task typically spans understanding the requirement, retrieving code, forming a plan, editing multiple files, compiling and debugging, and running verification. Assume each stage is 95% correct in isolation; after 10 chained stages the overall correctness is about 0.95^10 ≈ 60%. Even with strong single-step ability, the end-to-end chain degrades substantially. Countermeasures:
- Shorten the span of each step to reduce the number of chained stages.
- Give every stage a verifiable artifact — a plan, an interface definition, a test result.
- Introduce human or independent review at critical points.
3.2 Context bloat drowns out key information
As rounds accumulate, file contents, logs and tool-call traces pile up, and critical constraints get diluted. Longer context also usually means higher per-token compute cost, which is one reason long tasks are expensive. Practical controls:
- Structure context in layers: global architecture notes, module interfaces, code relevant to the current change, and a record of prior decisions.
- Summarize long text such as logs and stack traces before injecting it.
- Maintain a separate, minimal context for each subtask.
3.3 Without effective feedback, confident errors do not self-correct
With no compile or test signal, a model will often keep pushing in the wrong direction. Make every change produce feedback immediately:
After each round of edits, collect feedback in this order:1. Compile/build result → if it fails, fix it first and do not start the next round2. Static check results → only zero new findings is acceptable3. Unit tests for affected modules → verify the new behavior4. Related regression tests → confirm existing functionality still works
3.4 Tool-call errors and unstable execution environments
Tool calls for file reads and writes, command execution and test runs can hit wrong paths, timeouts or partial failures; mobile builds, simulators and on-device tests are more sensitive to the environment. Countermeasures:
- Set timeouts and retries on tool calls.
- Validate each tool’s return value rather than assuming success.
- Run in an isolated, reproducible environment.
4. Measuring “AI coding ability”: metric design recommendations
4.1 Always read pass rate together with completion
Completion alone overstates what a model can actually deliver; pass rate alone does not tell you which stage failed. Record all of the following:
- Task-level pass rate: share of tasks passing all acceptance checks.
- Stage pass rate: the pass share of each individual gate — build, static checks, unit and UI tests, behavioral acceptance.
- Failure reason distribution: used to locate the bottleneck and guide the next improvement.
4.2 Distinguish “passes in one attempt” from “passes within N attempts”
Single-run pass rates carry randomness. Track first-attempt pass rate and within-N-attempts pass rate separately, and compare under the same budget. For example, when each task may be attempted at most twice:
# Illustrative: task-level pass rate after multiple attemptsdef pass_rate_with_retries(results, max_attempts=2):# results: {task_id: [whether each attempt passed, ...]}passed = 0for task_id, attempts in results.items():if any(attempts[:max_attempts]):passed += 1return passed / len(results)
A within-N-attempts pass rate better reflects real input/output trade-offs: most teams do not give a task only one chance, but they do not retry indefinitely either.
4.3 Bind cost and time to outcome metrics
Use a combination of metrics so you neither optimize blindly for cheapness nor blindly for capability:
- Cost per passing task = total spend ÷ passing tasks, reflecting how expensive “bought success” is.
- Time per passing task = total time ÷ passing tasks, reflecting overall delivery cadence.
- Pass rate under a budget constraint: for a given per-task cost or duration cap, compare each option’s pass rate against the organization’s real resource limits.
4.4 Cover non-functional requirements in the evaluation
Mobile applications have explicit requirements around compatibility, permissions, performance and battery use, and security. Acceptance should cover at least:
- Buildability and releasability: the build pipeline completes, artifacts are signed and configured correctly.
- Quality gates: no new static-check warnings, unit and UI automation tests covering key paths.
- Compatibility: consistent behavior across screen sizes, OS versions and device form factors.
- Non-functional items: minimal permission declarations, sensitive data never written to logs, startup and key-screen latency within acceptable bounds.
4.5 Improve the quality and discriminative power of the evaluation set
- Source tasks close to real requirements, covering defect fixes, feature development, refactoring and dependency upgrades.
- Give each task explicit acceptance criteria and boundary cases — boundary cases are what separate models most sharply.
- Refresh the task set periodically so model training data does not overlap with the evaluation set and inflate scores.
- Increase sample size for tasks of equal difficulty to reduce the impact of randomness in a single run.
5. Putting long-horizon tasks into practice: reusable engineering patterns
5.1 Write the spec before the code
The leading cause of long-task failure is misunderstanding the requirement. Have a person or a model first pin the requirement down as a structured task spec, then start coding:
{"task_id": "T-1042","type": "feature","goal": "Support filtering the list page by amount range, showing an empty state when nothing matches","constraints": ["Do not change the existing pagination logic","Empty-state copy comes from resource files, no hardcoding","Filter conditions persist with the page state"],"acceptance": ["Build passes with no new static check warnings","Boundary cases pass: empty list, single result, very large amount","All related regression cases pass"],"risks": ["Boundary behavior when pagination and filtering are combined"],"budget": { "max_duration_minutes": 45, "max_cost": 0.8 }}
The constraints and risks fields are what keep rework down; the budget fields cap the cost of a long task.
5.2 Decompose with plan — execute — verify
- Plan: have the model output the list of files to change, the implementation steps and the risks, then have a human review quickly. This stage is cheap yet intercepts most directional mistakes.
- Execute: apply changes step by step, building immediately after each substep.
- Verify: run unit and UI automation tests; on failure, feed the error logs back to the model for repair and cap the number of repair rounds.
# Illustrative: long-task loop with budget and failure diagnosisdef run_long_task(spec, repo, env, max_rounds=5):plan = planner.plan(spec, repo) # Stage 1: produce a reviewable planif not reviewer.approve(plan):return {"status": "needs_human", "reason": "plan_rejected"}for round_index in range(1, max_rounds + 1):patch = coder.apply(plan, repo, feedback=last_feedback)report = env.verify(patch, spec["acceptance"]) # build + checks + testsif report.passed:return {"status": "passed", "rounds": round_index,"cost": total_cost(), "report": report}if total_cost() > budget_of(spec):breaklast_feedback = summarize_failures(report) # feed back only key error summariesreturn {"status": "failed", "reason": "budget_or_rounds_exceeded","last_report": report}
The core idea is to turn failure information into the next round’s input, while dual constraints on rounds and budget prevent endless repair loops.
5.3 Rollback-able checkpoints and staged verification
- Create a separate version-control branch or workspace copy before each subtask; on failure, discard it entirely without touching the mainline.
- Run unit tests and UI automation tests separately on that branch, and allow merging into the integration branch only after both pass.
- Review the change scope before merging — number of files touched, new dependencies, whether core modules were affected — and route changes above threshold to human review.
5.4 Reproducible, isolated verification environments
- Pin dependency versions, build tool versions and test data into an environment image so every evaluation runs under identical conditions.
- Execute each task in its own container so tasks cannot interfere with one another.
- Archive test results, logs and patches together to make failure post-mortems and trend analysis practical.
5.5 Tiered dispatch: low-cost models filter, high-capability models backstop
Given the derived cost differences above, escalate from low cost to high capability: first let a low-cost model attempt the task and self-verify; if it passes, deliver. Tasks that fail move to a more capable model.
# Illustrative: tiered dispatch balancing cost and success ratedef dispatch(task, models):for model in models: # ordered from low to high costresult = run_with_budget(task, model)if result.passed:return resultif result.reason == "budget_exhausted":continue # out of budget, escalate to the next tierreturn escalate_to_human(task)
This strategy only holds if verification is reliable enough that “self-check passed” closely matches “actually passed.” Otherwise a low-cost model will misjudge a wrong result as success, and tiered dispatch amplifies the risk instead of reducing it.
6. Integrating AI coding into an existing development workflow
6.1 Define the applicable boundary
Not every task is suitable for fully independent AI completion. Split by risk and verifiability:
- Pilot first: tasks that can be verified automatically with a controlled blast radius — defect fixes, adding unit tests, dependency upgrades, low-risk refactoring.
- Use with caution: changes to core business rules, data models or security-related logic, which need deep human involvement.
- Defer: tasks whose requirements are ambiguous or whose acceptance criteria cannot be automated.
6.2 Embed AI coding in CI rather than leaving it in “chat-generated” output
- Trigger automatic builds and static checks after each commit and use the results as the model’s next-round input.
- Run the full regression suite on model-submitted changes; do not allow merges when tests fail.
- Record the time, cost and pass rate of each AI-driven change to build a data foundation for continuous improvement.
6.3 Platform infrastructure to support scale
Once evaluation and automation grow in volume, platform-level infrastructure is usually needed. On Baidu AI Cloud, such a setup can be assembled from the following generic capabilities (availability varies by region; refer to the official documentation):
- Container platform: isolated, reproducible build and test environments for each task.
- Object storage: archiving code snapshots, patches, test reports and other evaluation artifacts.
- Message queue: queuing and load smoothing for large volumes of long-horizon tasks, avoiding resource contention.
- Logging service and monitoring alerts: unified collection of per-task time, cost and failure rate, with alerts when metrics go out of range.
The value of this combination is turning AI coding from an occasional personal tool into a measurable, schedulable, governable part of the development process.
7. Conclusion: from reading the board to building the system
The most valuable information in this leaderboard update is not any model’s specific rank but three trends:
- Long-horizon pass rates can double quickly, which means engineering改造 — specification, verification loops and context governance — can sometimes deliver returns comparable to a model upgrade itself.
- The gap between completion and pass rate shows where optimization should concentrate: build, regression and edge-case handling, the “last mile.”
- Falling time and cost, combined with tiered dispatch, let organizations achieve higher effective output within a controlled budget.
A sensible path for teams:
- Build an evaluation set and acceptance criteria that reflect your own business.
- Compare options with metrics such as cost per passing task and time per passing task.
- Turn the verification loop, checkpoints and tiered dispatch into standard process.
- Finally, scale on cloud infrastructure such as Baidu AI Cloud.
Only then does AI coding ability translate into stable, measurable, sustainable development productivity.
