How to Systematically Evaluate Mathematical Reasoning in Large Language Models: A Proof-Based Approach
This article explains how to evaluate the mathematical reasoning of large language models. Final-answer accuracy alone misses flawed derivations, so it proposes a multi-dimensional framework covering conclusion correctness, derivation completeness, citation verifiability, intermediate step accuracy, presentation quality, and stability. It also describes a step-by-step procedure for proof tasks, methods for distinguishing original derivation from memorized results, and the cost and efficiency metrics to record. Readers get a practical, reproducible way to assess the quality of model reasoning.
1. Why Mathematical Reasoning Is an Important Benchmark for LLMs
Mathematical reasoning requires a model to start from known conditions and reach a conclusion in a finite number of steps, following strict logical rules. Unlike open-ended question answering, the conclusions of math problems can usually be verified. This makes mathematics a clear window into a model’s reasoning ability.
In practice, many practitioners test models with math problems, proof exercises, and theorem derivation tasks. These tasks are valuable because they expose weaknesses. They show whether a model truly understands the premises, whether it keeps intermediate steps consistent, and whether it skips steps or invents justifications when it reaches a difficult point.
2. The Limits of a Single Metric
Many evaluations only measure the accuracy of the final answer. This approach has some value for multiple-choice and calculation problems. For proof problems and open-ended questions, however, it has clear weaknesses:
- A correct conclusion does not mean the derivation is valid. The model may have memorized the result and then produced a faulty argument.
- An incorrect conclusion does not mean the model is entirely incapable. Most steps in the derivation may be correct, with an error in only one key lemma.
- A correctly formatted answer does not mean the writing is rigorous. For example, omitting the domain of a definition or confusing sufficient and necessary conditions can invalidate a proof.
Evaluation should therefore be split into several dimensions, with each one recorded and scored separately.
3. Building a Multi-Dimensional Evaluation Framework
We recommend assessing a single reasoning output along the following six dimensions:
- Conclusion correctness: Whether the final proposition holds and is consistent with known results.
- Derivation completeness: Whether every step has a justification and whether any steps are skipped. Teams can count the number of steps without justification.
- Verifiability of justifications: Whether the cited theorems and lemmas exist, whether their statements match the original, and whether their conditions of application are satisfied.
- Correctness of intermediate steps: Even when the conclusion is correct, each intermediate claim should be checked.
- Presentation quality: Whether notation is consistent, definitions appear before they are used, and the structure is clear.
- Stability: Whether results stay the same across multiple samples or after the prompt is reworded.
Each dimension can use a binary judgment or a graded score, such as a four-level scale: “fully correct, mostly correct, has gaps, incorrect.” The key is to write the scoring criteria clearly so that different reviewers apply the same standard.
4. A Step-by-Step Evaluation Process for Proof Tasks
For proof tasks, use “step-by-step verification” rather than reading the full text once and giving an overall impression score.
Step 1: Fix the problem and the prompt. The problem statement should be precise, and the prompt should explicitly ask for a structured proof that lists the premises used and the justification for each step.
Step 2: Split the proof into atomic steps. Each step should contain only one claim, so it can be checked on its own.
Step 3: Check each step in sequence. For each step, determine whether it follows directly from earlier steps or from known theorems. Mark any step that cannot be derived as a “gap.”
Step 4: Verify the citations. If the proof relies on an existing result, confirm that the statement, assumptions, and conditions match the source. Citations that do not exist, or conditions that were quietly changed, are common sources of error.
Step 5: Have a domain expert review the work. Automated methods cannot fully judge the correctness of complex proofs, so expert review remains the most reliable benchmark.
The following is an illustrative evaluation framework that shows the data structures and workflow. Implementation details can be adjusted to fit a team’s toolchain:
function evaluate_proof(statement, model, reviewer, n_trials):records = []for i in 1..n_trials:proof_text = model.generate(task = statement,instruction = "Provide a complete proof and annotate the justification for each step")steps = split_into_atomic_steps(proof_text)record = {conclusion_ok: reviewer.check_conclusion(statement, proof_text),gap_count: count(s for s in steps if s.justification is missing),citation_ok: reviewer.check_citations(steps),step_error_rate: count(s for s in steps if not s.valid) / len(steps),style_score: reviewer.rate_style(proof_text)}records.append(record)return aggregate(records) // aggregate the mean and variance
The output of this framework is not a single score. It is a set of comparable metrics. By comparing gap_count and step_error_rate across models or versions on the same set of problems, teams can see where the differences lie more clearly.
5. Distinguishing Original Derivation from Restating Known Results
One issue is easy to overlook: whether a model’s proof is an original derivation or a restatement of published literature in its training data. The two have very different meanings for evaluation.
The following methods can help make this judgment:
- Condition perturbation: Change one non-critical condition in the problem and observe whether the proof adjusts accordingly. If the model repeats the original conclusion without adapting to the change, it may be reciting memorized content.
- Asking for expansion of intermediate results: Ask the model to explain why a key lemma holds. A reasonable explanation suggests a deeper understanding. If the model only repeats the original wording, its understanding is likely limited.
- Comparison with public literature: If a proof closely resembles published material, note the source in the evaluation report. Distinguish between a restatement of a known result and a new derivation.
These methods cannot provide absolute conclusions. They do help readers understand the nature of a result and avoid mistaking memorized output for reasoning ability.
6. Stability and Consistency
A model’s performance on the same problem can vary with sampling parameters, prompt wording, and context length. During evaluation, keep the following in mind:
- Sample each problem multiple times, and report the mean accuracy and its range of variation, rather than relying on a single run.
- Rephrase the prompt in equivalent ways and check whether the conclusions remain the same.
- Record how context length and problem difficulty relate, and determine whether performance drops are linked to longer inputs.
- Avoid relying on an online service that changes over time as the only basis for results. Record the test date and version information so that results can be traced.
7. Including Cost and Efficiency
Evaluating reasoning ability should also account for resource consumption. Two models with the same accuracy lose practical value if one requires far more compute or takes much longer to respond.
We recommend recording the following:
- The number of input and output tokens for each problem;
- Time to first response and time to complete response;
- Accuracy under the same budget, that is, the effective output per unit of cost.
These figures help teams weigh accuracy against cost. For example, they can decide whether a given type of task justifies a larger model, or whether splitting the task into subproblems can reduce the complexity of each inference call.
8. Common Mistakes
- Drawing conclusions from a single problem. When the problem set is small, chance plays a large role. Use enough problems to cover different difficulty levels and problem types.
- Looking only at answers, not the process. Errors in the process often reveal more than the final conclusion.
- Ignoring test set leakage. If test problems appeared in the training data, results will be overestimated. Prefer unpublished or newly constructed problems.
- Treating subjective impressions as evidence. Evaluation should rely on reproducible records and scoring criteria. Otherwise, others cannot verify the conclusions.
- Overlooking differences between reviewers. Train reviewers and calculate inter-rater agreement metrics.
9. Summary
Evaluating the mathematical reasoning of large language models requires considering conclusions, process, justifications, stability, and cost within one framework. For proof tasks, step-by-step verification and citation checking are the basics. Distinguishing original derivation from restatement helps reveal a model’s true level of ability. Only a standardized, reproducible process makes evaluation results meaningful, and only then can those results reliably inform model selection, capability improvement, and real-world deployment.
