How to Evaluate the Math Reasoning Ability of Large Language Models: A Practical Guide

    This article presents a reusable methodology for evaluating the math reasoning ability of large language models instead of relying on a single leaderboard ranking. It explains why math ability is not a scalar, how to split evaluation items into four capability layers, and which dimensions matter beyond accuracy, including answer verifiability, chain-of-thought complexity, and readability. It also covers engineering practices for building contamination-resistant evaluation sets, recommended evaluation workflows and statistical conventions, common pitfalls, and how to turn evaluation into continuous monitoring.

    1. Why “Which Model Is Better” Is a Hard Question

    In real selection and engineering work, teams often need to answer a question that looks simple: how strong is a given large language model at math? A common pattern in the original discussion is that evaluators directly compare different models and produce a linear ranking. This is not reliable in engineering practice, for three reasons.

    First, math ability is not a scalar. It can be broken down into at least several sub-abilities: arithmetic and symbolic manipulation, word-problem modeling, competition-level hard problems, and open-ended math problems that require constructing a proof idea with no standard answer. The relative positions of different models across these sub-abilities can be completely reversed.

    Second, evaluation results are extremely sensitive to prompting. For the same model, the accuracy gap between a “answer directly” setting and a “show the full reasoning process” setting is often larger than the gap between models.

    Third, public leaderboards carry risks of data contamination and overfitting. Once a problem enters the training corpus, its score loses discriminative power.

    So this article does not rank any specific product. Instead, it abstracts the views in the original discussion into a reusable evaluation methodology: how to layer items, how to design metrics, how to organize human review, and how to keep running regression.

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

    It is recommended to divide evaluation items into four layers. The layers form a progression of capability rather than a linear stacking of difficulty.

    1. Basic computation and formalization: multi-digit arithmetic, unit conversion, equation solving, simple probability. This mainly tests stability and format compliance.
    2. Modeling and application: turning a real-world problem described in natural language into equations or constraints, testing information extraction and the reasonableness of assumptions.
    3. Competition reasoning: multi-step derivation, constructing auxiliary quantities, case analysis. This tests the ability to “not drop conditions and not skip steps” over long reasoning chains.
    4. Open-ended problems: no unique answer, requiring the model to propose a conjecture and give an argument or counterexample. This layer is the dividing line for most current models and, in the original discussion, is considered the most discriminative layer.

    After layering, any conclusion of the form “model A is stronger than model B” must carry a qualifier, for example “on layer 3 and layer 4 items, approach A has higher accuracy than approach B”, rather than a blanket ranking.

    3. Evaluation Dimensions: Three Things to Look at Beyond Accuracy

    3.1 Answer Verifiability

    Prefer items that can be judged automatically: numerical answers, closed-form expressions, enumerable sets. For proof problems, use structured scoring: decompose the proof into several necessary steps (lemmas, key inequalities, boundary discussion) and award points step by step, instead of looking only at the final conclusion.

    3.2 Chain-of-Thought Complexity

    The original discussion notes that reasoning chain length and complexity differ markedly across models. In engineering, this observation can be quantified with three metrics:

    1. chain length = total number of reasoning steps
    2. branching = number of times "case analysis / backtracking" occurs
    3. conciseness = average chain length on correct samples / average chain length on all samples

    The ideal model is not the one with the longest chain, but the one whose chain is significantly shorter on correct samples and automatically extends only on hard samples. A conciseness value close to 1 indicates the model lacks difficulty-adaptive behavior; a value clearly below 1 indicates a “think on demand” characteristic.

    3.3 Readability of the Output

    For scenarios where the reasoning process is delivered to business stakeholders, readability directly affects trust. A small-sample human rating (1–5) can be used, with dimensions including terminology consistency, connection between steps, and whether unfounded assertions appear.

    4. Building the Evaluation Set: Engineering Practices Against Contamination

    1. Layered sources: mix public items, self-made items, and variant items in a 2:5:3 ratio. Self-made items are generated by parameter randomization, for example randomly replacing the numbers and the direction of constraints in a word problem while keeping the structure unchanged.
    2. Time isolation: keep a portion of items permanently private, used only for regression.
    3. Difficulty calibration: run several models over the set once, keep the items in the “most discriminative” range, and drop items that everyone gets right or wrong.
    4. Deduplication and rewriting: apply synonym rewriting and numerical perturbation to public items to reduce inflated scores caused by memorization.

    A sample item structure can be unified into the following fields for automation:

    1. {
    2. "id": "math-0421",
    3. "layer": 3,
    4. "prompt": "...",
    5. "answer_type": "expression",
    6. "reference": "x = 3/2",
    7. "checkpoints": ["construct an auxiliary function", "discuss the endpoints", "state the conclusion"],
    8. "public": false
    9. }

    5. Evaluation Workflow and Statistical Conventions

    The recommended workflow is: batch inference → automatic judging → human review of low-confidence samples → aggregate layered metrics → regression comparison.

    Three points need attention in statistics. First, report confidence intervals rather than single-point numbers; with fewer than 200 samples the variance is large. Second, use paired comparison, running all candidate approaches on the same set of items to reduce variance caused by item difficulty. Third, fix decoding parameters and prompt templates and record their versions, otherwise data across rounds is not comparable.

    A minimal usable evaluation loop can be written as:

    1. def evaluate(model, dataset, prompt_template, judge):
    2. records = []
    3. for item in dataset:
    4. raw = model.generate(prompt_template.format(q=item["prompt"]))
    5. ok, confidence = judge(item, raw)
    6. records.append({"id": item["id"], "layer": item["layer"],
    7. "ok": ok, "confidence": confidence,
    8. "steps": count_steps(raw)})
    9. return summarize(records) # output accuracy, chain length, and confidence intervals by layer

    6. Common Pitfalls

    • Ranking by a single total score: this hides sub-ability differences and leads to wrong selection decisions.
    • Looking only at the final answer: this ignores the difference between “correct process but a clerical error in the conclusion” and “correct conclusion but skipped steps”, where the latter carries higher risk in production.
    • Ignoring prompt sensitivity: comparing horizontally without fixing the template makes conclusions non-reproducible.
    • Over-relying on public items: scores are inflated and the experience gap after launch is obvious.
    • Ignoring cost constraints: chain length and accuracy are often positively correlated, so trade-offs must be made within budget, and average chain length can be put on a dashboard together with cost per item.

    7. From Evaluation to Continuous Monitoring

    Evaluation is not a one-off action. It is recommended to plug the evaluation set into a continuous integration pipeline, automatically run layered regression when the model or prompt version changes, and set threshold alerts on key metrics. On the production side, collect real requests through a logging service, sample them back into new evaluation items, and close the loop. If multiple models work together, inference services can be packaged uniformly with a container platform, a message queue can smooth out traffic peaks, and monitoring and alerting can track latency and failure rate.

    In related practice at Baidu AI Cloud, this kind of system is usually built as “general capability categories + a self-owned evaluation set”: object storage holds the items and results, a container platform runs inference and evaluation tasks, and logging and monitoring services track quality, so that evaluation conclusions are reproducible, traceable, and continuously iterable.

    8. Summary

    To evaluate a large language model’s math ability, the right approach is to abandon blanket rankings and move to an engineering solution of “layered items + multi-dimensional metrics + verifiable judging + continuous regression”. Among these, the open-ended problem layer and chain-of-thought conciseness are the most discriminative observation points, while statistical conventions and fixed prompts are the prerequisites for trustworthy conclusions. With this methodology, a team can use its own data to answer “which one fits my scenario better” instead of relying on someone else’s subjective impression.