Chinese LLMs Are Closing the Gap in Coding Performance

    This article examines how Chinese open-source LLMs are approaching the strongest global models in software engineering benchmarks, and why the shift from single-question answering to long-horizon task completion matters more than leaderboard rankings. It breaks down four benchmark categories, explains four common failure points in long-horizon tasks, and outlines a verifiable pipeline architecture, a self-built evaluation approach, and cost, security, and governance practices for turning benchmark advantages into delivery advantages.

    1. What the Progress Actually Means: From Single-Point Answers to Long-Horizon Delivery

    On April 7, a Chinese LLM team released and open-sourced a new-generation model that scored close to, and in some areas slightly above, leading international models across several software engineering and tool-use benchmarks. The scores draw attention, but the more meaningful signal is a shift in where capability is centered: evaluation is moving from “answering one question” to “completing one engineering task.”

    This shift matters because the difficulty of software engineering work has never been the correctness of a single line of code. It is state management across long chains: understanding repository structure, locating relevant files, modifying multiple call sites, running tests, reading errors, and iterating again. The industry commonly refers to tasks that require multi-step reasoning and multiple rounds of environment interaction as long-horizon tasks. Whether a model can stay aligned with the goal after dozens of operations, without forgetting constraints or introducing regressions, is the dividing line for entering a development workflow.

    Judging from the public structure of the results, this generation of models shows a clear profile: first-tier performance on repository-level bug-fixing tasks, a remaining gap on more open-ended tasks such as generating a complete code repository directly from natural language, and balanced performance on dimensions like terminal operations and difficult knowledge question answering with tools. Balance matters more than a single-category win, because real development is a mixed workload.

    2. Reading the Scorecard: What Each of the Four Benchmark Categories Measures

    • Repository-level repair benchmarks: Given a real project and a defect description, the model must produce a patch that passes tests. This simultaneously tests code comprehension, cross-file reasoning, and a verification loop, making it the capability measure closest to day-to-day development.
    • Natural language to complete repository: Generating a runnable multi-module project from a requirements description, testing architecture decomposition, dependency management, and interface consistency. This is significantly harder than single-file generation.
    • Terminal and command-line operations: Testing the ability to execute, observe, and correct course in a real shell environment, which is the foundation for agent deployment.
    • Difficult benchmarks with tools: Testing when to retrieve, when to compute, and how to cross-validate, reflecting the level of tool orchestration and self-verification.

    One caveat: benchmark scores are heavily influenced by prompts, scaffolding, sampling counts, and verifier strength, so direct cross-leaderboard comparison is not rigorous. Engineering selection should return to your own task set for secondary validation.

    3. Why Long-Horizon Tasks Are Hard: Four Failure Points

    1. Context drift: As steps accumulate, early constraints get diluted, and the model starts to “forget” coding conventions and compatibility requirements.
    2. Error accumulation: A 95% success rate per step drops below 40% after twenty chained steps; long chains are extremely sensitive to stability.
    3. Missing verification: Without tests and static checks as a feedback source, the model can only judge that a change is “correct” by imagination.
    4. Cost runaway: Repeatedly re-reading the entire repository and re-running heavy test suites makes token and compute consumption rise non-linearly.

    4. Deployment Architecture: Put the Model Inside a Verifiable Pipeline

    The recommended approach is to treat the model as a “candidate patch generator” rather than a decision maker, with deterministic engineering infrastructure owning the judgment:

    1. Requirement/defect ticket
    2. → Repository retrieval and pruning (only relevant context)
    3. → Model generates patch (constraints written into prompt and spec files)
    4. → Static checks + unit tests + integration tests
    5. → On failure, feed back the minimal error snippet, up to N rounds
    6. → Human review and merge

    Supporting practices: maintain a machine-readable conventions document for the repository (directory responsibilities, naming and commit conventions); split tests into a “fast subset” for iteration and a “full subset” before merging; record structured logs for each interaction round to enable replay and root-cause analysis.

    5. Evaluation and Selection: A Small Self-Built Benchmark Is More Reliable

    Sample 50–100 items from real tickets, covering four categories: bug fixes, small feature development, scripts and configuration, and dependency upgrades. Fix the verification commands and timeouts, and record three metrics: first-pass rate, average interaction steps, and cost per task. Example:

    1. result = run_task(task, model, max_steps=12, timeout=600)
    2. metrics = {
    3. "pass@1": result.passed,
    4. "steps": result.steps,
    5. "cost": result.tokens_in + result.tokens_out,
    6. }

    Comparing under the same scaffolding and the same verifier is the only way to avoid mistaking engineering differences for model differences.

    6. Cost, Security, and Governance

    On cost, a tiered strategy works: small models for simple tasks, large models for complex ones; prune context on demand; cache retrieval results. On security, enforce least privilege, sandboxed execution, dependency source validation, and key isolation, and never allow the model to touch production environments directly. On governance, clarify open-source license obligations, intellectual property of generated code, and audit trails.

    7. Conclusion

    Chinese models approaching the strongest global coding performance is significant not for the ranking but for the shift in competitive focus toward the reliability of long-horizon tasks. For teams, the pragmatic path is to constrain models with a verifiable pipeline, select with a self-built benchmark, and reduce drift with engineering conventions, converting a “benchmark advantage” into a “delivery advantage.” If you need elastic compute and shared foundational capabilities such as unified logging, monitoring, containers, and object storage to carry the pipeline above, you can evaluate the relevant general-purpose cloud services from Baidu AI Cloud.