How to Evaluate the Math Capability Gap of Chinese LLMs

    This article explains why questions like "how far behind are Chinese large models in math" are hard to answer, and how to build a reproducible evaluation framework instead of relying on leaderboard win counts. It covers how to read multi-model comparison dashboards, a four-layer breakdown of math capability (L1 computation and symbolic manipulation, L2 reasoning and proof, L3 modeling and applications, L4 formalization and tooling), a minimal Python evaluation skeleton with fixed sampling and prompt variables, common statistical pitfalls such as averaging across layers, ignoring confidence intervals, dataset contamination, loose grading and answer-only scoring, and practical guidance for model selection including layered routing and regression pipelines.

    1. Background: Why “How Much Worse at Math” Is Hard to Answer

    In model selection practice, “how far behind are domestic Chinese models compared with top closed-source models in math” is a frequent question, and one that is very easy to misread. There are three reasons:

    1. Math capability is not a scalar. It covers at least arithmetic and symbolic manipulation, competition-style reasoning, theorem formalization, numerical modeling, and statistical inference. Rankings across these sub-dimensions often contradict each other.
    2. Benchmark sets carry contamination risk. Once public problems enter the training corpus, scores inflate, which distorts the relative relationships between leaderboards.
    3. Single-run variance is large. Sampling temperature, prompt template, tool-call permissions, and maximum reasoning length can all change results significantly.

    So the rigorous approach is not to ask “who scores a few points higher,” but to first establish a reproducible evaluation framework and only then discuss the gap.

    2. How to Read Dashboard-Style Comparisons Correctly

    One evaluation dashboard lists seven large model entries at the same time. One entry wins 27 of 34 tests and loses 7, which looks like an overwhelming advantage. But once the losing items are laid out, they turn out to be highly concentrated in software engineering and automation tasks: code-fix pass rate, long-horizon task completion rate, enterprise-scenario question answering, automated workflow execution, presentation generation, and basic model knowledge Q&A. The margins are generally between 1 and 8 points.

    This yields three key conclusions:

    • Win/loss counts do not equal the capability gap. Winning 27 of 34 only shows a broad distribution, not a lead on every item. What really matters is the magnitude and direction of the score differences.
    • The losing items are correlated with each other. They share the traits of “long context + multi-step tool calls + executable artifacts,” so they essentially reflect a deficit in the same capability rather than seven independent weaknesses.
    • Math leads often come from reasoning-chain design. When an evaluation allows a longer thinking budget and self-verification, the gains on math and logic problems are far larger than on engineering problems.

    3. Breaking “Math Capability” into Measurable Layers

    It is advisable to split math evaluation into four layers and define metrics for each:

    Layer What It Tests Typical Metrics
    L1 Computation and symbolic Arithmetic, algebraic transformation, unit conversion Exact-match accuracy
    L2 Reasoning and proof Competition problems, multi-step derivation, counterexample construction Final-answer accuracy + process consistency
    L3 Modeling and application Word problems, probability and statistics, optimization Modeling soundness and result error
    L4 Formalization and tooling Theorem proving, code-based solving Formalization pass rate, executable verification rate

    Only when the layers are fixed does cross-model comparison become meaningful. Otherwise it is easy to reach the misleading conclusion of “tied on L1, far apart on L2.”

    4. Engineering a Reproducible Evaluation

    The evaluation itself is code that needs version control. Below is a minimal skeleton showing how to fix variables and retain evidence:

    1. # Pseudocode: fix sampling and prompts, persist results per item for recomputation
    2. def run_eval(model_client, dataset, cfg):
    3. results = []
    4. for item in dataset:
    5. resp = model_client.chat(
    6. messages=build_prompt(item, cfg.template_version),
    7. temperature=cfg.temperature, # 0 or very low is recommended
    8. max_tokens=cfg.max_reasoning_len, # fixed thinking budget
    9. seed=cfg.seed,
    10. )
    11. results.append({
    12. "id": item.id,
    13. "layer": item.layer, # L1~L4
    14. "answer": extract(resp),
    15. "gold": item.gold,
    16. "correct": grade(item, resp),
    17. "tokens": resp.usage.total_tokens,
    18. })
    19. return aggregate(results) # per-layer accuracy + confidence intervals

    The variables that must be pinned down in engineering include: prompt template version, sampling parameters, maximum output length, whether external computation tools may be called, and the grading script version. Any change to one of them requires a full rerun; otherwise the data is not comparable.

    5. Common Statistical Pitfalls

    1. Averages hide layer-level differences. A close total score may be the result of a large L2 deficit cancelling out a large L1 surplus.
    2. Ignoring confidence intervals. With problem sets in the hundreds, a gap of 1 to 2 points usually falls within the noise range.
    3. Contamination not checked. Rewritten problems and problems with varied parameters can serve as controls; watch whether scores stay abnormally stable.
    4. Grading too loosely. Math problems should be judged by equivalence rather than string matching, otherwise capability is under- or overestimated.
    5. Testing only the final answer. Samples with wrong reasoning but a correct answer mask reasoning defects.

    6. Selection and Deployment Recommendations

    • Build a private evaluation set from your business distribution. It does not need to be large, but it must cover real problem types and difficulty distribution.
    • Use layered weighting rather than a simple average, with weights determined by business value.
    • Keep human spot checks for high-scoring models, focusing on process consistency and explainability.
    • On Baidu AI Cloud, the evaluation pipeline can be containerized, with object storage holding problems and results, and log services plus monitoring alerts tracking score drift, forming a sustainable regression-oriented capability evaluation pipeline.
    • For cost-sensitive scenarios, use a small-parameter model for L1 and a reasoning-enhanced approach for L2 and above, forming layered routing.

    7. Conclusion

    The correct answer to “how big is the gap” is an interval plus a set of conditions, not a single number. Win/loss counts on a dashboard are only a clue; real judgment comes from layered evaluation, fixed variables, confidence intervals, and contamination checks. Only by turning evaluation into a reproducible engineering asset can you keep making reliable model selections in an environment of rapid iteration.