How to Evaluate and Compare the Math Reasoning Ability of Large Language Models

    This article turns model ranking debates into a reproducible evaluation engineering problem. It defines four evaluation dimensions (correctness, process quality, stability, and resource profile) and a three-tier difficulty scheme (L1, L2, L3), then shows how to build a pipeline with fixed variables, layered reporting, quantified chain-of-thought complexity metrics, and controlled cross-generation comparisons. It also lists common pitfalls and suggests a layered evaluation and routing strategy for practical model selection.

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

    In real engineering selection work, teams often have to answer a question that looks simple: how strong is a given large language model at math? Original discussions are full of claims like “model A is worse than model B” or “this version sits between two other versions.” Such conclusions usually come from personal usage experience. They are subjective, hard to reproduce, and highly dependent on problem difficulty, prompting style, sampling parameters, and scoring criteria.

    A more reasonable approach is to reframe “model ranking” as a “capability evaluation engineering problem.” The goal of evaluation is not to produce a permanent leaderboard, but to answer three actionable sub-questions:

    • On the target business problem types, what are the accuracy and stability of each candidate model?
    • At the same accuracy level, which model produces a more concise and auditable reasoning process?
    • Under cost, latency, and context length constraints, which model combination is optimal?

    It is important to stress that math ability is not a single dimension. It can be broken down into multiple sub-abilities: arithmetic and symbolic computation, algebraic manipulation, combinatorial counting, probability and statistics, geometric intuition, and open-ended problem exploration. Strong performance on competition problems does not mean a model is equally reliable on open math problems (problems with no standard answer that require constructing a solution path on your own). Evaluation must therefore start with capability layering before any comparison.

    2. Evaluation Framework: Four Dimensions and Three Difficulty Tiers

    2.1 Four Core Dimensions

    1. Correctness: whether the final answer is correct and can be automatically scored or manually reviewed.
    2. Process quality: whether the chain of thought is concise, whether there is redundant backtracking, and whether there are logical jumps.
    3. Stability: consistency across multiple samples of the same problem, measurable via majority-vote agreement rate.
    4. Resource profile: end-to-end latency, output length, context usage, and call cost range.

    2.2 Three Difficulty Tiers

    • L1 (Basic): multi-step arithmetic, equation solving, and standard probability problems, used to verify usability and run regression tests.
    • L2 (Intermediate): competition-style problems requiring multi-step reasoning and techniques, used to distinguish mid-to-high-tier models.
    • L3 (Open-ended): problems with no standard solution or a large solution space, focused on exploration ability and process readability, and requiring human review.

    The view in the original discussion that “only a very few models can do open math problems” essentially emphasizes the scarcity of the L3 tier. The engineering response is not to find a “single correct model,” but to design a separate review process and fallback strategy for L3.

    3. A Reproducible Evaluation Pipeline

    Evaluation must fix variables; otherwise the conclusions do not transfer. Recommended fixed configurations: temperature and sampling parameters, maximum output length, prompt template version, scoring script version, problem hashes, and random seeds. Any change to these should be treated as a new experiment.

    The following is illustrative pipeline code (it only expresses structure and does not involve any specific platform interface):

    1. # Pseudocode: evaluation pipeline skeleton
    2. def run_eval(model_client, dataset, cfg):
    3. results = []
    4. for item in dataset:
    5. if item.level == "L3":
    6. verdict = human_review(model_client, item, cfg) # human review
    7. else:
    8. votes = [model_client(item.prompt, cfg) for _ in range(cfg.n)]
    9. verdict = auto_judge(item.answer_key, votes) # automatic scoring
    10. results.append({
    11. "id": item.id,
    12. "level": item.level,
    13. "correct": verdict.correct,
    14. "consistency": verdict.consistency,
    15. "tokens_out": verdict.tokens_out,
    16. "latency_ms": verdict.latency_ms,
    17. })
    18. return summarize(results)

    For the summary stage, output a layered report rather than a single overall score: report accuracy, vote agreement rate, average output length, and average latency separately for L1/L2/L3. Only then can you see the difference between “accurate but verbose” and “concise but occasionally wrong.”

    4. Quantifying Chain-of-Thought Complexity

    The original discussion repeatedly mentions “longer and more complex chain of thought” and “more concise, more human-like writing.” This is really the process quality dimension. Actionable metrics include:

    • Output length: the ratio of effective problem-solving tokens to total output tokens;
    • Backtracking count: the frequency of self-negating fragments like “rechecking” or “I miscalculated earlier”;
    • Branch count: the number of different solution paths attempted in parallel;
    • Convergence steps: the number of key reasoning steps from problem to conclusion.

    The engineering recommendation is to normalize these metrics before comparing, so that long chains of thought do not have a natural advantage on hard problems. For cost-sensitive scenarios, you can set a “conciseness constraint,” meaning that when the accuracy drop does not exceed a set threshold, prefer the model with shorter output.

    5. How to Properly Compare Models Across Tiers

    The original content gives an intuitive layered ordering: at the top, a few models good at open-ended problems; in the middle, models with concise reasoning and natural writing; then models with very long chains of thought that are not necessarily weaker; and finally judgments about different generations “sitting between two tiers.” Abstracted into a methodology, three points matter:

    1. Control variables in cross-generation comparisons. Different generations may have different default parameters, context lengths, and tool-calling abilities. Direct comparison easily mistakes engineering differences for capability differences.
    2. Express “between two tiers” as an interval. Describe it with confidence intervals or tiered win rates, rather than giving an absolute rank.
    3. Bind rankings to scenarios. Writing tasks prefer a concise, natural process; formal proofs prefer auditable reasoning steps; open exploration prefers branch diversity.

    6. Common Pitfalls and How to Avoid Them

    • Pitfall 1: Using a single leaderboard instead of business evaluation. Avoidance: build an internal problem set and run regular regression.
    • Pitfall 2: Ignoring sampling randomness. Avoidance: sample multiple times and report agreement rate.
    • Pitfall 3: Looking only at the final answer. Avoidance: introduce process quality metrics and manual spot checks.
    • Pitfall 4: Treating subjective experience as a conclusion. Avoidance: attach the problem, parameters, and scoring script version to every conclusion.
    • Pitfall 5: Ignoring cost and context limits. Avoidance: fix the resource profile dimension in the report.

    7. Implementation Advice and General Cloud Capabilities

    In enterprise environments, evaluation and inference services usually need general cloud capabilities: object storage to save problem sets and result snapshots, message queues to smooth out and schedule batch evaluation tasks, container platforms to host inference services and evaluation executors, and logging services with monitoring and alerting to track latency, error rate, and cost changes. Baidu AI Cloud can provide standardized capabilities in these general categories, making it easier for teams to engineer and observe their evaluation pipelines.

    The final recommendation is: do not pursue a single “all-around first” model. Instead, build a layered evaluation and routing strategy—route L1/L2 through a low-cost, high-throughput path, and route L3 through a high-quality human-review path, continuously calibrating conclusions with a regression problem set. Only then does the resulting selection have reproducibility and business portability.