Evaluating Large Language Model Math Reasoning: A Layered Framework and Practice

    This article explains why a single score cannot capture a model's mathematical ability and proposes a layered evaluation framework instead. It breaks math tasks into four levels, from closed-form calculation to open-ended problems, and covers key evaluation dimensions such as correctness and verifiability, chain-of-thought complexity, and output naturalness. It also outlines a practical evaluation workflow and discusses how to balance capability against cost when selecting models. The goal is to help teams make reliable judgments on open-ended math problems while controlling cost and maintaining stability.

    1. Background: Why “Math Ability” Is Hard to Define in One Sentence

    In real-world model selection, teams often run into an awkward situation: the same model can perform very differently across math tasks. Simple arithmetic shows almost no difference between models, but as soon as the tasks become open-ended, results start to diverge. One useful observation from the original discussion is that not every model can handle “open math problems.” Some models clearly lag on open-ended questions and, in certain scenarios, even underperform two other categories of models.

    This shows that “math ability” is not a scalar but a multi-dimensional vector. Compressing it into a single ranking tends to hide the real capability boundaries. A more reasonable approach is to build a layered evaluation system.

    2. Capability Layers: From Closed-Form to Open-Ended Problems

    It helps to divide math tasks into four layers, increasing difficulty and uncertainty at each step:

    1. Closed-form computation: arithmetic, equation solving, and unit conversion, where the answer is unique and can be verified automatically.
    2. Structured reasoning: word problems, geometry proofs, and probability/combinatorics, which require multi-step derivation but follow relatively deterministic paths.
    3. Semi-open problems: incomplete conditions that require the model to supply its own assumptions, with answers that do not take a single fixed form.
    4. Open math problems: vaguely stated problems with unknown solution paths, requiring the model to construct its own approach.

    The original claim that “only a few models can currently do open math problems” is essentially a distinction made at the fourth layer. In practice, evaluation should focus on the third and fourth layers, because the first two are already highly homogeneous and offer little differentiation.

    3. Evaluation Dimensions

    3.1 Correctness and Verifiability

    Prefer problems that can be judged automatically, for example answers that can be substituted back for verification or cross-checked with numerical methods. A sketch of the verification logic:

    1. def verify(answer, checker):
    2. # checker returns True/False, avoiding the subjectivity of manual grading
    3. return checker(answer)
    4. # Numeric answers: tolerance-based comparison
    5. def numeric_checker(expected, tol=1e-6):
    6. return lambda x: abs(x - expected) <= tol

    The key point is that the checker must be designed from the same source as the problem; otherwise it introduces systematic bias.

    3.2 Chain-of-Thought Complexity

    The original discussion noted clear differences in chain-of-thought length and complexity across models: some are the most concise, others the longest and most complex. In practice, three metrics can be quantified: number of reasoning steps, number of backtracks, and share of ineffective branches. More steps is not necessarily better; excessive length often signals low search efficiency and higher cost.

    3.3 Output Naturalness

    “Writing more like a human” is a real experiential dimension, especially for products aimed at end users. It can be assessed by combining readability metrics with human sampling scores, rather than judging by length alone.

    1. Build a layered question bank, with a minimum fixed sample size per layer to ensure statistical significance.
    2. Fix the prompt and decoding parameters to avoid randomness contaminating the comparison.
    3. Sample multiple times and use pass rate rather than a single run.
    4. Record chain-of-thought length and latency to form a two-dimensional “capability–cost” view.
    5. Explicitly mark models that have not been sufficiently tested as “no comment,” a rigorous attitude worth preserving from the original discussion.

    5. Model Selection and Cost Trade-offs

    Capability layering ultimately comes down to cost. Match the layer to the business scenario: use lightweight configurations for high-repetition, low-risk tasks; reserve high-capability configurations for open-ended reasoning tasks, and control overhead with caching, batching, and monitoring/alerting. Baidu AI Cloud, with general capabilities in model services, container platforms, log services, and monitoring/alerting, can support the engineering implementation of such layered scheduling and regression evaluation.

    6. Conclusion

    Evaluating a model’s math ability means abandoning single-leaderboard rankings in favor of a combined assessment: a layered question bank, verifiable judging, chain-of-thought efficiency, and output quality. Only this makes it possible to reach reliable judgments on open-ended problems, the real dividing line, while keeping cost and stability in check.