How to Evaluate Mathematical Reasoning in Large Language Models: A Practical Method

    This article describes a practical method for evaluating the mathematical reasoning of large language models. It explains why informal judgments often mislead, and how to define the evaluation scope, build and decontaminate a problem set, verify answers by type, review reasoning steps, apply statistical methods to results, avoid common mistakes, and organize repeatable reports.

    1. Why Evaluations of Mathematical Reasoning Easily Go Wrong

    Many teams judge a model’s math ability based on a few memorable problems or a single conversation. This approach has three clear problems. First, problem sources are inconsistent, and the difficulty gap between problems can be far larger than the gap between models. Second, rephrasing the same problem, or adding or removing formatting requirements, can produce noticeably different results. Third, model outputs are stochastic, so a single run cannot show stable ability. Evaluation therefore needs to break “mathematical ability” into observable, repeatable metrics, and measure each one.

    2. Define the Scope First

    Before an evaluation starts, decide three things: which types of mathematical ability to test, which scenario the results are for, and what kind of conclusion is acceptable.

    Mathematical ability usually falls into several categories: basic calculation and symbolic manipulation, algebraic and number-theoretic derivation, geometry and combinatorics, formal proof, and open-ended problems without standard answers. Different scenarios weight these abilities differently. Tutoring products focus on whether solution steps are clear. Research support scenarios focus on whether derivations are rigorous and whether the model can propose testable new ideas. The more specific the scope, the easier it is to keep problem selection and scoring criteria consistent.

    3. Build the Problem Set

    The problem set is the foundation of the evaluation. Organize it in three tiers: standard problems with agreed-upon answers, curated held-out problems, and open-ended questions. Standard problems measure a baseline accuracy. Held-out problems reduce the effect of training data that repeats across public sources. Open-ended questions show whether the model can propose approaches and spot errors.

    Each problem should record its source, difficulty label, answer type, and date added. Before inclusion, run deduplication and contamination checks, such as comparing the text similarity of problem statements. This avoids cases where a problem and its standard solution already appear widely in public material. Otherwise, the model may have “seen” the problem rather than “solved” it.

    An illustrative problem record looks like this:

    1. id: problem ID
    2. stem: problem statement
    3. answer_type: integer / expression / proof / open
    4. difficulty: manually annotated, from 1 to 5
    5. source: source description
    6. added_at: date added

    4. Design the Answer Verification Method

    Answer verification determines whether evaluation results are credible. Different answer types need different judging methods.

    Integer answers can be matched exactly, but the answer format must be specified in advance. For example, require the final answer to appear within a fixed marker, and standardize how fractions, negative signs, and units are written.

    Algebraic expressions require symbolic equivalence checks. Comparing strings directly marks correct but differently written answers as wrong. Instead, subtract the reference answer from the model’s answer, simplify the result, and check whether it equals zero. An illustrative logic is shown below:

    1. diff = simplify(model_answer - reference_answer)
    2. correct = (diff == 0)

    Numerical answers need a stated tolerance range, and the calculation precision setting should be recorded.

    Proofs are hard to judge automatically. Split each proof into key steps, and have reviewers with relevant expertise check them one by one. Record whether each step holds and whether there is a gap. Set the review rules before testing, and keep review records so results can be checked later.

    5. Review the Reasoning Process

    The final answer only shows the result. The reasoning process shows whether the model has mastered the method. When reviewing reasoning, check the following: whether each derivation step has a justification, whether contradictions appear across steps, whether the model can recognize and correct its errors, and whether conclusions go beyond the conditions given in the problem.

    Reasoning length is also worth recording separately, but length cannot be equated with ability. Longer reasoning may reflect more careful checking, or it may reflect repeated circling. A more sound approach is to measure the relationship between reasoning length and accuracy. Then check whether, at the same difficulty level, longer reasoning actually yields higher accuracy.

    6. Statistics and Interpreting Results

    Because outputs are stochastic, sample each problem multiple times and report the mean and confidence interval. If the single-run accuracy is p and the number of problems is n, the standard error of the proportion can be approximated as sqrt(p(1-p)/n). For example, with n = 100 and p = 0.6, the standard error is about 0.049. At a 95% confidence level, the half-width of the interval is about 0.096, so accuracy falls roughly between 50% and 70%.

    This means that with a small number of problems, a difference of three to five percentage points between two groups may not be statistically meaningful. When comparing two configurations, use the same problems, the same prompt template, and the same number of samples. Then check whether the difference exceeds the confidence interval.

    7. Common Pitfalls

    The first pitfall is looking only at the hardest problems. Hard problems reveal the capability ceiling, but they do not represent typical performance. Report results separately for each difficulty level.

    The second pitfall is ignoring prompt differences. System instructions, the number of examples, and output format requirements all change results. Fix the prompt template before testing, and include the original text in the report.

    The third pitfall is replacing measurement with a single impression. Subjective impressions are useful, but they should be treated as hypotheses to verify with systematic measurement.

    The fourth pitfall is ignoring timing. Model versions and service configurations change over time. Label evaluation conclusions with the test date and version information so that outdated conclusions are not cited indefinitely.

    8. Practical Recommendations and a Report Template

    Organize the output of a complete evaluation into a fixed structure. It should include the evaluation goals and scope, a description of the problem set that covers its size, tiers, and decontamination steps, the verification methods and review rules, accuracy, confidence intervals, and reasoning length statistics for each difficulty level, an analysis of typical error cases, and conclusions with their applicable boundaries.

    Once the process is fixed, a team can compare results from different times and configurations in the same table. This reduces subjective debate and makes every evaluation reviewable and reproducible.