LLM Mathematical Reasoning Evaluation: A Reproducible Framework
This article presents a reproducible framework for evaluating the mathematical reasoning abilities of large language models. It explains why mathematics requires dedicated evaluation, breaks down five scoring dimensions, and describes how to design test sets using both published and unpublished proofs. It then outlines a step-by-step evidence review process, structured error recording, repeated sampling, and interpretation of results. It also covers proof-document structure, quota and cost management, and common pitfalls. Readers can use this framework to produce traceable, comparable evaluations for learning, research, or engineering decisions.
1. Why Mathematical Ability Needs Dedicated Evaluation
Mathematics is a strict setting for testing reasoning. A proposition is either true or false, and every step in a proof either has support or does not. This binary quality makes mathematics an ideal window for observing the quality of model reasoning.
Mathematical evaluation is also easy to get wrong. Many people judge a model based on a few conversations, and such judgments are heavily influenced by problem difficulty, prompting style, and luck. Fluent wording and complete formatting can create the illusion that a proof is correct, while real logical gaps often hide in an omitted lemma. Evaluation therefore needs to separate “looks right” from “is right.”
2. Breaking Down Evaluation Dimensions
A mathematical output contains at least five dimensions that can be scored separately:
- Correctness: Whether each assertion is true and whether the key derivations hold.
- Completeness: Whether all assumptions and conclusions of the proposition are covered, and whether necessary case analysis has been skipped.
- Justification: Whether each cited theorem, definition, or lemma exists and whether its conditions of application are satisfied.
- Originality: Whether the output restates existing literature or offers a new argument path.
- Presentation standard: Whether notation is defined consistently and the structure follows mathematical writing conventions.
The weight of these five dimensions depends on the use case. For teaching, presentation standard and justification matter more. For exploring open problems, correctness and originality are more valuable. Before evaluation, define the purpose and then decide the weights; only then do the conclusions have meaning.
3. Designing Test Sets
The quality of the test set determines the upper limit of the evaluation. Problems can be organized in two directions.
The first category is propositions with public proofs. These problems are suitable for testing a model’s grasp of standard theory and its ability to organize arguments scattered across multiple sources into coherent text. Note, however, that public proofs may already be in the training data, so model performance may come from memorization rather than reasoning.
The second category is propositions without public proofs. These problems better reflect genuine reasoning ability, but they are harder to evaluate. Experts need to verify them step by step, and the conclusion may be “undetermined.” In practice, you can first use small, checkable propositions for screening, then send propositions that pass initial screening to human reviewers for deeper inspection.
When designing a test set, also pay attention to three points:
- Problems should have a difficulty gradient, covering levels from definition verification to multi-step derivation.
- Record the source and search results for each problem to confirm whether a reference answer already exists.
- Prepare multiple formulations of the same proposition to test whether the model truly understands the content rather than matching fixed sentence patterns.
4. Evidence Review Method
When reviewing model output, use a step-by-step verification process rather than reading through the whole output and giving an overall impression.
- Split the derivation chain: Divide the proof into several assertions and label each assertion separately.
- Check the justification: For each cited conclusion, verify the theorem name, conditions, and scope of application.
- Construct counterexamples: Try to construct counterexamples for boundary cases and omitted assumptions.
- Numerical or formal verification: For computable subproblems, use small-scale examples to verify conclusions.
- Cross-comparison: Have the same proposition independently produce proofs under different settings, and compare whether key steps are consistent.
During review, use structured records so results can be counted and rechecked. Below is a simple recording example:
from dataclasses import dataclass, field@dataclassclass ProofReview:statement_id: strmodel_label: strsteps_checked: int = 0errors: list[str] = field(default_factory=list)has_reference: bool = Falsedef score(self) -> float:"""Calculate score based on proportion of erroneous steps; range [0, 1]."""if self.steps_checked == 0:return 0.0return max(0.0, 1 - len(self.errors) / self.steps_checked)
The value of this recording method is that it turns “which step was wrong” into data that can accumulate. After collecting multiple problems, you can see which types of steps the model’s errors concentrate in, such as omitted conditions, misuse of lemmas, or missing induction bases.
5. Statistics and Interpretation of Results
A single result is not enough to draw a conclusion. Model output is stochastic, and multiple generations for the same proposition may differ greatly. It is recommended to sample each problem multiple times and record the pass rate and distribution of error types.
When interpreting results, note the following:
- Distinguish ability from luck: Passing a problem once does not mean the model has reliably mastered the relevant method.
- Focus on error patterns: If errors always appear in the same type of step, the model has a systematic weakness in that kind of reasoning.
- Beware of presentation bias: A reviewer’s professional background affects judgment. It is best to have two people review independently and discuss disagreements separately.
- Retain uncertain items: Steps whose correctness cannot be determined should be marked separately rather than forced into “correct” or “incorrect.”
6. Structure and Typesetting of Proof Documents
When model output is used to prepare lecture notes or reports, the document structure also needs to be standardized. A good mathematical document usually contains the following parts:
- Preliminary definitions and notation conventions
- Lemmas, each stating its conditions and conclusion
- The main theorem and its proof
- An explanation of dependencies, indicating which premises each conclusion uses
For document typesetting, it is advisable to use a mature mathematical formula typesetting system consistently. Such systems have built-in support for theorem environments, cross-references, and numbering, which reduces manual formatting work. When writing, ensure that every environment has a clear label so readers can look it up easily.
7. Managing Quotas and Costs
When using paid or quota-limited AI services, there are two common forms of waste: quotas approaching expiration without a planned use, and sending large numbers of simple tasks to high-cost calls for convenience.
A more reasonable approach is:
- Plan ahead: Before the quota expires, list pending tasks and sort them by value.
- Split tasks: Divide long document generation into several small steps, validate the structure first, and then expand section by section, avoiding wasted quota from a failed single call.
- Cache results: Record proof fragments and citation information that have already been verified so they do not need to be regenerated when reused later.
- Choose on demand: Simple formatting and terminology checks can be handled by lower-cost tools; complex reasoning can use more capable models.
The core of these practices is to treat quota as a limited resource and record usage and effects as you would manage a budget.
8. Common Pitfalls
- Mistaking fluency for correctness: Language style and formatting quality are not directly related to the logical correctness of a proof.
- Drawing conclusions from a single case: One or two successful or failed examples cannot represent overall ability.
- Ignoring the source of a proof: If model output is highly similar to a piece of literature, check whether there is an unmarked citation.
- Confusing “unknown” with “wrong”: Steps that cannot be verified should be marked as pending rather than directly judged as incorrect.
9. Conclusion
Evaluating the mathematical ability of large language models requires a clear purpose, layered test sets, step-by-step proof verification, statistics from multiple runs, and structured error recording. Document preparation and resource management also need planning. With this framework, evaluation conclusions can be reproduced and can provide a basis for subsequent learning, research, or engineering selection.
