Evaluating Mathematical Reasoning in Large Language Models: Methods and Practical Considerations
This article presents a reproducible approach to evaluating the mathematical reasoning capabilities of large language models. It covers evaluation goals across computation, proof, and open-ended exploration; task types and grading methods; principles for benchmark design; a three-layer proof verification process; common sources of misjudgment; result reporting; and engineering practices such as internal benchmarks, cost tracking, and periodic retesting. The emphasis is on verifiability, reviewability, and reproducibility so that evaluation results can support real decisions.
Mathematical capability in large language models has become a major focus in recent years. Mathematical answers are often verifiable, and a derivation must hold at every step, so math tasks tend to expose reasoning defects more clearly than open-ended question answering. However, if the evaluation method is not rigorous, the conclusions often reflect what the model has memorized rather than what it can derive. This article organizes a reproducible evaluation approach around six areas: evaluation goals, task classification, design principles, proof verification, sources of misjudgment, and result recording.
1. Define Evaluation Goals
Before starting an evaluation, answer one question: what capability is being measured? Mathematical ability includes at least three levels. The first is accurately executing known methods, such as taking derivatives, simplifying expressions, or solving linear systems. The second is constructing a rigorous logical chain under given premises, that is, proving a proposition. The third is proposing a feasible approach to a problem without an established answer and judging whether that approach holds. These three levels differ greatly in difficulty and evaluation criteria; scoring them together makes the conclusions meaningless.
Different goals require different ways of constructing evaluation sets. If the focus is computational accuracy, an automatically graded problem set can be used. If the focus is proof ability, expert step-by-step review is required. If the focus is exploratory ability on research-level problems, credible conclusions can only be obtained through long-term tracking and peer review.
2. Task Types and Grading Methods
2.1 Computation and Derivation
These tasks have unique answers and can be checked with programs or symbolic computation tools. The key to grading is converting the answer into a comparable standard form, such as a simplified expression, a numerical result, or an option number. The same result may have multiple representations, so the grader should first perform an equivalence check rather than directly comparing strings.
2.2 Proof Tasks
For proof tasks, the conclusion may be correct while the argument contains gaps, so it is not enough to look only at the final judgment. A qualified proof should satisfy the following conditions: every step cites a known definition, a proved result, or an explicit assumption; there are no unjustified implicit assertions; and edge cases are handled. Scoring is usually step-based, checking whether the premises are correct, whether key lemmas are used correctly, and whether the conclusion follows rigorously.
2.3 Open-Ended Exploration
These problems do not yet have a recognized answer, so the evaluation focus shifts to whether the approach can be tested. The assessment should examine whether experts judge the direction to be reasonable, whether it can be transformed into verifiable subproblems, and whether the output identifies weak points in its own argument. Because results are difficult to judge automatically, this type of evaluation is costly and suitable as a supplementary metric rather than the sole basis.
3. Principles for Designing Evaluation Sets
Task sources must be traceable. When using public materials, record the source and check whether the problems already appear extensively in training data. If a problem is identical to public material, a correct answer does not demonstrate reasoning ability.
Distinguish “correct conclusion” from “valid proof.” Counting only final-answer pass rates will overestimate the model. Proof quality should be recorded separately as an independent dimension.
Fix evaluation conditions. Prompt templates, sampling temperature, maximum output length, and tool access permissions should all be written into the evaluation configuration. Results cannot be directly compared when conditions change.
Repeat sampling and report variance. Running the same problem multiple times may produce different results. Reports should give pass rates and dispersion across multiple runs rather than a single result.
4. Proof Verification Workflow
For proof-type outputs, a three-layer verification process is recommended.
The first layer is a structural check. Confirm that the output contains a problem statement, a list of premises, argument steps, and a conclusion, and that the conclusion matches the problem.
The second layer is expert review. Reviewers should check citations one by one, paying particular attention to skipped steps such as “obviously true” or “it follows easily.” Reviewers should make an independent judgment first and then compare it with the reference solution to avoid being influenced by the reference answer.
The third layer is formal verification. For propositions that can be translated into a formal language, formal proof assistants can be used to check the reasoning step by step. This layer is the most costly but also the most reliable.
Below is an illustrative evaluation framework, used only to explain the workflow:
def run_evaluation(model, tasks, grader, trials=5):records = []for task in tasks:for i in range(trials):output = model.generate(prompt=task.prompt,temperature=0.0,max_tokens=task.max_tokens,)verdict = grader.judge(task, output)records.append({"task_id": task.id,"trial": i,"passed": verdict.passed,"score": verdict.score,})return summarize(records)
The key points of this framework are that tasks, sampling parameters, and the grader are separated from one another, and the raw output is retained for every run so that it can be reviewed later.
5. Common Sources of Misjudgment
Misjudgment 1: Mistaking paraphrase for derivation. A model may output an argument highly similar to public literature. One way to test this is to paraphrase the conditions or variable names in the problem and observe whether the argument adjusts correctly. If it succeeds only on the original problem, it is more likely paraphrasing.
Misjudgment 2: Fluency is not rigor. A proof with smooth language and a standard format is not necessarily valid at every step. Review should be based on logic, not writing style.
Misjudgment 3: Treating failure to prove as disproof. If the model cannot produce a proof, it does not follow that the proposition is false. Evaluation reports should distinguish among three states: “proof succeeded,” “proof failed,” and “undetermined.”
Misjudgment 4: Sample size too small. Results from a few problems are insufficient to support a ranking. In general, a problem set of several dozen or more tasks, stratified by difficulty, is needed to obtain a meaningful comparison.
6. Result Recording and Reporting
A unified table is recommended for recording results.
| Task type | Number of tasks | Average pass rate | Proof quality score | Notes |
|---|---|---|---|---|
| Computational derivation | 50 | To be filled | N/A | Automated grading |
| Theorem proving | 30 | To be filled | To be filled | Expert step-by-step scoring |
| Open-ended exploration | 10 | To be filled | To be filled | Peer review |
The report should also include the evaluation date, model version, prompt template, and grading criteria. Version information is especially important because a model under the same name may have been updated at different times.
7. Engineering Implementation Recommendations
Build an internal benchmark set. The benchmark set should cover the task types the team actually needs and should be regularly supplemented with new problems. Using the same set for a long time can easily lead to the test set being indirectly used for tuning.
Evaluate capability together with cost. Models with stronger reasoning ability often produce longer outputs and take more time. When selecting a model, record per-task latency, output length, and cost at the same time, rather than ranking only by accuracy.
Retest periodically. After a model version is updated, the benchmark set should be run again. If testing is done only once before launch, subsequent capability changes cannot be detected.
Keep a role for human judgment. Automated grading cannot cover all proof-type problems. For key conclusions, final confirmation should be made by personnel with the relevant background.
The key to mathematical capability evaluation is verifiability. Tasks must be judgeable, processes must be reviewable, and conclusions must be reproducible. Only when all three conditions are met can evaluation results be used for real decisions.
