How to Evaluate Large Language Model Math Reasoning: A Practical Guide

    This article explains why a single "which model is stronger" ranking cannot capture math reasoning ability, and how to evaluate it as a multi-dimensional vector instead. It covers splitting math capability into measurable layers, building layered and contamination-resistant evaluation sets with fixed inference budgets, observing chain-of-thought length and self-correction properly, turning subjective judgment into a reviewable scoring process, and engineering evaluation into a repeatable pipeline. Readers will find practical guidance for choosing models by task, budget, and cost rather than by leaderboard position.

    1. The Problem: Why “Which Model Is Stronger” Is Hard to Answer in One Sentence

    In technical communities, discussions about the math ability of large language models quickly turn into ranking debates. One typical view in the original discussion is that a certain class of models has a clear advantage on open-ended math problems, while other models make different trade-offs in chain-of-thought conciseness, human-like writing, and reasoning length. Others place models from different generations on a single capability scale based on personal experience.

    The real value of these discussions is not the ranking, but an engineering fact they expose: math ability is not a scalar, but a multi-dimensional vector. Compressing a multi-dimensional vector into a single index inevitably loses information and leads to poor model selection. A more professional approach is to build a reproducible evaluation method and answer, with data, “on which task, at what cost, and at what accuracy.”

    2. Breaking “Math Ability” into Measurable Dimensions

    To evaluate, you must first define. A widely accepted breakdown in the industry splits math tasks into layers, each corresponding to a different failure mode:

    1. Calculation and symbolic manipulation: arithmetic, algebraic transformation, equation solving. Failures appear as sign errors or incomplete simplification.
    2. Single-step reasoning: requires one correct choice of theorem or formula. Failures appear as choosing the wrong tool.
    3. Multi-step chained reasoning: requires five or more logically connected steps. Failures appear as conclusion drift midway or lost conditions.
    4. Open-ended problems: the problem statement is incomplete, assumptions must be filled in, and auxiliary structures must be constructed. Failures appear as failure to converge or a pseudo-proof.
    5. Expression and verifiability: whether the conclusion is presented in a checkable form and whether the steps can be independently reviewed by a third party.

    The evaluation in the original discussion of “can handle open-ended math problems” corresponds exactly to layer 4. Capability at this layer cannot be extrapolated from accuracy at layer 1 and must be tested with separately designed problems.

    3. Building the Evaluation Set: Layered, Decontaminated, Reproducible

    3.1 Layered Sampling

    Prepare at least 50 to 100 problems per layer to ensure statistical significance. There should be clear boundaries between layers, avoiding a single problem that depends on multiple layers at once, which makes attribution difficult.

    3.2 Contamination Control

    Model training data may include public problem banks, inflating scores. Three common engineering measures are:

    • Apply equivalent transformations to problems (change values, wording, or the way the question is asked);
    • Introduce original problems that must be constructed on the spot;
    • Keep a portion of “trap problems” whose surface pattern is inconsistent with the real solution.

    3.3 Fixed Inference Budget

    Evaluation must fix sampling parameters and maximum reasoning length; otherwise, a “longer chain of thought” will be misread as “stronger ability.” It is recommended to record performance under three budget settings and observe the slope of the curve of ability as budget grows. This is more informative than a single-point value.

    An illustrative evaluation configuration (pseudocode, structure only):

    1. eval_config = {
    2. "layers": ["calc", "single_step", "multi_step", "open_ended", "verifiable"],
    3. "samples_per_layer": 80,
    4. "budgets": [1024, 4096, 16384], # reasoning length budget
    5. "temperature": 0.0,
    6. "repeats": 3, # repeated sampling to estimate variance
    7. "judge": "rule_based + human_spotcheck"
    8. }

    4. The Right Way to Observe Chain of Thought

    The original discussion covers chain-of-thought length and conciseness extensively. These are valuable observation points, but they need to be methodized:

    • Conciseness does not equal capability. A shorter chain of thought may mean the problem is simple, or that the model is highly confident and correct. It must be analyzed together with accuracy.
    • The relationship between length and gain. Plot the “reasoning length vs. accuracy” curve. If a clear plateau appears, continuing to lengthen reasoning on that layer of tasks only consumes compute.
    • Self-correction rate. Measure the proportion of times the model actively finds and fixes errors during reasoning. This is a core indicator of chained-reasoning robustness.
    • Condition retention rate. In multi-step reasoning, the proportion of the given premises that are preserved in later steps directly determines success or failure on long-chain tasks.

    5. Scoring: Turning Subjective Judgment into a Reviewable Process

    Open-ended math problems are hard to score with string matching. A three-layer scoring approach can be used:

    1. Rule layer: if the final answer can be checked numerically, compare directly; if not, extract key intermediate quantities and make assertions.
    2. Model review layer: use another model to score according to a fixed rubric. The rubric must publish its dimensions and weights to reduce arbitrariness.
    3. Human spot-check layer: sample and review by proportion to calibrate the bias of model review.

    Suggested rubric dimensions (example):

    Dimension Weight Description
    Conclusion correctness 0.4 Whether the final answer holds
    Logical completeness 0.3 Whether there are skipped steps or circular reasoning
    Assumption reasonableness 0.15 Whether assumptions filled in for open-ended problems are acceptable
    Verifiability 0.15 Whether steps can be independently reviewed by a third party

    6. Engineering: Making Evaluation a Pipeline

    Evaluation is not a one-off script, but infrastructure that needs to run continuously. A minimal viable architecture typically includes:

    • Task and dataset management: versioned problems, annotations, and change records;
    • Inference scheduling layer: a unified wrapper for different model calls that hides interface differences and enables side-by-side comparison;
    • Object storage: stores problems, raw outputs, and chain-of-thought logs for traceability;
    • Message queue: smooths peaks and valleys to support large-batch concurrent evaluation;
    • Container platform: ensures a consistent evaluation environment and avoids dependency drift;
    • Logging, monitoring, and alerting: records success rate, timeout rate, and average reasoning length, and triggers alerts on anomalies.

    On Baidu AI Cloud, these roles can be carried by general product categories such as object storage, message queue, container platform, and logging, monitoring, and alerting, upgrading evaluation from “manual scoring” to a sustainable, regression-capable engineering capability.

    7. Common Pitfalls

    1. Replacing scenario validation with a single leaderboard. The problem distribution of leaderboards often does not match the business distribution.
    2. Ignoring the cost dimension. At the same accuracy, differences in reasoning length, latency, and call cost can be huge and must be part of the decision.
    3. Treating generational differences as absolute capability differences. Differences between model generations in conciseness and expression style may affect the actual experience more than capability differences do.
    4. Lacking a regression mechanism. Models keep iterating, so one-off evaluation conclusions expire quickly.

    8. Conclusion

    Rather than arguing whether a model is “absolutely stronger,” rewrite the question as an engineering problem: under a given task layering, a given inference budget, and a given cost constraint, which class of models is the best fit. Building a layered evaluation set, standardizing chain-of-thought observation, fixing the scoring criteria, and consolidating the process into a regression-capable pipeline are the truly reusable assets for a technical team.