Mobile AI Coding Benchmark Update: Long-Horizon Task Pass Rate Doubles

    This article covers a recent public benchmark update for AI coding tools on mobile development. It explains why evaluation is shifting from single-function completion toward long-horizon tasks such as cross-file changes, build repair, and regression testing. It reviews the reported pass rates, completion rates, time, and cost figures, and describes the metrics and reproducible evaluation methods teams can use to compare these tools. It closes with practical cost-optimization advice and selection guidance.

    1. Why Long-Horizon Tasks Have Become a Focus of Evaluation

    Mobile development is complex. Device matrices are large, OS versions are fragmented, build pipelines are long, and permission and network conditions vary widely. A seemingly simple requirement often touches UI state, data persistence, network requests, error handling, compatibility adaptation, and regression testing.

    Single-turn code completion can improve local productivity, but it does not answer a key question: can an AI coding solution independently complete a verifiable change in a real engineering project?

    Long-horizon task evaluations usually require a solution to work through a codebase, build environment, and test suite in multiple steps. These steps include locating the problem, reading relevant files, generating a patch, running the build, running tests, fixing based on failure messages, and submitting a verifiable result. These evaluations measure more than code generation quality. They also cover task decomposition, context management, tool use, failure recovery, and cost control. For this reason, pass rate, completion, time, and cost must be read together.

    2. Key Signals from This Benchmark Update

    The public data shows three main signals.

    First, the doubled pass rate suggests improving long-horizon capability. One participating solution rose from 12.0% to 24.0%. The absolute pass rate is still modest, but the relative improvement is large. In long-horizon tasks, a doubled pass rate usually indicates better multi-step planning, error localization, or use of test feedback, rather than reliance on code completion alone.

    Second, completion and pass rate must be interpreted separately. The average task completion rate of 82.3% shows that the solution completed a large share of sub-goals in most tasks. However, the final pass rate was only 24.0%. The gap shows that “nearly done” and “mergeable and verified” are different outcomes. In real development, a patch that fails the final tests may still need manual takeover. Completion is therefore useful for diagnosing where capability falls short, but it cannot replace pass rate.

    Third, time and cost differ significantly across solutions. One solution’s average time per full test round fell from 66.2 hours to 27.4 hours, and its average cost dropped from $418.3 to $317.4. This indicates gains in execution efficiency and resource use. Another solution completed a full test round in 12.0 hours at a cost of $9.9, which points to strong cost efficiency. Public materials show the top-performing solution reached a 40.0% pass rate. Teams choosing a solution should still weigh their own task mix, manual review costs, and compliance requirements, and should not rely on a single ranking.

    3. Core Metrics and Cost-Efficiency Model

    An evaluation should include at least the following metrics:

    • Pass rate: The number of passed tasks divided by the total number of tasks. It reflects end-to-end usability.
    • Completion rate: A weighted score of sub-goals. It reflects how far a task progressed and helps identify the step where failures occur.
    • Average time: Record wall-clock time, effective execution time, and waiting time. Parallelism can hide real efficiency, so separating these measures matters.
    • Average cost: Include inference calls, environment runtime, retries, storage, and manual review.
    • Stability: Variance in pass rate across repeated runs of the same task, retry counts, and manual takeover rate.
    • Regression quality: Whether a patch introduces new failures, and whether it passes static checks and integration tests.

    Cost efficiency can be expressed with the following pseudocode:

    1. unit_cost = (inference_cost + environment_cost + retry_cost + review_cost) / max(pass_count, 1)
    2. effective_throughput = pass_count / total_wall_time

    Here, unit_cost is the average cost per passed task. It reflects actual investment more closely than the price of a single call. effective_throughput is the number of verifiable results produced per unit of time. A solution with a low unit price can still have a higher cost per passed task if it requires many retries or heavy manual takeover. Conversely, a solution with a high pass rate may not suit high-frequency use if its runtime or review costs are too high.

    4. Designing a Reproducible Evaluation

    To make evaluation results reproducible, design the task set, environment, judging rules, and records carefully.

    Layered task set: Divide tasks into levels such as single-file fixes, multi-file refactoring, build failure repair, test generation, compatibility adaptation, and performance regression. Include enough samples at each level and cover a range of complexity. Each task description should state the goal, constraints, and acceptance criteria clearly to avoid ambiguity.

    Environment isolation: Use fixed container images to lock dependency versions. Prepare a device matrix or simulated environments, and standardize network, permission, and storage settings. Evaluation environments should be easy to recreate, so that results do not depend on whether a task passes on one developer’s machine but fails on the evaluation server.

    Judging rules: Rely mainly on automated tests, supplemented by static checks, build results, and manual spot checks. For tasks involving UI or interaction, add screenshot comparison, behavior assertions, and log inspection. Define judging rules in advance, and do not adjust them based on results.

    Run records: Record patches, execution traces, failure reasons, retry counts, time, and cost. Run each task multiple times and report medians and percentiles, not only the best result. To prevent data leakage, use a hidden test set or time-split tasks, and make sure training data does not overlap with evaluation tasks.

    A sample workflow looks like this:

    1. for task in suite:
    2. env = provision(task.image, task.device_profile)
    3. result = agent.run(task.prompt, env)
    4. score = judge(result.patch, task.tests, task.checks)
    5. record(task.id, score, result.trace, result.cost, result.wall_time)

    5. Engineering Adoption and Cost Optimization

    In practice, teams can integrate long-horizon AI coding evaluation into their development workflow. Run high-risk tasks before merge requests, run full regression suites overnight, and generate diagnostic reports for failed tasks. Baidu AI Cloud offers general-purpose container, object storage, logging, and monitoring alerting capabilities that teams can use to build isolated evaluation environments. The specific choice should depend on existing infrastructure, security policies, and budget.

    Cost can be reduced in several ways:

    • Schedule tasks by difficulty. Use lightweight solutions for simple tasks and stronger solutions for complex ones.
    • Cache dependency downloads and build artifacts.
    • Isolate resources when running tasks in parallel.
    • Stop early on failure to avoid wasted retries.
    • Run tests incrementally.
    • Limit patch scope to reduce unrelated changes.
    • Sample logs before storing them.

    The goal should be to lower the cost per passed task, not simply to lower the price of each call.

    6. Selection Guidance and Risks

    Build a decision matrix before choosing a solution. For frequent, small tasks, focus on cost per passed task and response time. For complex, long-horizon tasks, focus on pass rate, completion rate, and manual takeover rate. For compliance-sensitive scenarios, focus on sandbox isolation, permission control, audit logs, and code redaction. Teams can build 20 to 50 representative tasks from their own historical defects, run a small-scale validation with repeated runs, calculate cost efficiency, and then decide whether to expand the scope.

    Benchmarks also have limits. The task set may be biased, the evaluation environment may differ from real engineering setups, cost definitions may vary, and public data may change with new versions. A doubled pass rate is a meaningful sign of capability gains, but it does not replace a team’s own reproducible evaluation. Continuous evaluation, version pinning, result auditing, and manual review are necessary to turn benchmark data into sound engineering decisions.