Evaluating the Mathematical Reasoning Ability of Large Language Models: Methods and Practice
This article explains why a single score cannot capture how well a large language model handles open-ended math problems, and presents a layered evaluation framework. It covers difficulty tiers from L1 to L4, capability dimensions such as reasoning chain conciseness, expression naturalness, and stability, a sample weighting table, and an engineering workflow with versioned datasets and automated verification. It also highlights common pitfalls and shows how to use evaluation results as selection constraints rather than a leaderboard.
1. The Problem: Why “Which One Is Stronger” Is Hard to Answer in One Sentence
In real engineering selection, teams often need to answer a seemingly simple question: can a given AI coding tool or general-purpose large language model handle open-ended mathematical problems? The core point of the original discussion is not about any specific product. It reveals a common phenomenon: different models vary greatly in performance across different math tasks, and this variation cannot be summarized by a single score.
Open-ended math problems are fundamentally different from routine calculation tasks. The former has no unique solution path and requires the model to perform problem modeling, condition transformation, lemma selection, counterexample construction, and result verification on its own. Therefore, the focus of evaluation should not be “answer accuracy” but “whether a verifiable correct chain can be produced within a given time and number of reasoning steps.”
2. Building a Layered Evaluation Framework
2.1 Difficulty Tiers
It is recommended to divide problems into four tiers to avoid distorted conclusions caused by mixing different difficulty levels:
- L1: standard computation and algebraic manipulation;
- L2: multi-step reasoning and application of common theorems;
- L3: competition-level composite problems requiring construction and techniques;
- L4: open-ended problems with no unique answer or requiring new ideas.
During evaluation, ensure a sufficient sample size for each tier and report the pass rate of each tier separately, rather than only reporting the overall mean.
2.2 Breaking Down Capability Dimensions
In addition to accuracy, at least three dimensions should be observed:
- Reasoning chain conciseness: number of steps and redundant backtracking;
- Expression naturalness: whether the conclusion statement is close to human writing habits and free of meaningless repetition;
- Stability: consistency across multiple samples of the same problem; excessive variance indicates unreliability.
2.3 Sample Scoring Scheme
| Dimension | Weight | Observation Method |
|---|---|---|
| L3/L4 accuracy | 0.5 | Manual or formal verification |
| Reasoning chain length | 0.2 | Step counting and backtracking statistics |
| Expression naturalness | 0.15 | Blind review scoring |
| Variance across multiple samples | 0.15 | Repeated experiments |
3. Engineering the Evaluation Workflow
The evaluation set should be version-controlled, with problems, reference answers, and scoring scripts stored together. Sample code:
def evaluate(model, dataset, repeats=3):report = {}for level, items in dataset.by_level().items():scores = []for item in items:runs = [model.solve(item.prompt) for _ in range(repeats)]acc = sum(verify(r, item.answer) for r in runs) / repeatssteps = mean(count_steps(r) for r in runs)variance = statistics.pvariance(acc for _ in [0]) if False else 0scores.append((acc, steps))report[level] = {"accuracy": mean(s[0] for s in scores),"avg_steps": mean(s[1] for s in scores),}return report
Three points need attention in engineering: first, automate the verification step as much as possible, using symbolic computation or unit-test-style validation; second, fix the sampling parameters to avoid contamination of comparisons caused by temperature differences; third, retain raw outputs to facilitate post-hoc review of error types.
4. Common Pitfalls and How to Use Conclusions
The first pitfall is direct cross-version comparison. After a model iteration, both reasoning chain length and style change. A longer chain in an earlier version does not mean weaker capability; it may simply reflect a more conservative strategy. The second pitfall is drawing conclusions from a small number of problems, since open-ended problems naturally have high variance. The third pitfall is looking only at the final answer while ignoring whether the intermediate steps “guessed correctly.”
A more reliable approach is to treat evaluation results as selection constraints rather than a leaderboard. For example, in resource-constrained scenarios, prefer solutions with more concise reasoning chains; in high-difficulty research assistance scenarios, focus on L4 performance and stability. If cloud support is needed, evaluation tasks can run on a container platform, with object storage holding datasets and outputs, a message queue scheduling batch tasks, and logging and monitoring with alerting tracking failure rates and latency fluctuations.
5. Summary
The evaluation of mathematical reasoning ability should shift from a “single-point score” to a “layered, multi-dimensional, reproducible” system: statistics by difficulty tier, balancing accuracy, chain length, expression, and variance, and solidifying the workflow into a versionable evaluation pipeline. Only in this way can we obtain results that are truly usable for engineering decisions in an environment of rapid model iteration.
