How to Evaluate and Benchmark the Mathematical Reasoning of Large Language Models
This guide explains why ranking large language models by a single “who is better” claim is unreliable and proposes a layered, reproducible evaluation framework instead. It covers closed-ended questions for automated baselines, semi-open problems that require process evaluation, and open-ended problems that test exploration, along with metrics such as correctness, robustness, conciseness, explainability, and cost-latency. It also outlines how to operationalize evaluation as a pipeline and how to choose configurations based on business scenarios.
1. The Starting Problem: Why “Which Model Is Stronger” Is Hard to Answer in One Sentence
In comment-section debates, the most common argument is that “Model A definitely cannot beat Model B.” Conclusions like this usually come from subjective impressions based on very few samples and lack a reproducible evaluation design. To seriously answer how to evaluate the mathematical ability of a large language model, you first need to break the question down: mathematical ability is not a single metric. It includes at least computational accuracy, symbolic derivation, multi-step logical chains, exploration of open-ended problems, and expression and explainability. Different models perform unevenly across these dimensions, so an overall ranking often hides the real differences.
A more reasonable approach is to shift the evaluation goal from “ranking” to a “capability profile”: identify which type of mathematical ability the business needs, then measure it with the corresponding test sets and scoring criteria. Only with a clear goal can evaluation results guide model selection instead of creating new disputes.
2. A Layered Evaluation Framework: From Closed-Ended to Open-Ended Questions
1. Closed-Ended Questions: An Automatically Verifiable Baseline
Closed-ended questions have a unique answer and can be verified automatically, such as arithmetic, equation solving, probability calculation, and standard proof fill-in-the-blank items. These questions are suitable for large-scale automated regression. The advantages are low cost and repeatability; the disadvantage is that they are easily covered by training data, creating the illusion of “memorization rather than reasoning.” Recommended practices include using newly written questions, varying numbers and phrasing, adding distracting conditions, and keeping some “trap questions” to observe whether a model blindly gives a definite answer.
2. Semi-Open Questions: Requiring Process Evaluation
Semi-open questions have verifiable answers but allow multiple solution paths, such as “provide a proof outline and compute the result.” In this case, you cannot look only at the final answer; you also need to assess whether the steps hold, whether there is circular reasoning, and whether boundary conditions are missed. A hybrid approach of manual spot checks plus rule-based validation can be used to score key nodes in the chain of thought.
3. Open-Ended Questions: A Touchstone for Exploration Ability
Open-ended questions have no standard answer and require the model to set its own goals, construct auxiliary conclusions, try multiple paths, and self-correct. This ability is closer to real research and engineering scenarios and is key to distinguishing the upper limits of models. Evaluation should focus on whether the model can propose verifiable conjectures, cut losses promptly on failed paths, and decompose complex problems into manageable subproblems. Because this is hard to automate, a combination of expert blind review and multi-round reproduction is recommended.
3. Chain-of-Thought Complexity: Length Is Not Enough
A common misjudgment is that “a longer chain of thought means a stronger model.” In fact, chain length is not positively correlated with accuracy: an overly long reasoning chain amplifies cumulative errors and increases latency and cost. A more rigorous evaluation should record three types of metrics at the same time:
- Conciseness: whether steps are redundant while maintaining correctness;
- Robustness: whether conclusions remain stable under changes in phrasing or numerical perturbations;
- Explainability: whether the writing and derivation are close to human expression and easy to review.
The following illustrative evaluation process describes this multi-dimensional scoring:
score = w1 * correctness+ w2 * robustness+ w3 * conciseness+ w4 * explainability- w5 * cost_latency
The weights should be determined by the business scenario: offline research values correctness and explainability more, while online services value latency and cost more. Different models may win under different weights, which shows that a “single ranking” is meaningless.
4. Operationalizing Evaluation
To make evaluation sustainable, it should be built as a pipeline rather than a one-off activity. Typical stages include question version management, fixed random seeds, unified sampling parameters such as temperature, archiving of failed samples, and regression dashboards with alerts. This can be supported by general cloud capabilities, such as using object storage to store questions and results, using a message queue to decouple evaluation tasks, using a container platform to elastically schedule batch inference, and using logging services and monitoring alerts to track success rates and latency fluctuations. This ensures reproducibility and makes it possible to quickly detect regressions when models or prompt strategies change.
At the same time, an “anti-contamination” mechanism should be established: regularly replace questions, keep a private test set, and create equivalent transformations of public questions to avoid inflated scores caused by memorization effects.
5. Scenario-Based Selection Recommendations
- If the business mainly involves standard computation and fast responses, prioritize conciseness and cost, and choose a configuration with a short chain of thought and good stability;
- If the business involves complex derivation and review, accept higher latency and focus on open-ended question performance and explainability;
- If it is used for writing and expression assistance, additionally assess language naturalness and structural organization rather than only looking at math scores.
In related practice, Baidu AI Cloud generally recommends that enterprises first clarify scenario weights, then build a small-scale, high-fidelity evaluation set, and finally gradually expand automation scale, avoiding the pursuit of a large and comprehensive leaderboard-style comparison from the start.
6. Conclusion
The key to evaluating the mathematical ability of large language models is not to find an “all-around champion,” but to build a layered, reproducible, scenario-oriented evaluation system. Combining closed-ended, semi-open, and open-ended questions, and incorporating accuracy, robustness, conciseness, explainability, and cost into the metrics, is the only way to reach conclusions that are truly useful for the business.
