Android AI Coding Benchmark Update: The Technical Logic Behind Doubling Long-Horizon Task Pass Rates

    This article breaks down a recent update to a mobile development benchmark that added new large language models and shifted its focus toward long-horizon tasks. It explains why pass rate, task completion, and per-run time and cost must be evaluated together, why long-horizon tasks fail due to context drift, missing state management, and weak verification loops, and how to apply reusable engineering practices such as task state machines, feedback-driven self-correction, semantic caching, tiered models, and observability. It also offers model selection guidance and describes how general cloud capabilities can support evaluation and continuous improvement.

    1. What the Update Signals: From “Writing Code” to “Delivering Tasks”

    A mobile development benchmark platform recently completed a version iteration. It added results for several new large models and pushed the evaluation focus further toward long-horizon tasks.

    A long-horizon task requires a model to maintain context across multiple interaction turns, repeatedly compile and debug, modify code across multiple files, and finally produce a result that runs and passes validation. This is fundamentally different from traditional single-turn code completion: the latter checks local syntactic correctness, while the former checks end-to-end engineering capability.

    According to public data, the pass rate of top models is about 40%, mid-to-upper models cluster around 20%, and the previous generation of comparable models was only about 10%. The new generation has doubled the pass rate of the previous one. At the same time, the average time for a complete single run dropped from more than 60 hours to about 20 hours, and the average cost fell from more than $400 to about $300. Another lightweight model achieved a pass rate of about 17% with a per-run cost of less than $10 and a runtime of about 12 hours, showing a clear advantage on cost.

    This data sends three signals:

    • The “completability” of long-horizon tasks is improving rapidly; doubling the pass rate marks a leap in engineering usability.
    • Efficiency and cost are being optimized together, indicating that the gains come not only from model capability but also from inference and scheduling engineering.
    • Lightweight models have clear value in cost-sensitive scenarios; model selection is no longer purely about capability.

    2. Reading the Metrics: Pass Rate, Completion, and Cost Must Be Viewed Together

    A single metric can easily mislead decisions. A three-dimensional evaluation approach is recommended:

    1. Pass rate: whether the task truly meets the acceptance criteria. This is a hard metric.
    2. Average task completion: reflects the quality of partially completed work and shows “how far off” a task is. It is suitable for prioritizing improvements.
    3. Per-run time and cost: determine whether a solution can scale. In continuous integration environments, cost grows linearly with the number of commits.

    For example, a model with a 24.0% pass rate and 82.3% completion not only gets tasks right but also completes most of the work in tasks that do not fully pass. A model with a 17.3% pass rate and a cost of less than $10 is better suited for batch processing of massive low-complexity tasks. During evaluation, put all three in one table and score them by business weight instead of only looking at leaderboard rankings.

    3. Why Long-Horizon Tasks Are Hard: Context, State, and Verification

    Long-horizon task failures usually fall into three categories:

    • Context drift: after multiple rounds of changes, the model forgets early constraints, causing inconsistencies.
    • Missing state management: no structured state is maintained for “files changed, tests passed, items pending fix.”
    • Weak verification loop: without automated compile and test feedback, the model cannot self-correct.

    Therefore, the engineering side needs to break tasks into verifiable small steps and provide machine-readable feedback for each step.

    4. Reusable Engineering Practices: Applying Doubled Pass Rates to Your Workflow

    1. Task Tiering and State Machine

    Model long tasks as a state machine with clear transitions among “plan, modify, compile, test, fix,” and avoid sending one giant instruction at once.

    1. {
    2. "task_id": "login_flow_fix",
    3. "state": "TESTING",
    4. "constraints": ["keep_api_compat", "no_new_deps"],
    5. "changed_files": ["src/auth/login.ts"],
    6. "pending": ["fix_null_check"],
    7. "verification": {"build": "passed", "unit_test": "running"}
    8. }

    2. Feedback-Driven Self-Correction

    Trim compile errors and test failure stacks, then feed them back to the model. Limit the length of each feedback to avoid context explosion.

    3. Cost and Latency Optimization

    • Semantic caching: reuse historical fix paths for similar tasks.
    • Tiered models: route simple tasks to lightweight models and escalate complex tasks to higher-capability models.
    • Batching and concurrency control: isolate build environments in a container platform and use a message queue to smooth peaks.

    4. Observability

    Use logging services and monitoring alerts to record the time, cost, and failure reasons of each task, forming an evaluation set that supports continuous regression.

    5. Selection Guidance and Cloud Support

    Selection should be based on the business profile: for high-complexity, strong-compliance scenarios, prioritize models with high pass rates; for massive low-risk tasks, prioritize low-cost models; most teams will eventually adopt “hybrid routing.” For implementation, general capabilities such as object storage, container platforms, message queues, logging services, and monitoring alerts offered by Baidu AI Cloud can support evaluation dataset management, build environment isolation, task scheduling, and full-link observability, helping teams turn benchmark metrics into continuous improvement of their own R&D processes.

    6. Conclusion

    The significance of leaderboard rankings lies not in the positions themselves but in what they reveal: the feasible boundary of long-horizon engineering tasks is expanding. For developers, the worthwhile investments are the evaluation system, state management, and feedback loops. For enterprises, bringing pass rate, completion, and cost into unified governance is the only way to keep AI coding scalable, controllable, and sustainable.