Evaluating Mathematical Reasoning in Large Language Models: Methods and Best Practices

    A common approach to evaluating a large language model's math ability—picking a few problems, checking the final answers, and ranking models by impression—is cheap but unreliable. Results are easily skewed by problem selection, prompt wording, and subjective judgment, and are hard for others to reproduce. This article presents a practical evaluation framework built around a clear objective, covering five areas: benchmark design, evaluation workflow, metrics, reasoning analysis, and human review. It also highlights common pitfalls and offers step-by-step guidance for teams setting up their own evaluation pipeline.

    When evaluating the mathematical reasoning ability of large language models, a frequent practice is to pick a few problems, glance at the answers, and produce a ranking based on impressions. This approach is low-cost, but its conclusions are easily influenced by problem selection, prompt wording, and personal judgment, making results difficult to reproduce. This article starts from the evaluation objective and lays out an actionable framework covering five areas: benchmark design, evaluation workflow, metric calculation, reasoning process analysis, and human review.

    1. Define the Evaluation Objective

    Before evaluating anything, answer one question: what capability are you actually testing? Mathematical ability spans several distinct task types: basic computation and algebraic manipulation, competition-style combinatorics and number theory reasoning, multi-step proofs, and open problems with no widely accepted answers. Different tasks place different demands on a model. If they are scored together as one blended total, the overall number cannot tell you where the model is strong.

    The evaluation objective should therefore be written as a testable statement. For example, “Can the model independently complete an algebraic derivation of five or more steps under given conditions and produce a verifiable final answer?” is far easier to design an experiment around than “Is the model good at math?” Once the objective is clear, the problem sources, scoring criteria, and reporting format all have a basis.

    2. Benchmark Design

    The benchmark determines the ceiling of your evaluation. Three factors matter most when designing it.

    The first is coverage. Problems should be stratified by knowledge domain and difficulty, with sufficient quantity in each stratum, to avoid over-representing any single problem type. The second is answer decidability. Problems with a unique numerical answer or machine-checkable solutions are easiest to score, while proof problems and open-ended questions require additional review rules. The third is contamination control. If problems have been public for years, the model’s training data may already contain the original problems or their solutions, inflating scores. To reduce this risk: use recently published problems, rewrite the numbers and conditions in existing problems, and keep a private problem set reserved exclusively for final evaluation.

    For open-ended problems, you cannot simply ask for “the correct answer,” because the answer itself may be unknown. These tasks are better evaluated on three things: whether the model can propose valuable ideas, whether it can produce verifiable intermediate conclusions, and whether it can identify gaps in its own derivation. Scoring criteria should be written in advance—for example, “a construction that satisfies all constraints is graded level 1; a construction that exists but is not fully proven is graded level 2.”

    3. Evaluation Workflow and Reproducibility

    The same model can perform very differently under different settings. The workflow should fix the following parameters: prompt template, system instructions, sampling temperature, maximum output length, whether tool calls are allowed, random seed, and evaluation date. If any one of these goes unrecorded, the results are hard to reproduce.

    The workflow can be broken into four steps: load the problems, call the model to generate outputs, extract the final answer from each output, and use a checker to judge correctness. The following pseudocode illustrates the basic structure:

    1. def evaluate(model, problems, checker, config):
    2. records = []
    3. for p in problems:
    4. output = model.generate(
    5. prompt=config.template.format(question=p.text),
    6. temperature=config.temperature,
    7. max_tokens=config.max_tokens,
    8. seed=config.seed,
    9. )
    10. answer = extract_final_answer(output.text)
    11. ok = checker.verify(answer, p.reference)
    12. records.append({
    13. "id": p.id,
    14. "domain": p.domain,
    15. "correct": ok,
    16. "reasoning_len": len(output.text),
    17. "truncated": output.finish_reason == "length",
    18. })
    19. return records

    Answer extraction is an error-prone step. A model may place intermediate results at the end, or represent the same value in different formats. It is best to enforce a unified output format—for example, requiring the final answer to appear after a fixed marker—and to normalize equivalent forms (fractions vs. decimals, different unit notations). The extraction rules themselves should be unit-tested against a set of sample outputs.

    4. Metrics

    A single accuracy figure tells only part of the story. Report at least the following metrics.

    1. Overall accuracy: correct problems divided by total problems, broken down by difficulty and domain.
    2. Confidence intervals: with a small number of problems, accuracy fluctuates widely. Use a binomial approximation or bootstrap resampling over the problems. If the intervals of two models overlap substantially, do not claim a definitive ranking.
    3. Truncation rate: the proportion of outputs that hit the length limit without producing a final answer. Truncation marks potentially correct solutions as wrong, so it must be tracked separately to distinguish “insufficient reasoning ability” from “insufficient output budget.”
    4. Self-consistency across samples: sample the same problem multiple times and measure how often the answers agree. High consistency does not imply correctness, but low consistency usually signals the model is unstable on that problem.
    5. Cost metrics: average output length or inference time. These help readers judge whether accuracy gains came at the price of substantially higher overhead.

    When reporting results, always include the benchmark version, evaluation settings, and date, so readers do not assume the numbers are directly comparable under any conditions.

    5. Analyzing the Reasoning Process

    The final answer is only part of the picture. The reasoning process offers more information, but it must be interpreted carefully.

    Reasoning length can serve as an auxiliary signal. At similar accuracy levels, shorter reasoning with clear steps is generally easier for humans to verify. But length alone does not indicate quality: a verbose chain of thought may contain a great deal of futile exploration—or it may genuinely reflect deep analysis of a hard problem. Therefore, examine length together with accuracy and truncation rate before drawing conclusions.

    Another useful angle is error classification. Common error types include: misreading the conditions, arithmetic slips, skipped steps, citing nonexistent results, conclusions that contradict the premises, and fabricating answers when no solution exists. Tabulating errors by type reveals the model’s weak spots and points to concrete directions for improvement.

    For proof-style outputs, check whether each step actually follows from the premises. A practical approach: have reviewers first mark the key derivation steps, then verify each step individually.

    6. Human Review

    Automated checking cannot cover every problem type, so human review is indispensable.

    Review should be blind: reviewers should not know which system produced each answer, to reduce preconceptions. Each problem should be scored independently by at least two reviewers, with large disagreements referred to a third reviewer for adjudication. Inter-rater agreement can be measured with statistics such as Cohen’s kappa.

    Human review must also guard against two biases. The first is a preference for confident conclusions: when reading fluent, confident writing, reviewers tend to give high marks even when the derivation contains holes. The second is fatigue from long texts: when the reasoning is very long, reviewers may skip intermediate steps. To mitigate this, require reviewers to check the key steps first, then read the full solution.

    7. Common Pitfalls

    First, ranking models from a handful of problems. Results from a dozen or so problems cannot support a stable ranking—report intervals and avoid overinterpreting.

    Second, treating “gave an answer” as “reasoned correctly.” The answer may be a guess or merely coincidental. Samples where the final answer is right but the process is wrong should be flagged separately.

    Third, ignoring prompt differences. The same model can score noticeably differently under a different prompt. Comparisons must use identical templates, or report results for multiple template groups separately.

    Fourth, mistaking subjective impressions for conclusions. Personal experience is useful for generating hypotheses, but it only becomes evidence after being converted into a testable experiment.

    Fifth, ignoring time. Model versions get updated and benchmarks change. Label evaluation results with dates, and do not keep citing stale results indefinitely.

    8. Getting Started

    To establish a math reasoning evaluation pipeline within your team, proceed in the following order.

    First, define three to five target task categories and write scoring criteria for each. Next, build a small seed benchmark containing both automatically checkable problems and problems requiring human review. Then write the evaluation scripts, fixing configurations and logging everything. After that, run a pilot round to check whether answer extraction and scoring rules have systematic biases. Finally, set up a regular refresh cycle: periodically add new problems, retire leaked ones, and maintain a private test set.

    The purpose of evaluation is to support decisions—such as choosing a model for a given task type, or judging whether an improvement actually worked. As long as the evaluation design aligns with the objective, the results will directly serve those judgments.