How to Scientifically Evaluate Mathematical Reasoning and Proof Capabilities in Large Language Models
Large language models are increasingly used for problem solving, proof assistance, and derivation from academic literature. This article presents a structured evaluation framework for measuring mathematical reasoning, including benchmark design, scoring criteria, reproducible testing, blind review, and common sources of bias. It is intended for model selection, regression testing, and research-oriented capability assessment.
Introduction
Large language models are increasingly used to solve mathematical problems, assist with proofs, and derive results from academic literature. However, many teams still judge model quality based on a few informal prompts. This approach is easily influenced by personal preferences, problem selection, and wording style. The results are difficult to reproduce and provide limited guidance for model selection.
This article presents a structured evaluation framework for internal model selection, version regression testing, and research-oriented capability assessment.
1. Problems with Informal Evaluation
- Insufficient sample size. Results from only a few problems cannot distinguish accidental correctness from stable capability.
- Biased problem selection. Users often choose problem types they already know or prefer, causing the evaluation to overrepresent certain abilities.
- Superficial output assessment. Clear structure and fluent language can make an answer appear correct when it is not. A longer reasoning process does not necessarily indicate better reasoning, and a shorter answer does not necessarily indicate weaker capability.
- Poor reproducibility. Prompts, sampling parameters, context length, and system instructions can all affect the output. If these conditions are not recorded, others cannot rerun the experiment or verify its conclusions.
2. Breaking Down the Evaluation Dimensions
Mathematical tasks should be evaluated across several independently assessable dimensions:
- Correctness of the conclusion: Whether the final answer or proposition being proved is correct.
- Proof completeness: Whether all key steps are included and whether the proof contains gaps or circular reasoning.
- Accuracy of premises and references: Whether the theorems used actually exist, whether their conditions are satisfied, and whether cited names or numbers correspond to the stated results.
- Logical consistency: Whether symbols are defined consistently and whether intermediate conclusions contradict one another.
- Quality of mathematical expression: Whether formulas, notation, and terminology are used correctly.
- Independence of the derivation: Whether the output reflects genuine derivation rather than approximate copying from existing literature. This dimension should be assessed through a combination of manual sampling and text-similarity checks.
Each dimension should have a clearly defined scoring rubric. For example, a 0-to-2 scale can be used:
- 0: Incorrect or missing
- 1: Basically correct but contains flaws
- 2: Complete and correct
The more specific the rubric, the higher the consistency between evaluators.
3. Building a Tiered Problem Set
The problem set is the foundation of the evaluation. A four-level difficulty structure is recommended:
- Foundational level: Standard course exercises used to test basic calculation skills and conceptual understanding.
- Intermediate level: Proof problems that require combining two or three known theorems, used to evaluate multi-step reasoning.
- Research level: Propositions with existing proofs in the literature, but with details scattered across sources or requiring reconstruction. These problems assess the model’s ability to synthesize specialized material.
- Open level: Problems without an established consensus answer. These problems can only be used to evaluate reasoning quality and the plausibility of the approach, not to determine correctness directly.
The source of every problem should be recorded. For research-level problems, domain experts should prepare reference proofs in advance for grading purposes. If a problem has been widely circulated publicly, a model may have memorized its solution. Newly published or substantially modified materials should therefore be prioritized.
4. A Reproducible Evaluation Workflow
A basic workflow includes the following steps:
- Fix the problem set and assign it a version number.
- Use the same system prompt, sampling temperature, and maximum output length for all models.
- Run each problem independently multiple times, such as three to five runs, and save every output.
- Have at least two evaluators grade the outputs independently according to the rubric. If their assessments differ substantially, use a third evaluator for arbitration.
- Aggregate the scores, calculate the mean and confidence intervals, and then compare model versions.
The following pseudocode illustrates the main structure of the process:
for model in candidate_models:for problem in benchmark:for run in range(N):output = model.generate(prompt=TEMPLATE(problem),temperature=FIXED_T,max_tokens=FIXED_LIMIT,)store(model.id, problem.id, run, output)scores = blind_grade(stored_outputs, rubric)report = aggregate(scores, method="mean_with_bootstrap_ci")
Blind grading is essential for reliable conclusions. Evaluators should not see model names; they should only review anonymized output IDs. This reduces the influence of prior assumptions and expectations.
5. Interpreting Results and Avoiding Common Pitfalls
- Data contamination. If a problem has been widely published, a model may reproduce a memorized answer. To test for this, modify the conditions, change numerical values, or introduce new variables to create variants. A substantial performance gap between the original and variant problems may indicate that memorization contributed to the result.
- Prompt differences. The same model can perform very differently under different prompts. Comparisons should use the same template, and the complete prompt should be documented in the report.
- Reasoning length is not equivalent to capability. A long reasoning process may contain extensive but unproductive exploration. Evaluation should focus on the correctness and completeness of the final proof rather than its length.
- Inference cost. The cost of running different models may vary by several times. When resources are limited, use foundational and intermediate problems for initial screening, then allocate research-level problems to the shortlisted models.
- Small score differences require caution. When two models differ by only a few percentage points and the sample size is small, the difference may simply reflect random variation. Confidence intervals should be used to determine whether the difference is statistically meaningful.
6. Engineering Practices
- Put evaluation scripts and problem sets under version control, and run regression tests automatically whenever a model or prompt is updated.
- Preserve complete outputs and grading records so that errors can be traced later.
- Classify errors by type, such as incorrect references, missing proof steps, or inconsistent notation. Error categories are more useful for improvement than an overall score alone.
- For research-level and open-level problems, retain human review as the final quality-control step. Automated grading should not be treated as the only source of truth.
Conclusion
The key to evaluating mathematical reasoning is to break down the vague question of whether a model is “good enough” into measurable, reproducible, and interpretable indicators. With a tiered problem set, clear grading standards, a fixed workflow, and blind evaluation, teams can obtain more reliable model-selection results at a manageable cost and continuously track capability changes across versions.
