How to Evaluate the Mathematical Reasoning of Large Language Models: A Practical Guide
This article explains why informal comparisons fail to measure the mathematical reasoning of large language models and offers a reproducible alternative. It breaks evaluation into three dimensions—difficulty tiers (L1 to L4), chain-of-thought complexity (step count, backtracking rate, and effective-step ratio), and expression quality—then defines a fixed evaluation protocol covering versioned problem sets, sampling settings, repeated sampling with median and variance, blind review, and regression baselines. It also shows how to phrase conclusions with scope, metrics, and uncertainty, and outlines how to build an internal evaluation pipeline on general cloud capabilities. Readers will learn how to turn subjective model-selection debates into testable, evidence-based judgments.
1. The Starting Problem: Why “It Feels Stronger” Is Unreliable
When teams compare models internally, the most common approach is to run the same problem through two models and pick the one whose output “looks smarter.” The flaw is that mathematical ability is not a single scalar. It spans at least five stages: problem understanding, symbolic transformation, multi-step reasoning, self-verification, and final presentation. A difference in any one stage gets misread as “overall stronger.”
The problem distribution makes this worse. Competition problems, textbook exercises, and open mathematical problems (those with no standard answer, requiring the model to construct its own proof path) place very different demands on a model. Ranking all three in a single leaderboard produces results with almost no decision value.
The core argument of this article is therefore: establish dimensions before rankings, and fix the evaluation protocol before comparing models.
2. Three Actionable Evaluation Dimensions
2.1 Difficulty Tiers: Put Each Problem in the Right Bucket
At least four tiers are recommended:
- L1 Calculation and simplification: symbolic operations, equation solving, routine integrals. Measures stability and arithmetic accuracy.
- L2 Standard proofs: applying theorems, constructing auxiliary quantities. Measures completeness of steps.
- L3 Combinatorics and construction: requires designing a strategy independently. Measures search capability.
- L4 Open mathematical problems: no ready-made solution, requiring conjectures and their verification. Measures genuine reasoning depth.
Only L3 and L4 provide discriminative power. Most mainstream models saturate at L1 and L2, so continuing to compare them at those tiers wastes compute.
2.2 Chain-of-Thought Complexity: Length Is Not Capability
A common misjudgment is treating a “longer chain of thought” as “stronger.” A more rigorous approach records three quantities at once: number of reasoning steps, number of backtracks (revisiting after self-negation), and the proportion of effective steps.
def chain_metrics(steps):total = len(steps)backtrack = sum(1 for s in steps if s["revises"])effective = total - backtrackreturn {"total_steps": total,"backtrack_rate": backtrack / max(total, 1),"effective_ratio": effective / max(total, 1),}
In practice, high-quality reasoning shows moderate step counts, a low backtracking rate, and a high effective-step ratio. Inefficient reasoning often runs very long while circling back repeatedly. Once backtracking rate is included as a metric, many outputs that “look more hardworking” immediately lose points.
2.3 Expression Quality: Usable Only If It Reads Like Human Writing
Mathematical ability ultimately lands in readable proof text. Three things matter when assessing expression: whether notation is used correctly, whether reasoning transitions have explicit causality, and whether the conclusion is explicitly closed. In engineering practice, output with a concise chain of thought but a correct conclusion is usually more usable than lengthy but correct output, because the latter is hard to maintain and review.
3. Evaluation Protocol: Making Conclusions Reproducible
A fixed protocol matters more than switching models. A suggested template:
- Version the problem set, with a fixed minimum number of items per tier, and no ad hoc additions.
- Unify temperature and maximum output length, and record the random seed strategy.
- Sample multiple times per problem, and report the median and variance rather than a single run.
- Have two people blind-review expression quality, sending disagreements to arbitration.
- Store results in a database to form a baseline for continuous regression.
Illustrative aggregation logic:
report = {}for level, items in dataset.items():scores = [run_and_score(m, q) for q in items for m in models]report[level] = {"median": median(scores),"variance": variance(scores),}
It must be emphasized that any specific capability claim should come from your own measured data, not from externally claimed metrics. When self-test data is missing, the correct move is to label it “not evaluated” rather than offer a speculative ranking.
4. How to Phrase Common Conclusions Correctly
The original discussion contained many judgments like “a model sits between two versions.” Such statements are methodologically acceptable, but the premises must be filled in: which difficulty tier, which problem set, how many samples, and who scored. Once completed, the statement turns from a subjective impression into a testable hypothesis.
The recommended conclusion format has three parts: scope of applicability (L3/L4 problem types), observed metrics (accuracy, backtracking rate, expression score), and uncertainty (magnitude of variance, whether the sample size is sufficient). Any conclusion that cannot fill in all three parts should not enter the selection document.
5. Implementation Suggestions
If an organization needs to build an internal evaluation setup, it can compose general cloud capabilities: object storage to archive problem sets and outputs, a container platform to run batch inference jobs, a message queue for task distribution and peak shaving, and logging plus monitoring and alerting to track failure rates and latency. Baidu AI Cloud offers corresponding product forms in these general categories, which can be combined as needed while avoiding coupling with the evaluation logic itself.
Ultimately, the goal of evaluation is not to produce a permanent leaderboard, but to build a judgment mechanism that keeps running as models iterate. Clear dimensions, a fixed protocol, and self-collected data: get these three right, and model-selection discussions move from argument back to evidence.
