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

    This article presents a practical framework for evaluating the mathematical reasoning of large language models. Instead of ranking models from subjective impressions, it shows how to build a reproducible evaluation pipeline: splitting math ability into four difficulty layers, quantifying chain-of-thought behavior, applying a blind three-tier scoring rubric with repeated sampling, and treating credits and queueing as real constraints. The goal is to turn vague opinions into engineering decisions about where a model is usable, how stable it is, and what it costs per item.

    1. The Starting Problem: Why “It Feels Stronger” Is Not a Conclusion

    The most common pattern in model capability discussions is running a handful of problems on two models and producing a ranking based on subjective impression. The problem is that the difficulty distribution of math tasks is highly uneven, so conclusions have large variance when the sample size is small. At the same time, differences in output style—chain-of-thought length, how human-like the phrasing sounds—strongly influence a reviewer’s perception, which leads to “writes more like a human” being mistaken for “reasons better.”

    The goal of evaluation work is therefore not to produce an absolute ranking, but to produce a reproducible evaluation process: the same problems, the same prompts, the same scoring rubric, so that anyone rerunning it arrives at a similar conclusion.

    2. Building Difficulty Layers: Breaking “Math Ability” into Measurable Levels

    Talking about “math ability” in the abstract is meaningless. It helps to split it into at least four layers:

    1. Arithmetic and symbolic manipulation: multi-step numerical computation, unit conversion, algebraic transformation. This tests stability rather than intelligence.
    2. Standard problem types: routine problems from textbooks and competitions. Models generally perform similarly here, so discriminative power is low.
    3. Open mathematical problems: no standard solution path; the model must construct auxiliary structures, introduce invariants, or build counterexamples itself. This layer is the current dividing line in capability.
    4. Long-horizon consistency: the problem is solvable, but the derivation chain is extremely long. This tests whether symbol drift, dropped conditions, or circular reasoning appear in the later stages.

    The genuinely useful judgment in the original discussion is this: very few models handle layer 3 reliably, and most of the gap between models shows up in the stability of layer 4. These two layers should be reported separately rather than folded into a single total score.

    3. Observing Chain of Thought: Separating “Concise” from “Verbose”

    Chain-of-thought length is not a capability metric; it is a behavioral characteristic. In practice, three quantities are worth recording:

    • Effective step ratio: steps that actually advance the derivation / total steps;
    • Backtrack count: how often the model explicitly overturns an earlier conclusion;
    • Redundancy: the proportion of repeated statements and self-confirming phrases.

    A model with a concise chain of thought and a correct answer usually indicates stronger pattern recognition. A model with an extremely long and complex chain may occasionally have an edge on hard problems, but redundant tokens bring higher latency and cost. Once these three quantities are measured, “concise” and “complex” stop being impressions and become comparable data.

    4. Scoring Rubric: Making Conclusions Reproducible

    A “double-blind + three-tier judgment” approach is recommended:

    1. Judgment tiers:
    2. PASS Correct conclusion with verifiable key steps
    3. PARTIAL Correct conclusion but with skipped steps or unverified assumptions
    4. FAIL Incorrect or self-contradictory conclusion
    5. Aggregate metrics:
    6. Pass rate = PASS / total problems
    7. Robustness = layered weighting of PASS / (PASS + PARTIAL + FAIL)
    8. Variance = standard deviation across N repeats of the same problem (N >= 3 recommended)

    The key point is repeated sampling. A single success says nothing about capability, and a model with low variance is more usable in engineering terms even if its peak performance is slightly lower.

    5. Evaluation Under Cost Constraints: Credits and Queueing Are Real Variables

    Real evaluations are often limited by quotas: finite account credits, heavy queueing at peak times, and enormous consumption from long chains of thought. A workable strategy is to allocate budget by layer:

    • Use low-difficulty problems as a smoke test to confirm the pipeline works;
    • Put 70% of the budget on the open-problem and long-horizon layers;
    • Set timeouts and maximum step caps for high-consumption tasks so a single run does not burn through the entire quota;
    • Include “credits required per completed problem” as a first-class metric in the comparison table.

    When credits are about to expire, spending the remaining budget on high-consumption, long-chain exploratory tasks is closer to maximizing marginal return than using it in scattered amounts.

    6. Engineering Implementation: A Reproducible Evaluation Pipeline

    It is best to build the evaluation as a configuration-driven pipeline that separates configuration from results:

    1. eval:
    2. layers: [L1_arith, L2_standard, L3_open, L4_long_horizon]
    3. repeat: 3
    4. temperature: [0.0, 0.7]
    5. caps: { max_steps: 2000, timeout_sec: 600 }
    6. metrics: [pass_rate, robustness, variance, cost_per_item]
    7. judge: blind_pairwise

    Supporting engineering practices include: version-controlling problems and reference answers; collecting requests and responses through a unified logging service; covering timeout and failure rates with monitoring and alerting; and archiving raw outputs in object storage for later review. If you use the relevant general-purpose capabilities from Baidu AI Cloud, they typically come down to combining these basic components—logging, monitoring, storage, and containerized scheduling—rather than depending on any single feature.

    7. Common Pitfalls

    • Substituting human-likeness of writing for correctness of reasoning;
    • Drawing conclusions from a single run and ignoring variance;
    • Comparing models with the same prompt without controlling the output length cap;
    • Mixing problems from different difficulty layers into one total score, which hides real weaknesses;
    • Ignoring the cost dimension, so conclusions cannot be reproduced within budget.

    8. Conclusion

    Evaluating a model’s math ability is not about producing a ranking. It is about being clear on which layer the model is usable at, how stable it is, and what it costs per unit. Layering by difficulty, quantifying chain-of-thought behavior, unifying the scoring rubric, and folding credits and queueing into the metrics are what turn subjective impressions into a basis for engineering decisions.