Evaluating LLM Mathematical Reasoning: Metrics and Test Set Design
Reliable evaluation of mathematical reasoning in large language models requires clear scoring criteria and carefully designed test sets. This article outlines three evaluation dimensions, a four-tier approach to problem selection, and practices for dataset versioning and leakage prevention that support reproducible model comparisons.
Evaluating mathematical reasoning in large language models starts with three questions: Which problems should be selected? What counts as correct? How can comparisons be made fair? Without consistent evaluation criteria, a score gap between two models may reveal very little.
1. Define the Evaluation Dimensions
Open-ended mathematical problems do not follow a single solution template, so evaluation should go beyond the final answer. Record results across three dimensions.
Final-answer accuracy: Assign a score of 1 when the answer matches the reference answer and 0 otherwise. For construction problems without a unique answer, have at least two human annotators independently provide reference answers and check their agreement.
Derivation reliability: Measure the proportion of steps in the derivation that contain critical errors. These include calculation errors, failure to account for conditions stated in the problem, and substituting an unproven claim for a proof.
Robustness: Measure the change in accuracy after adding irrelevant conditions to the problem statement or reformulating it as a reverse-reasoning task—finding the premises from a given conclusion. Smaller changes suggest that the model relies less on superficial patterns.
Each dimension needs a computable metric. Statements such as “strong reasoning ability” alone do not produce results that can be reproduced or compared with other evaluations.
2. Prepare the Test Set and Data
Test set quality determines how much confidence an evaluation deserves. If the test set is biased, even a rigorous evaluation process cannot make its conclusions reliable.
Organize Problems into Four Tiers
- Tier 1: Basic algebra and arithmetic. Use these problems to check output formatting and basic calculations.
- Tier 2: Combinatorial counting and number theory. These problems typically involve multistep derivations but follow relatively fixed solution paths.
- Tier 3: Geometry proofs or mathematical analysis problems. These require choosing auxiliary constructions.
- Tier 4: Open-ended construction problems. These have no standard solution method and help assess how the model selects a solution path.
Version the Test Sets
Assign a version number to each test set, such as v2026.11. Record the source of each problem, its creation date, the people who verified its answer, and its revision history.
Once a test set has been used in a formal evaluation, freeze it. Any subsequent changes must be released as a new version.
Prevent Data Leakage
Avoid directly using publicly available competition problems, as they may already be present in model training data. Keep a portion of the problems private as a holdout set, used only for final comparisons. Record the test set file’s hash for each evaluation.
