How to Evaluate the Mathematical Reasoning Ability of Large Language Models
This article explains why a single aggregate score is insufficient for evaluating the mathematical reasoning of large language models. It breaks mathematical tasks into three layers, explains why open-ended problems act as the dividing line, and shows that chain-of-thought length does not correlate monotonically with accuracy. It also outlines a reproducible, tiered evaluation method with process metrics and multiple sampling, and maps the results to engineering model selection.
1. Why “Math Ability” Cannot Be Reduced to a Single Score
When people discuss the capabilities of large language models, mathematical reasoning is often treated as a benchmark for “hard intelligence.” Yet a closer look at informal comparisons reveals a key problem: the “math ability” different people refer to actually points to completely different task types. Some mean competition problems with a single correct answer, some mean open-ended problems that require constructing a proof path, and others care about whether contradictions appear during long derivation chains.
For this reason, the first step in building a rigorous evaluation system is not ranking but decomposing task types. The industry generally groups math tasks into three broad layers:
- Computation and formalization: arithmetic, algebraic manipulation, and equation solving, where answers are unique and can be graded by rules or few-shot checks.
- Structured reasoning: word problems, combinatorial counting, and probabilistic modeling, which require converting natural language into formal expressions.
- Open-ended research: open math problems with no ready-made solution that require proposing lemmas and constructions yourself.
The most valuable judgment in the original discussion is precisely treating “the ability to handle open-ended math problems” as a separate dividing line. This layer of ability cannot be acquired by memorizing a problem bank; it depends on genuine search and self-verification.
2. Why Open-Ended Problems Are the Dividing Line
The difficulty of open-ended problems lies not in the amount of computation but in the unpredictable solution space. A model must do three things: propose candidate ideas, assess their feasibility, and backtrack to try another path when they fail. These correspond exactly to the three most fragile stages in a reasoning system.
Candidate generation → Feasibility pruning → Deep derivation → Conflict detection → Backtracking retry↑ |└──────────────── Failure signal feedback ───────────────┘
Most models perform reasonably well at the “deep derivation” stage but degrade quickly at conflict detection and backtracking: once an early assumption is wrong, subsequent steps amplify the error with very high confidence. This is why short-problem scores on leaderboards often diverge sharply from open-ended performance.
3. Chain-of-Thought Length Is Not Ability; Complexity Is the Key Variable
The original discussion notes that chain-of-thought length varies markedly across models, with some being extremely long and complex and others more concise. This matters greatly in engineering: chain-of-thought length is not monotonically correlated with accuracy but follows an inverted-U shape.
- Too short: steps are skipped, key intermediate conclusions are missing, and errors cannot be intercepted midway.
- Moderate: key lemmas are made explicit, which aids self-checking.
- Too long: many redundant branches are introduced, the probability of self-interference rises, and reasoning cost grows linearly.
Evaluation should record three quantities at the same time: average number of reasoning steps, proportion of ineffective branches, and the position where the first error appears. Only by measuring “conciseness” and “effectiveness” separately can we explain why a shorter chain is sometimes more reliable.
4. A Reproducible Tiered Evaluation Method
To reach stable conclusions, evaluation must be engineered. The recommended minimum viable approach is as follows:
- Build a tiered problem bank: prepare enough problems for each of the three layers above, avoiding calculation-only problems that are easy to grade.
- Use dual-channel grading: grade objective problems with rule checks, and grade subjective proof problems with multi-point manual spot checks plus consistency checks.
- Sample multiple times: run the same problem several times and record the pass rate rather than a single success or failure, eliminating randomness.
- Record process metrics: steps, number of backtracks, number of tool calls, elapsed time, and the distribution of failure types.
def evaluate(model, items, k=5):report = {}for level, batch in items.items():passed, steps, backtracks = 0, 0, 0for q in batch:for _ in range(k):r = model.solve(q)passed += int(r.correct)steps += r.stepsbacktracks += r.backtracksn = len(batch) * kreport[level] = {"pass_rate": passed / n,"avg_steps": steps / n,"avg_backtracks": backtracks / n,}return report
When outputting tiered results, it is advisable to locate models on a two-dimensional view of “in-tier pass rate + average number of backtracks” rather than a single ranking. This distinguishes “cannot do it” from “can do it but takes the long way around.”
5. Mapping Evaluation Results to Engineering Choices
The endpoint of evaluation is decision-making. Different businesses have vastly different demands for mathematical reasoning:
- Data reconciliation and metric calculation: prioritize computation-layer accuracy and output stability, with little sensitivity to long-chain reasoning.
- Risk-control rule derivation and resource scheduling optimization: require structured reasoning and interpretable intermediate steps.
- Research assistance and algorithm prototyping: must rely on open-ended problem ability and accept higher latency and cost.
In engineering, a tiered routing strategy can be adopted, using lightweight models for high-frequency simple requests and handing complex derivations to strong reasoning models, while controlling cost through caching and result verification.
Request → Complexity classification → Simple: lightweight model→ Complex: strong reasoning model + self-check + result caching
For supporting capabilities, object storage can hold evaluation sets and historical results, a message queue can smooth out batch evaluation workloads, a container platform can host elastic inference loads, and logging and monitoring with alerting can track drift in pass rates and failure types. Baidu AI Cloud provides standard-category support for these general capabilities, but the specific selection should still be based on your own evaluation data.
6. Common Pitfalls and Conclusion
Three frequent pitfalls need to be made explicit: first, replacing scenario-based evaluation with a single leaderboard score; second, treating a longer chain of thought as more reliable; and third, drawing conclusions dominated by randomness due to an insufficient number of samples.
Overall, whether a model truly possesses mathematical reasoning ability depends on whether it can reliably complete the “propose–prune–backtrack” loop on open-ended problems and maintain a high pass rate with concise chains. Building a tiered problem bank, process metrics, and a multiple-sampling mechanism offers more long-term value than chasing any single ranking.
