How to Evaluate and Benchmark the Mathematical Reasoning Ability of Large Language Models

    This article presents a rigorous, reproducible framework for evaluating the mathematical reasoning ability of general-purpose large language models. It explains why informal rankings are unreliable, separates closed-form from open-ended problems, and covers evaluation set design, contamination control, domain coverage, and metric selection beyond accuracy. It also details reasoning budget alignment, a reproducible experiment workflow, common pitfalls, and a dual-track approach for putting evaluation into engineering practice.

    1. Background: Why “It Feels Stronger” Is Not Reliable

    In real model selection work, teams often run into the same argument: for one model, some people find its reasoning excellent, while others think it is mediocre. Ranking-style judgments from informal discussions, such as “Model A definitely cannot beat Model B” or “Model C sits somewhere between two versions,” are very common in engineering practice. However, they implicitly rely on three untested assumptions: the evaluation problems are equally difficult, the scoring criteria are consistent, and the reasoning budget is the same. If any one of these does not hold, the ranking becomes distorted.

    Therefore, this article does not discuss any specific product. Instead, it abstracts the problem into: how to rigorously, reproducibly, and constructively evaluate the mathematical reasoning ability of general-purpose large language models for model selection.

    2. Start With Layers: Closed-Form and Open-Ended Problems Measure Different Abilities

    Mathematical ability is not a single dimension. At minimum, it should be split into two layers:

    • Closed-form problems: The answer is unique and can be judged automatically, such as competition problems, textbook exercises, and formal proof goals. They measure “search and execution within a known solution space.”
    • Open-ended problems: The problem statement is incomplete, requires self-modeling, has no unique answer, or requires a constructive proof. They measure “problem definition, assumption completion, and solution construction.”

    Many arguments stem from conflating the two. A model with very high accuracy on closed-form problems does not necessarily handle open-ended problems well; conversely, a model that performs well on open-ended problems may simply be better at “stating the problem clearly” rather than being stronger at computation. The first principle of evaluation design is: state clearly which layer you are measuring.

    3. Building the Evaluation Set: Difficulty, Contamination, and Distribution

    3.1 Difficulty Levels

    It is recommended to divide problems into four levels: routine computation, multi-step reasoning, problems requiring constructive ideas, and open modeling. Each level needs a sufficient sample size to avoid small samples where variance dominates the conclusions.

    3.2 Data Contamination Control

    Public problem banks can easily end up in training corpora. Practical approaches include: creating self-built variants (changing numbers, conditions, or phrasing), using recent original problems, and keeping a holdout set that is never made public. If scores drop sharply on variant problems, it indicates the model relies on memorization rather than reasoning.

    3.3 Distribution Alignment

    The evaluation set should cover algebra, number theory, combinatorics, geometry, probability, and modeling applications, avoiding an overrepresentation of any single domain that could cause “being strong in one area to be misread as being strong overall.”

    4. Metric Design: What to Look at Beyond Accuracy

    A single accuracy metric is not enough to support model selection. At least four types of metrics are recommended:

    1. Result correctness: Whether the answer can be verified as true.
    2. Process validity: Whether the steps can be reviewed, and whether there are skipped steps or circular reasoning.
    3. Chain-of-thought conciseness: The effective reasoning length and information density required to reach a correct conclusion. Concise does not mean short; it means no redundant backtracking.
    4. Expression naturalness: Whether the conclusion is stated clearly, whether terminology is accurate, and whether it is easy for humans to review.

    Illustrative scoring logic (pseudocode):

    1. score = 0.5 * correctness
    2. + 0.2 * process_validity
    3. + 0.15 * (1 - normalized_redundant_steps)
    4. + 0.15 * readability

    The weights need to be adjusted according to the business scenario: automated pipelines care more about correctness and process verifiability; scenarios oriented toward human review care more about expression naturalness.

    5. Reasoning Budget Must Be Aligned

    The default reasoning length varies greatly across models. Without a unified budget, you are comparing “default configurations” rather than “capability ceilings.” It is recommended to run three sets of experiments: a fixed minimum budget, a fixed maximum budget, and an allowed adaptive budget, and record each separately. Only then can you answer “whether it is stronger under the same compute” and “whether it uses less compute.”

    6. A Reproducible Experiment Workflow

    1. Freeze the evaluation set and version number, and record the hash of each problem.
    2. Fix the decoding parameters and budget, and record the full configuration.
    3. Sample multiple times per problem, and report the mean and variance rather than a single result.
    4. Manually spot-check process validity, with a sampling ratio of no less than ten percent.
    5. Output a structured report: layered scores, distribution of failure types, and cost curves.

    7. Common Pitfalls

    • Using leaderboards instead of evaluation: Leaderboard problems may have already been widely learned.
    • Using a single experience instead of statistics: Variance is very large, so individual cases are meaningless.
    • Equating conciseness with correctness: Over-compression may hide wrong assumptions.
    • Ignoring the cost dimension: At the same accuracy, reasoning length directly determines the unit cost.

    8. Engineering Implementation Suggestions

    In real business settings, a “dual-track approach” can be adopted: use closed-form problems online for regression monitoring, and use open-ended problems offline for capability assessment. At the same time, build a failure case library and attribute errors by type (calculation mistakes, modeling bias, missing conditions, expression defects). If cloud resources are used, evaluation task orchestration can be combined with a container platform, datasets and results can be stored in object storage, and logging services and monitoring alerts can track success rate and latency, turning evaluation from a one-time activity into a continuous pipeline.

    9. Conclusion

    Evaluating the mathematical ability of a large language model is not about giving a vague ranking. The key is to clarify which layer to measure, which set to use, what budget to align, which metrics to examine, and how to reproduce the results. Once this framework is established, model selection discussions can move from subjective impressions to engineering conclusions.