How to Scientifically Evaluate LLM Math Reasoning Capabilities

    Choosing models for math-reasoning tasks often relies on scattered personal impressions and online leaderboard discussions, which leads to contradictory and hard-to-reproduce conclusions. This article proposes a scientific, reproducible evaluation framework: define what to measure, break reasoning into six observable dimensions (answer correctness via pass@1/pass@k/self-consistency, process quality, stability, robustness, cost efficiency, and task adaptability), design a four-tier evaluation set from arithmetic to open-ended problems, apply an executable scoring rubric, and build a repeatable pipeline. It also covers common pitfalls and a practical five-step path from evaluation to model selection.

    Choosing models for math-reasoning tasks often relies on scattered personal impressions and online leaderboard discussions. Change the comparison set, the sample size, or the way questions are asked, and the conclusion flips; the same class of models frequently earns contradictory verdicts from different evaluators. This kind of subjective comparison has at least three problems: small samples, uncontrolled difficulty, and prompting that depends heavily on each evaluator’s own experience. More fundamentally, evaluators care about different things—some look at solving speed, some at the final number, some at whether the derivation is rigorous, and others at whether the model can handle questions with no standard answer. Without a shared standard, the debate over “who is stronger” rarely reaches consensus.

    This article does not rate any specific model. Instead, it addresses a more general question: facing a large number of LLMs, how should developers and enterprises build a scientific, reproducible evaluation system that judges a model’s real mathematical reasoning ability with data rather than impressions, and use that to make sound selection and combination decisions.

    1. Define What You Are Evaluating

    The first step is not to find models but to define requirements. The same set of problems can yield entirely different rankings in different scenarios.

    • Word-problem solving (e.g., tutoring, multi-step calculations in data analysis): cares about whether the final answer is correct and whether the steps are clear and easy to follow.
    • Scientific and engineering computation: cares more about whether the reasoning is rigorous, whether it can handle open-ended problems with no ready-made answer, and whether it can identify flawed premises in a problem.
    • Batch data processing: extremely sensitive to per-call cost and latency; even one occasionally lengthy “thinking” run may be an unacceptable cost.
    • Decision-support for critical cases (e.g., risk control, audit): requires output that is verifiable and traceable, where problems in the process can be located and explained.

    Different scenarios place different demands on correctness, explainability, and cost. So instead of asking “which model is strongest at math,” it is better to first answer “on my task distribution, which model reaches sufficient accuracy and process quality at an acceptable cost.” It is worth assembling a “representative problem set” that covers real business needs, then designing the evaluation around it. Conclusions drawn this way are far more valuable than any generic leaderboard.

    2. Break “Reasoning Ability” into Six Observable Dimensions

    You cannot judge a model’s math reasoning by “is the answer right or wrong” alone. A more complete view covers six dimensions.

    1. Answer Correctness: Three Measures to Keep Separate

    Whether a single sample solves the problem is recorded as pass@1; allowing multiple attempts and counting a pass if any attempt succeeds is recorded as pass@k; and sampling multiple times, deriving a final answer through majority vote, then comparing it to the reference answer is commonly called self-consistency. These measures capture different abilities:

    • pass@1 reflects the model’s stable level of “getting it right in one shot,” suitable for scenarios where a single call must suffice;
    • pass@k reflects the model’s “potential ceiling”—whether more attempts can get it right—suitable for scenarios where you can run parallel attempts and then filter results with code or voting;
    • self-consistency measures “whether most paths lead to the same answer,” close to the engineering practice common in batch scenarios.

    Reporting a single number is misleading. For example, a model with high pass@k but mediocre pass@1 indicates that its solutions are not stable enough, not that its ability is lacking; more attempts can raise accuracy, but cost multiplies. This kind of information is very important for selection decisions.

    2. Reasoning Process Quality: A Correct Conclusion Does Not Mean a Correct Process

    Math tasks have the advantage of clear right and wrong: the final answer can usually be judged directly. But they also have a trap: a model can get the correct result through answer-fitting, guessing, or logical leaps. Such “lucky” correct answers are not obvious on easy problems and become exposed as problems get harder.

    Process evaluation usually revolves around these points:

    1. Logical rigor: whether there is sufficient justification between key steps, and whether there are circular arguments or “obviously follows” leaps.
    2. Step completeness: whether case analysis, boundary conditions, and special cases are omitted.
    3. Verifiability: whether intermediate results can be verified step by step, and whether key calculations can be rechecked.
    4. Conciseness: whether there is a lot of repetition, detours, or self-contradictory derivation.

    One often-overlooked detail: the length of a chain of thought is not the same as quality. A model with shorter derivations may hit the key step in one move and be easier to read; a model with longer derivations may reduce omissions through finer branch coverage, but may also introduce noise through repeated probing. The sensible approach is to record “process quality” and “derivation length” separately and observe their relationship, rather than equating “thinking longer” with “thinking correctly.”

    3. Stability and Reproducibility

    Ask the same question multiple times—are the results consistent? This directly affects production behavior. During evaluation, it is recommended to:

    • Fix sampling parameters such as temperature, and sample the same question repeatedly to measure the variance in accuracy;
    • Run perturbation tests on equivalent phrasings of the same question (changing numbers, order, phrasing) and observe whether the conclusion flips;
    • Record the model version. Model services are usually updated continuously, and today’s conclusion may no longer hold tomorrow.

    4. Robustness: Does a Slight Change in the Problem Cause It to Fail?

    Real-world problems often carry noise: redundant information, vague phrasing, mixed units, and inconsistent data. A mature model should recognize anomalies rather than force a plausible-looking answer. When evaluating, construct three types of perturbation samples:

    • Irrelevant information: add background descriptions unrelated to solving the problem;
    • Numeric substitution: keep the problem structure unchanged and replace the numbers, to test whether the model is really “solving” rather than “reciting”;
    • False premises: deliberately provide contradictory conditions to see whether the model points out the contradiction or rationalizes it.

    5. Cost Efficiency: Measure Accuracy per Unit Cost

    Math-reasoning tasks often produce large amounts of intermediate derivation, with output lengths significantly higher than ordinary Q&A. Comparing only accuracy while ignoring cost easily leads to choosing a model that “computes accurately but expensively.” It is recommended to also track:

    • Average input and output token counts and inference latency;
    • The amount of compute needed to reach a target accuracy—i.e., “how many tokens are needed to raise accuracy to a given level”;
    • Per-question cost and estimated total cost for batch tasks.

    A more practical metric is “accuracy per unit cost”: how many correct solutions each unit of cost buys while maintaining quality. For most businesses, cost-effectiveness is often more critical than absolute ability.

    6. Task Adaptability: Can the Output Be Used Directly Downstream?

    Math-reasoning results often feed into the next stage, such as automatically filling reports, generating code, or triggering business rules. Here you need to consider: whether the output format is stable, whether intermediate steps are easy for programs to parse, whether conclusions can be returned in a structured way, and whether it stays internally consistent through complex derivations. A model with poor adaptability may cost more to deploy even if its accuracy is slightly higher.

    3. Design a Layered Evaluation Set: From Arithmetic to Open-Ended Problems

    The quality of the evaluation set determines the credibility of the conclusions. A simple, practical tiered framework is as follows:

    Tier Problem characteristics Main focus Suggested weight
    Basic Multi-step arithmetic, simple word problems Baseline accuracy, output stability 20%
    Advanced Competition-style, multi-constraint problems Compositional reasoning, case analysis 30%
    Rigorous Proofs, problems requiring hypothesis testing Logical rigor, boundary handling 30%
    Open-ended Problems with no standard answer, requiring autonomous exploration Exploration, conclusion expression, self-verification 20%

    The layers serve different purposes. The basic layer helps quickly catch regressions, such as a model failing on simple problems after an update. The advanced layer distinguishes most general-purpose models. The rigorous layer best reveals differences in reasoning quality. The open-ended layer is the hardest but closest to real scientific and engineering scenarios, and best reflects a model’s “ceiling.”

    It is especially important to note that open-ended problems can barely be scored automatically. A workable approach is for domain experts to provide reference answers or scoring points, then have the model give conclusions within a time limit, reviewed by humans or jointly by multiple models, focusing on whether the approach is feasible, whether the argument is sound, and whether there are obvious flaws. The capability differences at this layer are often the threshold that decides whether a model can enter high-value scenarios such as scientific research and financial modeling.

    4. Scoring Standards: Making “Process Evaluation” Executable

    Process evaluation easily stays at the subjective level of “looks fine.” To make evaluation executable and reproducible, you need to write the standards into an explicit scoring rubric. A usable reference framework is:

    Dimension Weight Scoring points
    Answer correctness 60% Whether the final answer is correct or within an acceptable error margin
    Key steps 20% Whether the core derivation and key intermediate quantities are correct
    Logical rigor 10% Whether there are jumps, circular arguments, or missing case analysis
    Expression and formatting 10% Whether the structure is clear and conforms to output specifications

    Scoring can be done in three complementary layers:

    1. Automatic judging: suitable for problems with definite answers. It should use numeric equivalence—for example, treating fractions, decimals, and results at different precisions as consistent—rather than simple string comparison.
    2. Rule-based spot checks: apply rule filtering to samples automatically judged wrong, such as missing units or rounding differences.
    3. Human or model-assisted review: score with the rubric. Blind review is recommended, hiding the model source and shuffling presentation order to reduce preconceived bias.

    To ensure consistency, unify the annotation guidelines before review, and have multiple reviewers trial-score a small sample to align scales before formal scoring.

    5. Turn Evaluation into a Repeatable Pipeline

    Manual evaluation is time-consuming and hard to reproduce. The mature approach is to engineer the evaluation process: fix the problem set, fix the parameters, fix the scoring rules, and automatically rerun after every model update, comparing against historical results. The pseudocode below shows the basic skeleton of an evaluation pipeline:

    1. # Evaluation pipeline sketch (pseudocode, illustrates flow structure only)
    2. MODELS = ["Model A", "Model B", "Model C"] # use codenames instead of real model names
    3. DATASET = load_dataset("math_eval_set_v1") # fixed version to prevent contamination
    4. PROMPT_TEMPLATE = "Show your solution steps first, and start the final line with 'Answer:'."
    5. def run_eval(model, item):
    6. records = []
    7. for _ in range(SAMPLES): # sample multiple times to observe stability
    8. resp = call_model(model, build_prompt(item, PROMPT_TEMPLATE),
    9. temperature=TEMPERATURE)
    10. records.append({
    11. "model": model,
    12. "item_id": item.id,
    13. "answer": parse_answer(resp), # extract the final answer
    14. "reasoning": extract_reasoning(resp), # extract chain of thought for process review
    15. "tokens": count_tokens(resp),
    16. })
    17. return records
    18. def grade(model, item, records):
    19. correct = sum(1 for r in records
    20. if is_equivalent(r["answer"], item.answer)) # equivalence check, not string comparison
    21. return {
    22. "model": model,
    23. "pass@1": correct / len(records),
    24. "pass@k": pass_at_k(records, item),
    25. "self_consistency": majority_vote(records) == item.answer,
    26. "process_score": review_process(records, rubric=RUBRIC), # score with the rubric
    27. "avg_tokens": mean(r["tokens"] for r in records),
    28. }
    29. def main():
    30. report = []
    31. for item in DATASET:
    32. for model in MODELS:
    33. report.append(grade(model, item, run_eval(model, item)))
    34. export(report) # output raw records + summary metrics for version comparison

    Once engineered, evaluation shifts from “going by feel” to “reading a report.” After every model upgrade, you can quickly answer three questions: Did overall accuracy improve? Did process quality degrade? Did cost rise? And if there is degradation, which problem types are responsible? These are the most powerful inputs for selection decisions.

    6. Common Pitfalls in Evaluation

    1. Data Contamination and “Reciting Problems”

    If evaluation problems overlap with the model’s training data, you are measuring memorization, not reasoning. Countermeasures include:

    • Build an internal, private problem set that is not made public;
    • Use numeric substitution, scenario rewriting, and other methods to generate variants;
    • Periodically introduce new problems to keep the set “fresh.”

    2. Prompt Leakage and Format Sensitivity

    Format hints in a problem (such as “give the answer directly”) significantly affect results. If different models use different prompt templates, the comparison is meaningless. Unify prompts, and test multiple templates on the same model to observe result variance. High variance indicates the model is highly sensitive to prompts, and engineering deployment will require extra effort in prompt optimization.

    3. Randomness from Temperature and Sample Count

    The temperature parameter directly determines output randomness. At higher temperatures, multiple runs on the same question may differ greatly; concluding from a single run easily mistakes random fluctuation for a capability difference. It is recommended to fix the temperature and statistically report the mean and variance across multiple runs.

    4. Equating “Thinking Longer” with “Being Smarter”

    Some models do lengthy internal reasoning before answering. Longer derivations may mean more thoroughness, or may mean more verbosity. The right approach is to track accuracy and average output length separately and observe their relationship: if length doubles while accuracy does not improve noticeably, the extra compute is not translating into capability.

    5. Right Answer with Wrong Process, and Wrong Answer with Right Process

    The former suggests the model may be “fitting answers,” which tends to fail on harder problems; the latter suggests the model’s approach is in the right direction, and only a calculation step went wrong, which might be rescued by adding verification steps. Distinguishing these two kinds of samples helps find truly effective optimization directions: the former needs stronger reasoning constraints, while the latter can be improved through self-checks, back-substitution verification, and similar methods.

    6. Differences in Product Form and Invocation

    The same model may behave differently when used through a conversational product versus through an API. The product side usually adds processing such as system prompts, context management, and tool calls, all of which affect math-task performance. Therefore, evaluation should specify which form you are using and test under that form, avoiding mistaking “product experience” for “model capability.”

    7. Over-Extrapolating Conclusions

    An advantage on one class of problems does not mean leading across all math tasks. For example, a model may excel at competition problems but be average on problems requiring rigorous proofs. Conclusions must be bounded to the task scope covered by the evaluation, with a note on the evaluation set size and scoring standard; otherwise it is easy to mislead decisions.

    7. From Evaluation to Selection: A Practical Path

    Synthesizing the above, the recommended evaluation process can be summarized in five steps:

    1. Define the task distribution: identify the problem types, difficulty, and output requirements in real business, forming a representative problem set.
    2. Build a layered evaluation set: allocate across the basic, advanced, rigorous, and open-ended tiers, retaining private problems and variants.
    3. Unify the evaluation protocol: fix the prompt template, temperature, sample count, and scoring standard to ensure horizontal comparability.
    4. Score across multiple dimensions: output pass@1, pass@k, self-consistency, process score, average length, and cost together.
    5. Continuous regression and version management: rerun evaluation on every model upgrade, record versions and parameters, and form a traceable evaluation report.

    If your organization has already built model-serving and data-processing pipelines on Baidu AI Cloud, you can combine evaluation tasks with general cloud capabilities such as logging services and monitoring/alerting, turning evaluation results into visual dashboards and alert rules, so that problems like “model upgrades causing performance fluctuations” can be caught before launch. It is worth emphasizing that the evaluation system itself is an asset. The more complete the problem set, scoring standards, and historical reports, the more grounded future selection and iteration become.

    Conclusion

    The question “which model is stronger at math” has no scenario-independent, universal answer. What is truly valuable is not a ranking but a method that can continuously answer this question: break a vague notion of ability into observable dimensions, cover different difficulty levels with a layered problem set, ensure fairness with a unified protocol, guarantee reproducibility with an automated pipeline, and stay alert to common pitfalls.

    For developers, this method helps you find the model best suited to your business among many; for enterprises, it lowers the trial-and-error cost of technical selection and makes investment land on measurable results. Evaluating mathematical reasoning is, in the end, an engineering problem. Treat it as engineering, and conclusions become reliable and decisions become sound.