Evaluating Mathematical Ability in LLMs: Dimensions, Test Design, and Reproducible Workflows
Mathematical tasks provide a controlled setting for examining LLM reasoning, but correct final answers alone do not prove mathematical ability. This article outlines key evaluation dimensions—final-answer correctness, derivation rigor, proof completeness, source and originality, and performance on open problems—along with principles for test design, proof verification, reproducible evaluation workflows, common analysis pitfalls, cost management, and practical recommendations. The goal is to help developers build evaluations that separate results, reasoning processes, and knowledge sources, and that produce comparable, reviewable evidence for use cases such as formula validation, teaching assistance, and research support.
1. Why Mathematical Ability Needs Separate Evaluation
Mathematics is a representative setting for testing reasoning ability. Unlike open-domain question answering, mathematical problems have clear correct answers, and their derivations can be checked step by step. This makes them suitable for observing whether a model’s logical chain is stable.
However, answering a problem correctly does not necessarily mean the model has mathematical reasoning ability. A model may have memorized problems or proofs that appeared in its training data, or it may produce plausible-looking steps for superficially similar problems. Evaluation should therefore separate the final result, the derivation process, and the knowledge source. For developers, this distinction directly affects whether a model can be used for formula validation, teaching assistance, research assistance, and similar scenarios.
2. Core Evaluation Dimensions
1. Correctness of the Final Answer
Numerical problems, expression problems, and multiple-choice problems can be compared automatically, but equivalent forms must be handled. For example, 1/2 and 0.5, or √4 and 2, are mathematically equal, and simple string matching would misclassify them. Symbolic computation or numerical substitution is recommended for equivalence checking.
2. Rigor of the Derivation Process
Check whether each step follows strictly from the preceding premises, and whether there are skipped steps, circular arguments, or misuse of notation. An answer with a correct final conclusion may still contain errors in intermediate steps, and such issues are especially easy to overlook during manual review.
3. Completeness of Proofs
For proof problems, check whether all cases are covered, whether boundary conditions are handled, and whether cited lemmas apply under the current conditions. For example, in an inductive proof, a missing base case or improper use of the induction hypothesis is a common defect.
4. Knowledge Source and Originality
Determine whether the output reproduces the proof structure of existing literature. Two cases should be distinguished: correctly citing known results and deriving from them, versus presenting a published proof as an original derivation. The former is legitimate academic behavior; the latter should be separately marked in the evaluation record.
5. Performance on Open Problems
For problems without a generally accepted solution, focus on whether the model can propose valuable directions, identify known incorrect paths, and clearly mark uncertainty. A model that can state “I cannot verify this step” is often more informative than one that produces a seemingly complete proof with gaps.
3. Principles for Test Design
- Layered difficulty: Build a difficulty gradient from basic problems to graduate-level theorem proofs. Conclusions drawn from a single difficulty band are difficult to generalize to other scenarios.
- Prevent data contamination: Prefer new problems published after the model’s training cutoff. For classic problems, rewrite conditions or change numerical values to observe whether the model relies on memorization.
- Multiple formulations of the same problem: Change wording, add irrelevant conditions, and require step-by-step presentation to test whether conclusions remain stable. For example, present the same proposition in a standard formulation, a paraphrased formulation, and a formulation with distractor conditions, then compare correctness rates and derivation consistency across the three.
- Define scoring rubrics in advance: For proof problems, write down key steps, necessary lemmas, and common error types beforehand. Manual review without a rubric makes it difficult to ensure consistency across reviewers.
4. How to Determine Whether a Proof Is Truly Complete
A proof output can be checked through the following process:
- Ask the model to list all cited premises and theorem numbers, then verify item by item whether they exist in public literature and whether their statements match the original sources.
- For each key step, ask for an alternative explanation or use a concrete small example to verify that step.
- Manually remove a lemma from the proof and observe whether the model detects the gap and fills it, or simply skips over it.
- For conclusions claimed to be “not found in the literature,” use literature search and ask domain experts to review them.
Below is pseudocode for a scoring workflow that splits a proof into steps and checks them one by one:
function evaluate_proof(problem, model_output, rubric):steps = split_into_steps(model_output)score = 0gaps = []for i, step in enumerate(steps):if step_is_justified(step, steps[:i], rubric):score += 1else:gaps.append(step)cited = extract_references(model_output)unverified = [c for c in cited if not in_known_literature(c)]return {"score": score / len(steps), "gaps": gaps, "unverified": unverified}
Here, step_is_justified can be performed by human reviewers or assisted by rules or symbolic checkers. Steps that cannot be automatically judged should be retained as manual review items.
5. Building a Reproducible Evaluation Workflow
A reproducible evaluation typically includes the following components:
- Define the evaluation set: Record problem sources, difficulty labels, answer types, and whether the problems are public.
- Fix inference parameters: Record sampling temperature, maximum output length, system prompt, and model version. Results are not comparable when parameters differ.
- Sample multiple times: Generation is stochastic, so run each problem at least multiple times and calculate the consistency rate of conclusions.
- Use multiple reviewers: Proof scoring involves subjectivity. Calculate an inter-rater agreement coefficient and discuss samples with large disagreements.
- Record costs: Track input and output lengths, response latency, and number of calls to measure the cost-effectiveness of different models.
6. Common Pitfalls in Results Analysis
- A single aggregate score masks structural differences: A model may be stable on algebra problems but frequently skip steps in combinatorial proofs. Results should be broken down by problem type and difficulty.
- Sample size is too small: Pass rates on a dozen problems can fluctuate widely. Report confidence intervals at the same time and avoid overinterpretation.
- Mistaking form for substance: Length, terminology, and formatting do not equal logical correctness. Evaluation should be based on whether each step holds.
- Ignoring prompt effects: The same model may perform very differently under different prompts, so prompt templates must be unified when making comparisons.
- Treating personal impressions as conclusions: Personal experience can provide clues, but it must be supported by reviewable samples.
7. Cost and Resource Management
Evaluation itself consumes compute resources and call credits, and reasonable planning can avoid waste.
- First screen candidate models with a small sample, then run full testing on shortlisted models.
- Cache outputs for identical inputs to avoid repeated calls.
- Set a budget cap, and when it is exceeded, stop and record the completed portion.
- Split long reasoning tasks into multiple stages so that failures can be localized to a specific stage.
- For credits that are about to expire, plan their use in advance and prioritize tasks with clear verification goals, avoiding concentrated consumption on low-value tasks.
8. Practical Recommendations
- Clarify the purpose of evaluation first—for example, teaching assistance, formula checking, or research exploration—and then decide on the evaluation set and scoring criteria.
- Treat model outputs as drafts to be verified. Key conclusions must be checked by humans or independent programs.
- Be cautious with open problems, and distinguish between “no counterexample found” and “proved.”
- Regularly update the problem set and evaluation records, track changes in the same model across versions, and build comparable historical data.
