Systematic Evaluation of Mathematical Reasoning in Large Language Models
Mathematical reasoning is a hard criterion in LLM evaluation because it combines language understanding with symbolic manipulation, step planning, and result verification. This article presents a systematic framework that separates task tiers, metrics, open-problem review, chain-of-thought quality, stability, cost, and engineering constraints, and it provides a pseudocode workflow and practical selection guidance.
In LLM capability evaluation, mathematical reasoning is often treated as a hard metric: it requires language understanding as well as symbolic operations, step planning, and result verification. In practical model selection, teams often fall into two traps: relying only on an aggregate score or a single leaderboard, or equating a breakthrough on an open mathematical problem with leadership across all mathematical tasks. A more reasonable approach is to break mathematical ability into multiple observable, reproducible, and explainable dimensions, then weight them according to business scenarios. This article presents a systematic evaluation method centered on task tiers, open problems, reasoning-chain quality, stability, and cost.
1. Why Mathematical Ability Cannot Be Reduced to a Single Score
Mathematical tasks vary widely. Basic arithmetic, algebraic manipulation, geometric proof, combinatorial counting, probability and statistics, formal proof, and open-problem research place different demands on a model. A model may score high on a standard problem set because it is good at pattern matching, yet perform noticeably worse on tasks that require multi-step assumptions, counterexample construction, or search for proof strategies.
Evaluation should therefore avoid the “single-metric illusion.” An aggregate score only indicates relative performance on a specific distribution; it cannot directly imply business usability. At minimum, record the following metrics separately:
- Accuracy: whether the final answer is correct;
- Verifiability: whether the reasoning process can be checked by rules, tools, or human review;
- Step completeness: whether key intermediate conclusions are provided;
- Stability: whether repeated solutions to the same problem are consistent;
- Cost and latency: inference overhead and response time per task;
- Readability: whether the reasoning chain is concise, auditable, and easy for humans to locate errors.
These metrics are not always positively correlated. A longer reasoning chain may improve accuracy on complex problems but may also add redundancy and cost; a more concise chain may be easier to audit but may not be sufficient for open problems. Evaluation should record them separately rather than mixing them into a vague judgment of “strong” or “weak.”
2. Building a Tiered Task Set: From Basic Operations to Open Problems
A practical evaluation set can be divided into four tiers:
- L1 Basic operations and symbolic manipulation: checks basic calculation, unit conversion, formula transformation, etc., focusing mainly on accuracy and stability.
- L2 Standard problem solving: covers algebra, geometry, probability, and other problems with definite answers, focusing on multi-step reasoning and correctness of intermediate steps.
- L3 Competition and proof-style tasks: requires constructing proofs, selecting strategies, and handling boundary conditions, focusing on step completeness and verifiability.
- L4 Open mathematical problems: no fixed answer or requiring exploratory proof, focusing on problem decomposition, hypothesis generation, counterexample testing, and quality of the proof framework.
After tiering, scores from different tiers should not be simply added together. L1 and L2 are suitable for automatic judging; L3 requires a combination of rule checks and human sampling; L4 is better suited to expert rubric scoring. Capability on open tasks is often scarcer, but it cannot replace evaluation of basic tasks. A model may show strong exploratory ability on open problems while making low-level errors in basic calculation; conversely, a high score on basic problems does not mean it has open-problem capability.
3. Why Open Mathematical Problems Are a Capability Divide
Open mathematical problems usually have no standard answer and may not even have a known solution. When evaluating such tasks, do not look only at the final conclusion; look at process quality: whether the model accurately understands the problem, proposes testable intermediate propositions, constructs counterexamples, discovers gaps in its own proof, and adjusts its strategy after failure.
This is also the part of mathematical evaluation most likely to be overstated. A common misjudgment in industry discussion is that if a model performs notably on one open problem, it is considered broadly leading. A more rigorous conclusion should be that “the model has a relative advantage in open-problem exploration,” not that “it leads on all mathematical tasks.” Open-problem evaluation should involve expert review and record failure modes, for example:
- Whether it makes unproven leaps;
- Whether it treats a conjecture as a conclusion;
- Whether it ignores boundary conditions;
- Whether it can distinguish “proof” from “example verification.”
For enterprise selection, open-problem capability can serve as a frontier-capability observation item, but it should not directly determine general business selection. If the business scenario is dominated by standard problems, formula calculation, and rule verification, the stability and cost of L2 and L3 are more important.
4. Chain-of-Thought Quality: Length, Conciseness, and Verifiability
Reasoning-chain length is often treated as a capability signal, but length itself is not the goal. A longer chain may contain more exploration, or it may contain many repetitions and invalid branches. Evaluation should distinguish three concepts:
- Length: number of reasoning steps;
- Information density: proportion of effective intermediate conclusions;
- Verifiability: whether each step can be checked by rules or human review.
A practical approach is to assign a “quality score” to the reasoning chain rather than looking only at length. For example, classify reasoning chains into four categories: “correct conclusion with verifiable steps,” “correct conclusion with skipped steps,” “incorrect conclusion but process has reference value,” and “unverifiable.” For engineering systems, also consider whether the reasoning chain is convenient for logging and error attribution.
In addition, writing style and mathematical ability should be evaluated separately. Natural expression and clear explanation are auxiliary indicators and should not be mixed into mathematical accuracy. One model may have a concise reasoning chain and natural expression but limited complex-proof capability; another may have a verbose chain but be more exploratory on open problems. Recording them separately avoids confusing dimensions.
5. Stability, Cost, and Engineering Constraints
Mathematical evaluation cannot ignore engineering constraints. For the same problem solved multiple times, are results consistent? After rewording the problem, does the model remain correct? As context grows, are steps omitted? These are all part of stability evaluation. For production systems, record repeat consistency, perturbation consistency, and long-context degradation.
For cost, consider inference time, invocation cost, and human review cost together. Open problems may show strong capability but often require more steps and human review, raising cost per task. Enterprise selection should configure by business tier: high-frequency standard tasks should prioritize stable, low-cost options; low-frequency, high-value tasks can then introduce stronger reasoning capability.
6. Evaluation Workflow and Pseudocode
The following pseudocode gives a product-agnostic evaluation workflow, focusing on data structures and metric definitions:
record = {task_id,level, // L1-L4answer_type, // closed / openreference, // reference answer or scoring ruleverifier, // exact / rule / rubric / humanweight}function evaluate(model, suite):results = []for case in suite:trace = model.solve(case.prompt)score = verify(case, trace)results.append({task_id: case.task_id,level: case.level,correct: score.correct,verifiable: score.verifiable,step_quality: score.step_quality,latency: score.latency,cost: score.cost})return aggregate_by_level(results)function aggregate_by_level(results):for each level:accuracy = mean(correct)verifiable_rate = mean(verifiable)quality = mean(step_quality)repeat_consistency = measure_repeat(results)weighted_score = w1*accuracy + w2*verifiable_rate + w3*qualityreturn report
The evaluation report should present results separately by tier at minimum; a single aggregate score is not recommended. For open problems, retain expert scoring details and failure cases; for standard problems, retain error distribution and repeat consistency.
7. Selection and Deployment Recommendations
First, clarify the distribution of business tasks. If the workload is mainly standard problems and rule verification, prioritize L2 and L3 accuracy, stability, and cost; if it involves exploratory proof, then consider L4 capability.
Second, build a small but highly representative private evaluation set. Public leaderboards can provide background reference but cannot replace business samples. The private set should cover boundary conditions, long context, wording perturbations, and error recovery.
Third, when comparing versions, distinguish “absolute capability” from “generational increment.” A new version may improve clearly on some dimensions but remain flat or even regress on others. Keep historical evaluation results for longitudinal comparison.
Fourth, open-problem capability should be a frontier observation item, not the sole basis for selection. A longer reasoning chain does not mean stronger capability, and more natural expression does not mean more rigorous mathematics. Only by evaluating correctness, verifiability, stability, and cost separately can you reach explainable conclusions.
In summary, LLM mathematical evaluation should use tiered tasks, dimension-specific metrics, and scenario-specific weighting. Relative advantages on open problems deserve attention but must be understood within a complete evaluation framework; reasoning-chain length, writing style, and version iteration should all be recorded as independent dimensions. Only by separating “can it get the answer right,” “can it be verified,” “can it be reproduced stably,” and “is the cost acceptable” can you provide reliable selection guidance for developers and enterprise users.
