How to Scientifically Evaluate the Mathematical Reasoning Ability of Large Language Models

    This article explains why claims that one large language model is "better" at math are often unreliable, and proposes a reproducible engineering framework for evaluation. It covers defining mathematical ability across four dimensions, building a four-level difficulty taxonomy (L1 to L4), turning chain-of-thought behavior into measurable metrics such as step-deletion sensitivity, scoring open-ended problems through formal verification, numerical sampling, and blind review, and assembling a reproducible evaluation pipeline. It also lists common pitfalls and explains how this framework can serve as a long-term capability baseline.

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

    Discussions about the mathematical ability of large language models appear in technical communities almost every week, and they usually take the form of “model A is stronger than model B.” Such conclusions typically come from hands-on experience with a handful of problems: the sample size is tiny, problem difficulty is uncontrolled, and scoring criteria are inconsistent, so reproducibility is poor. The first step toward clarity is not to compare models, but to define what “mathematical ability” actually means.

    From an engineering perspective, high-level mathematical tasks involve at least four distinct capabilities:

    • Symbolic derivation: performing formal transformations in algebra and calculus.
    • Construction: building auxiliary objects, lemmas, or counterexamples on your own when facing open-ended problems.
    • Long-chain consistency: keeping notation, assumptions, and goals from drifting across dozens of reasoning steps.
    • Self-verification: detecting gaps in your own derivation and backing up to correct them.

    These four capabilities do not grow in lockstep. A model may be stable on standard problems yet degrade quickly on open-ended ones.

    Therefore, any “leaderboard” that does not state its problem distribution and scoring method carries almost no information. A more reasonable approach is to treat evaluation as a reproducible engineering activity.

    2. Build a Difficulty Taxonomy: Make the Problem Distribution Explainable

    The first requirement of an evaluation set is layering. At least four levels are recommended:

    • L1 standard computation and textbook-style problems: measures accuracy and format stability.
    • L2 multi-step derivation problems: measures chain length and correctness of intermediate steps.
    • L3 competition-level hard problems: measures technique selection and non-standard approaches.
    • L4 open-ended research problems: no single correct answer; measures completeness of construction and argument.

    The value of layering is that it turns vague statements like “somewhere between two tiers” into quantifiable conclusions. For example, if a model is near saturation on L1 and L2, slightly below the top tier on L3, and clearly behind on L4, its positioning becomes clear: suitable for engineering and teaching scenarios, not suitable as a primary research assistant.

    3. Turn Chain-of-Thought into Observable Metrics

    The most valuable observation in the original discussion is that models differ significantly in the length and complexity of their chains of thought, and a longer chain does not mean stronger ability. This can be quantified in engineering practice. The following metrics are recommended:

    1. Average number of reasoning steps: reflects redundancy.
    2. Step-deletion sensitivity: the drop in answer accuracy after randomly removing intermediate steps, measuring whether each step actually bears weight.
    3. Number of backtracks: how often the model rejects its own reasoning and restarts the derivation.
    4. Notation consistency error rate: the proportion of steps in which the same variable shifts in meaning.
    5. Human-readability score: rated by reviewers for readability, used when selecting models for writing and teaching scenarios.

    Step-deletion sensitivity is especially worth recommending, because it effectively separates “real reasoning” from “verbose narration.” Sample code:

    1. def step_sensitivity(model, problem, steps, drop_ratio=0.2):
    2. base = run_and_grade(model, problem, steps)
    3. drops = []
    4. for subset in random_drop(steps, drop_ratio, trials=5):
    5. drops.append(run_and_grade(model, problem, subset))
    6. return base - mean(drops) # larger value means the steps bear more weight

    4. Answer Verifiability: Scoring Strategies for Open-Ended Problems

    L4 problems have no standard answer, so scoring must rely on verifiable structures. In practice, three paths can run in parallel:

    • Formal verification: transcribe the conclusion into a machine-checkable formal proposition and let a proof checker decide.
    • Numerical sampling checks: randomly instantiate parameterized conclusions to quickly filter out incorrect constructions.
    • Double-blind review: two reviewers score on correctness, completeness, and conciseness without knowing the model’s identity; samples with disagreement go to a third-party arbitrator.

    It is important to stress that numerical sampling can only falsify, not verify. It works as a pre-filter, not as the final scoring basis. This point is often overlooked in automated pipelines, allowing wrong conclusions to pass sampling.

    5. Evaluation Pipeline: A Reproducible Engineering Implementation

    Chaining the above together yields a pipeline: problem ingestion → difficulty labeling → multiple sampling → step segmentation → metric computation → blind review aggregation → report generation. Three engineering practices are recommended:

    • Fix the sampling temperature and record random seeds to guarantee reproducibility.
    • Persist intermediate artifacts (chains of thought, step segmentation results) to object storage for traceability.
    • Connect metric computation and alerting to logging services and monitoring/alerting systems so distribution drift is flagged promptly.

    When you need elastic concurrency to run large batches of problems, a container platform can scale up and down on demand; decoupling between tasks can be handled by a message queue to avoid long-tail problems blocking overall progress. These are general-purpose capabilities, independent of any specific vendor.

    6. Common Pitfalls

    1. Using a single public leaderboard instead of your own evaluation: the problem distribution often does not match your business scenario.
    2. Treating length as depth: a long chain may just be repeated narration.
    3. Ignoring format stability: drifting output structure significantly raises post-processing costs.
    4. Sampling only once: mathematical tasks have high variance, and a single run is not enough to draw conclusions.
    5. Confusing “can compute” with “can prove”: a correct calculation does not mean a complete argument.

    7. Conclusion

    Evaluating a model’s mathematical ability correctly means first turning the question into a measurable engineering problem: layered problem selection, quantified chains of thought, verifiable scoring, and a fixed pipeline. Conclusions drawn this way explain not only “why it is strong” but also “where it does not apply.” For teams, the reuse value of this framework far exceeds any one-off ranking: it can run continuously as models iterate and form a long-term capability baseline.