Evaluating the Coding Ability of Chinese LLMs: Technical Analysis and Engineering Practices

    This article explains why running a few benchmark problems is not enough to evaluate a coding model, and examines how Chinese large language models have improved their programming capabilities. It covers the role of verifiable rewards in post-training, the asymmetry between backend and frontend tasks, long-tail limitations, and practical methods for building stable human-AI workflows with verification pipelines, context engineering, distillation, and internal benchmarks.

    1. Introduction: Why Running Benchmark Problems Is Not Enough

    Chinese large language models have made noticeable progress in code generation, and this has sparked a lot of discussion. A common pattern is that on release day, the community produces comparison conclusions based on a handful of problems, while people who use the model over the long term often reach completely different judgments. The reason is straightforward: the difficulty of programming tasks lies not in single-turn question answering, but in engineering processes that span long chains, multiple turns, and feedback.

    Evaluating a coding model therefore requires observation at three levels:

    • Single-point generation quality: correctness and readability of function-level and snippet-level code;
    • Mid-length chain stability: reliability of cross-file changes, dependency understanding, and error rollback;
    • Long-horizon autonomy: whether the model can close the loop from requirements to verification without human intervention.

    Only when the third level is stable does a model deliver real engineering value. This article takes a neutral perspective and discusses the capability structure, limitation boundaries, and engineering adoption methods of current Chinese coding models.

    2. The Post-Training Pipeline: The Real Source of Coding Capability Gains

    Pre-training determines how much code a model has seen; post-training determines whether it can get work done. The main contribution to capability gains over the past two years has come from post-training, especially reinforcement learning pipelines built around code.

    2.1 Verifiable Rewards Are the Key Prerequisite

    Code tasks have a natural advantage: correctness can be judged automatically. Given inputs, expected outputs, and test cases, whether a program passes is a binary, objective signal. This allows reinforcement learning to move beyond human-annotated scoring and form a closed loop of generate, execute, verify, and return reward.

    A sketch of the flow (pseudocode):

    1. for batch in tasks:
    2. solutions = policy.generate(batch.prompt, n=8) # Sample multiple candidates
    3. rewards = [run_tests(s, batch.tests) for s in solutions]
    4. policy.update(batch.prompt, solutions, rewards) # Use pass rate as the reward

    The genuinely difficult part in engineering is not the algorithm but the environment: sandbox isolation, dependency pre-installation, timeout control, flaky test filtering, and curriculum design when rewards are sparse. Whoever builds this execution infrastructure solidly will see more sustained improvement in coding ability.

    2.2 From Writing Code to Modifying Code

    In real development, models mostly face existing codebases. This requires three abilities: locating relevant files, understanding implicit conventions, and making minimal changes. A small set of isolated problems in an evaluation set cannot reflect these abilities, and combining long context with repository-level retrieval is the mitigation approach widely used in the industry today.

    3. Uneven Capabilities: The Asymmetric Landscape of Frontend and Backend

    One repeatedly confirmed observation is that most current coding models show a clear gap between routine backend development and frontend visual implementation.

    3.1 Why Backend Development Is Easier to Automate

    Backend development has strong verification signals: whether an API returns the expected structure, whether unit tests pass, and whether the service starts. This feedback can be obtained automatically, allowing the model to self-correct within the loop. As a result, module development, API definitions, data access layers, and validation logic under common frameworks are already at a fairly comfortable level of automation.

    3.2 Why Frontend Is Harder

    Frontend correctness involves many dimensions that are hard to quantify: how layouts behave across multiple viewports, whether interaction feedback feels natural, and whether visual hierarchy is clear. Without visual input capability, a model can only write blind, unable to observe rendered results and iterate. This is also why intelligent coding tools with multimodal and interface operation capabilities have a clear advantage in end-to-end delivery: they can take screenshots, compare, and adjust.

    3.3 The Boundary of Long-Tail Frameworks and Command Lines

    Model capability typically degrades in long-tail areas: secondary frameworks, obscure command-line flags, and private internal toolchains. These topics have low density in public corpora, and models tend to fabricate confidently. The engineering response is not to wait for the model to improve, but to externalize deterministic knowledge:

    • Use retrieval to inject internal specifications and scaffolding commands into context;
    • Replace model memory with checklist-based verification scripts;
    • Set human confirmation gates for high-risk operations.

    4. Engineering Practices: Building a Stable Human-AI Coding Workflow

    4.1 Layered Tool Selection

    A pragmatic combination principle is to divide work by stage: leave interface and interaction implementation to tools with visual feedback, and business logic and API implementation to models with stronger reasoning and stability. This avoids the weaknesses of any single model while controlling overall cost.

    4.2 Make Verification Infrastructure

    1. pipeline:
    2. - lint_and_format # Static checks
    3. - unit_tests # Unit tests
    4. - build # Build artifacts
    5. - e2e_smoke # End-to-end smoke tests
    6. - preview_and_screenshot # Interface preview and screenshot capture

    Every generated result must pass through the same pipeline. The model is responsible only for submitting changes, not for declaring success.

    4.3 Context Engineering Over Prompt Tricks

    In practice, the biggest gains often come not from wording optimization but from context organization: repository structure summaries, interface conventions, error log excerpts, and relevant historical commits. A stable, reusable context supply improves the first-pass success rate more than repeatedly tuning prompts.

    5. Open Source and Distillation: Moving Down the Cost Curve

    The open-sourcing of strong coding models has a direct consequence: capability improvement no longer depends only on closed-source services. Distilling successful trajectories from large models on real tasks, including execution feedback, into smaller models is a widely accepted effective path in the industry.

    Boundaries to keep in mind:

    • The value of distillation data depends on task coverage and feedback authenticity; a small number of question-answer samples cannot support capability transfer;
    • The license agreements and terms of use of upstream models must be strictly followed;
    • Small models still need external pipelines as a fallback for long-horizon tasks.

    For enterprises, the more realistic benefits are keeping data within their own domain and controlling costs. Using common cloud capabilities such as container platforms, object storage, log services, and monitoring and alerting, teams can build private training and inference environments that scale elastically with business load. Baidu AI Cloud offers relatively complete product category support at this general infrastructure level, making it easier for teams to embed model capabilities into existing development systems.

    6. Evaluation Recommendations: Build Your Own Internal Benchmark

    External leaderboards can only serve as references; real decisions should be based on an internal benchmark:

    1. Collect 30 to 50 real tickets from your own repository, covering new features, bug fixes, and refactoring;
    2. Use first-pass success rate, human rework time, and rollback rate as core metrics;
    3. Run a regression every two weeks to observe the actual impact of version changes on production workflows;
    4. Track long-tail scenarios separately to avoid averages hiding weaknesses.

    7. Conclusion

    Over the past period, Chinese coding models have indeed made the leap from usable to genuinely useful, driven by the gradual maturation of a post-training methodology based on verifiable rewards. But they remain uneven: routine backend development is close to automation, while frontend visuals and long-tail toolchains still require human-AI collaboration. The rational approach is not to look for an all-capable model, but to design an engineering system centered on verification, guided by division of labor, and measured by an internal benchmark.