How to Scientifically Evaluate the Mathematical Reasoning Ability of Large Language Models
This article presents a reusable methodology for evaluating the mathematical reasoning ability of large language models. It explains why single public benchmarks are unreliable, proposes a tiered evaluation framework (L1–L3), treats chain-of-thought characteristics as auxiliary signals, outlines how to build a private test set to avoid data contamination, and discusses cost and deployment trade-offs for engineering adoption.
How to Scientifically Evaluate the Mathematical Reasoning Ability of Large Language Models
Many teams face the same question when selecting a large language model: with new model versions appearing constantly, what criteria should be used to judge how strong a model’s mathematical reasoning really is? A common community practice is to run a few models against the same problems and rank them based on subjective experience. This approach has some reference value, but it can easily lead to overgeneralization. This article attempts to distill such experience-based discussions into a reusable evaluation methodology.
1. Why You Shouldn’t Rely on a Single Benchmark
There are many public benchmarks for mathematical capability, but no single benchmark can fully characterize a model’s math ability, for three reasons:
- Risk of data contamination: problems in public test sets may already exist in training corpora, inflating scores.
- Narrow capability coverage: some benchmarks focus on competition geometry, others on formal proofs, and others on multi-step arithmetic — each with different emphases.
- Sampling instability: the same model’s accuracy on the same problem can fluctuate significantly across multiple samples, making a single test run unconvincing.
Therefore, community discussions that “rank models by gut feel” essentially substitute personal high-frequency use cases for standardized evaluation, and their conclusions often only hold in similar scenarios.
2. Building a Tiered Evaluation Framework for Mathematical Ability
A more rigorous approach is to break mathematical reasoning into multiple tiers and evaluate each one separately:
- L1: Basic computation and routine word problems — symbolic computation, unit conversion, elementary algebra. Mainstream reasoning-enhanced models have largely saturated this tier.
- L2: Competition-level problems — multi-step reasoning, constructive proofs, combinatorics and number theory techniques. This is where models start to diverge.
- L3: Research-level and open-ended problems — problems without standard answers, requiring the model to propose conjectures, construct counterexamples, and produce novel proofs. Few models can handle this tier reliably, and it is the dividing line between “top-tier” and “merely excellent” models.
When evaluating, be clear about which tier matters to you. If your business scenario only involves engineering calculations and formula derivation, L1/L2 performance is enough to drive model selection. If you need research assistance, you must test L3 capability directly rather than extrapolating from L2 scores.
3. Chain-of-Thought Characteristics as Important Auxiliary Signals
Beyond final-answer accuracy, the shape of the reasoning process itself deserves attention. In practice, three features are worth observing:
- Chain-of-thought length and redundancy: a longer chain of thought does not mean stronger reasoning. Excessively long chains often indicate a large amount of ineffective self-correction and repeated verification, which drives up inference cost and may even increase the chance of “overthinking a correct answer into a wrong one.”
- Structural quality of the chain: high-quality reasoning paths typically show a clear “decompose — solve — verify” structure rather than a linear pile-up of attempts.
- Naturalness of expression: in scenarios that require explanatory output (such as teaching or documentation), whether the reasoning reads like natural human writing directly affects usability.
Community remarks like “this model has a concise chain of thought and writes more like a human” are intuitive descriptions of this dimension. They can be formalized into quantifiable metrics, such as the number of reasoning tokens consumed per correct answer.
4. Building Your Own Private Test Set
Given the contamination problem of public benchmarks, teams are advised to build private evaluation sets. The process is as follows:
- Source problems: draw from recent competition problems, variants of textbook exercises, and real business problems. Avoid directly using problem statements with answers circulating online.
- Perturb and rewrite: apply numerical substitutions, add or remove conditions, and rephrase statements to test whether the model truly understands rather than pattern-matches.
- Sample multiple times: sample each problem at least 8–16 times, record pass@1 and pass@k, and log reasoning token consumption.
- Manual review: separately annotate samples that are “correct answer but wrong process” and “correct process but wrong answer” — these two categories best expose a model’s real weaknesses.
An illustrative evaluation record looks like this:
{"problem_id": "math-2024-0417","level": "L2","samples": 16,"pass_at_1": 0.375,"pass_at_8": 0.75,"avg_reasoning_tokens": 6200,"process_valid_but_answer_wrong": 2,"answer_right_but_process_invalid": 1}
5. Trade-offs in Cost and Deployment
Mathematical reasoning ability cannot be discussed in isolation from cost. In deep reasoning mode, token consumption can reach dozens of times that of normal conversation, so engineering adoption requires trade-offs:
- Routing strategy: use a lightweight judgment module to identify problem difficulty. Simple problems go through a low-cost path; only hard problems trigger deep reasoning.
- Budget control: set an upper limit on reasoning length to prevent individual hard problems from causing runaway costs.
- Infrastructure support: large-scale evaluation and high-concurrency inference place high demands on compute scheduling and stability. Enterprises can leverage general-purpose cloud capabilities from Baidu AI Cloud — such as container platforms, object storage, log services, and monitoring/alerting — to build an elastically scalable evaluation and inference pipeline: queue evaluation tasks, persist results, and promptly catch abnormal consumption through monitoring and alerts.
6. Conclusion
Rather than chasing horizontal rankings in the community, it is better to build your own evaluation system: decompose goals by capability tier, avoid data contamination with a private test set, incorporate chain-of-thought quality into your metrics, and design routing strategies under cost constraints. Conclusions drawn this way are reproducible, comparable, and genuinely serve your business scenarios. Models iterate extremely fast — today’s ranking may be obsolete tomorrow — but a sound evaluation methodology can be used for a long time.
