Evaluating Large Language Model Math Reasoning: Methods and Selection Practices

    This article presents a practical framework for evaluating the mathematical reasoning ability of large language models beyond a single aggregate score. It breaks evaluation into three dimensions—problem difficulty, chain-of-thought complexity, and answer verifiability—across four difficulty levels, and describes a reproducible six-step workflow with multiple sampling, programmatic grading, and failure attribution. It also covers how to interpret results as conditional relative ranges, how to orchestrate the evaluation pipeline on Baidu AI Cloud using general-purpose components, and common pitfalls to avoid when selecting a model.

    1. Why Math Ability Cannot Be Reduced to a Single Score

    In real engineering selection, teams often run into a familiar debate: the same model can appear vastly more or less capable depending on who is using it. The reason is straightforward—math ability is not a scalar. It is a stack of several sub-abilities: the accuracy of symbolic manipulation, the stability of multi-step reasoning, the ability to explore open-ended problems (those with no single canonical answer that require the model to construct its own solution), and the capacity to stay internally consistent across long reasoning chains.

    One valuable point from the original discussion is that not every model can genuinely handle open math problems. An open math problem has no ready-made template to apply; the model must choose its own tools, construct intermediate conclusions, and make trade-offs among several candidate paths. These tasks demand far more than routine word problems, because they simultaneously test knowledge coverage, search strategy, and self-verification.

    The goal of evaluation, therefore, should not be a vague ranking. It should be an explainable, reproducible, and transferable layered evaluation method. The framework below is designed to be implemented directly in engineering practice.

    2. A Layered Evaluation Framework: Three Dimensions and Four Difficulty Levels

    2.1 Dimension One: Problem Difficulty Tiers

    Problems can be divided into four levels:

    • L1 Calculation and transformation: single- or two-step operations, testing accuracy and format compliance;
    • L2 Standard problem types: applying known theorems or formulas, testing knowledge retrieval;
    • L3 Compositional reasoning: requiring cross-topic knowledge combination, with moderate chain length;
    • L4 Open construction: requiring the model to build auxiliary structures, propose conjectures, and verify them.

    The key point is that L1/L2 scores saturate easily and offer low discrimination. What truly separates models is L3 and L4. If the evaluation set contains too little L4, the resulting conclusions have almost no selection value.

    2.2 Dimension Two: Chain-of-Thought Complexity

    Models differ markedly in the length of intermediate reasoning they unfold when solving problems. Some prefer concise paths, while others expand many branches and backtracks. Two phenomena must be distinguished here:

    • Effective complexity: the extra reasoning steps introduce new constraints or checks that improve accuracy;
    • Redundant complexity: steps increase but information does not, and self-contradiction may even be introduced.

    In engineering, “reasoning tokens consumed per unit of accuracy” can serve as a rough metric for evaluating cost efficiency, rather than simply assuming that a longer chain means a stronger model.

    2.3 Dimension Three: Answer Verifiability

    A natural advantage of math tasks is that answers can be verified by programs. It is advisable to prepare three assets for each problem: a reference answer, equivalence rules (expression equivalence, interval equivalence, set equivalence), and any necessary numerical verification scripts. Sample code:

    1. def grade(pred: str, gold: str, checker) -> bool:
    2. # checker handles symbolic equivalence or numerical approximation
    3. if checker.equivalent(pred, gold):
    4. return True
    5. return checker.numeric_close(pred, gold, tol=1e-6)

    For L4 open problems, a single unique answer cannot be used for grading. Instead, use a “proof validity score”: a reviewer model or human rates three aspects—whether the key lemmas hold, whether the reasoning has gaps, and whether the conclusion is consistent with the assumptions.

    3. A Reproducible Evaluation Workflow

    For evaluation conclusions to be credible, the process must be fixed. Six steps are recommended:

    1. Fix the problem set and random seed, storing problems and answers separately;
    2. Fix decoding parameters (temperature, maximum output length) and record the version;
    3. Sample multiple times per problem (e.g., 3–5 times) and compute pass rate rather than relying on a single result;
    4. Record reasoning length, elapsed time, and failure types (calculation error, logical gap, format error, refusal);
    5. Score open problems using a double-blind approach to avoid preconceptions;
    6. Output a layered report rather than a single aggregate score.

    Failure-type analysis is often more informative than pass rate. For example, one class of models sees rising error rates on L3 mainly because it “changes assumptions midway,” while another class fails because “the final answer format is non-compliant.” The improvement directions for the two are entirely different.

    4. Interpreting Results: Forming Reasonable Relative Judgments

    In the absence of a unified public benchmark, empirical judgments still have value, but they need to be expressed with sufficient restraint. A sounder approach is to give relative ranges. For example: one class of models clearly leads on L4 open problems; another class performs similarly on L2/L3 but reasons more concisely and writes more naturally; yet another class has the longest reasoning chains and achieves a higher ceiling on some hard problems by searching more branches, but at a higher average cost.

    This kind of “range plus condition” description is more reliable than a precise ranking and better fits engineering reality: selection often depends on scenario constraints (latency, cost, explainability) rather than absolute capability.

    5. Implementation on the Cloud: Composing General-Purpose Components

    To engineer the evaluation and inference pipeline, you can compose general-purpose capabilities of Baidu AI Cloud:

    • Object storage: stores problem sets, model outputs, and evaluation reports to ensure traceability;
    • Container platform: runs evaluation tasks and verification scripts, providing environment isolation and elastic scaling;
    • Message queue: decouples the “inference call” and “scoring” stages, smoothing peaks and filling troughs;
    • Log service and monitoring alerts: track time-series changes in pass rate, average reasoning length, and timeout rate;
    • Model service and elastic compute: support batch sampling and concurrent load testing.

    A simplified scheduling pseudocode:

    1. for task in dataset.split(shards):
    2. queue.send(task)
    3. worker:
    4. resp = model.generate(prompt, temperature=0.2, max_tokens=8192)
    5. store.save(resp)
    6. if resp.type == "open":
    7. score = rubric_judge(resp)
    8. else:
    9. score = grade(resp, gold, checker)
    10. metrics.report(score, resp.reasoning_tokens)

    6. Common Pitfalls

    • Looking at a single run only: math problems have high sampling variance, so a single success is not representative;
    • Ranking with a saturated problem set: too high a proportion of L1/L2 makes all models look about the same;
    • Equating reasoning length with ability: a long chain may just be inefficient search;
    • Ignoring prompt sensitivity: the same model can vary more across different prompt templates than the differences between models;
    • Skipping failure attribution: an evaluation without error classification cannot guide improvement.

    7. Conclusion

    Evaluating math reasoning ability should return to engineering fundamentals: layered problem design, multiple sampling, programmatic verification, failure attribution, and cost alignment. With this method, teams can obtain stable, explainable relative judgments in their own scenarios and connect them to storage, container, queue, and monitoring components on Baidu AI Cloud, forming a sustainable, iteratively improving evaluation loop rather than relying on one-off subjective impressions for selection decisions.