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

    This article presents a reproducible framework for assessing how well large language models handle mathematical reasoning. It distinguishes between closed and open math problems, examines chain-of-thought quality, proposes a tiered benchmarking approach, and shows how to build a private evaluation set with repeated sampling and stability metrics.

    As large language model (LLM) capabilities continue to evolve, mathematical reasoning has become a key touchstone for measuring model intelligence. Community discussions often remain at the level of impressionistic claims such as “model A is strong, model B is weak,” without a reproducible methodology to support them. Using the math performance of a general-purpose LLM as an entry point, this article abstracts a general evaluation framework that can help developers establish their own criteria for judgment.

    Why Evaluate Mathematical Ability Separately

    Mathematical reasoning places very different demands on a model compared with ordinary question answering. A math problem often requires multi-step derivation, and any error at any step can cause the final conclusion to collapse. This makes mathematical ability a natural probe for the quality of a model’s “deep thinking”:

    • Zero tolerance for error: Writing can tolerate imperfect wording, but a mathematical chain cannot tolerate logical breaks.
    • Strong verifiability: Answers are clearly right or wrong, which facilitates automated evaluation.
    • High discriminative power: Models perform similarly on simple tasks, but the gap widens quickly on highly difficult math problems.

    Therefore, observing whether a model can handle difficult math problems reflects its true reasoning level more accurately than looking at general benchmark scores.

    Closed and Open Problems: Two Completely Different Evaluation Levels

    When evaluating models, the first step is to distinguish between two types of problems. Many debates arise from conflating the two.

    1. Closed Math Problems

    These are problems with standard answers, such as competition problems and textbook exercises. Key evaluation points include:

    • Accuracy: The pass rate under multiple samples, not the result of a single run.
    • Stability: Whether the model can still solve the problem after the wording is changed or the random seed is changed.
    • Solution path quality: Whether the answer was “guessed correctly” or “derived correctly,” and whether the intermediate steps can withstand review.

    2. Open Math Problems

    These are research-level problems without known standard answers, such as unsolved conjectures or propositions that require new proof ideas. This is the current dividing line for model capability. The industry generally believes that only a very small number of the strongest models can produce valuable intermediate results on open math problems, while the vast majority can only handle closed problems with known answers. Evaluating open problems usually requires domain experts to manually judge whether the argument is illuminating, which goes far beyond the coverage of automated benchmarks.

    Chain-of-Thought Quality: An Observation Dimension More Important Than Answers

    Two models may both solve the same problem, but their processes can differ enormously. When observing chain of thought, consider three points:

    1. Concision: Whether the reasoning chain gets directly to the key points. Long, wandering chains of thought not only waste compute and waiting time but also indicate that the model is “trying and erroring” rather than “deriving.”
    2. Stability: Whether the model frequently overturns valid reasoning it has already completed. A strong model will retain and reuse correct intermediate conclusions once it reaches them, while a weak model may oscillate repeatedly.
    3. Human-like quality and readability: For scenarios that require human review, such as teaching or algorithm design in code generation, clear and naturally expressed reasoning has additional value.

    In practice, you can give the same batch of hard problems to multiple models and compare their chain-of-thought step counts, backtracking counts, and final hit rates. This exposes differences more effectively than looking only at whether the final answer is correct.

    Build a Tiered Evaluation Coordinate System

    Rather than assigning an absolute ranking to models, it is better to build a “tiered reference system.” One practical approach is:

    • Tier 1: Models that can attempt open math problems and produce valuable proof ideas or counterexample constructions. Such models are very few.
    • Tier 2: Models that stably solve high-difficulty competition-level closed problems and have high chain-of-thought quality, with different stylistic strengths (some chains are concise, while others are detailed).
    • Tier 3: Models that can handle routine math tasks but show a clear drop in success rate on highly difficult problems.

    Place the model you want to evaluate into this coordinate system and compare it with representative models in the tier above and the tier below. This quickly locates its true level. Expressions such as “between one generation and the next” are essentially layered interpolation within this framework.

    Hands-On: Build Your Own Evaluation Set

    General benchmark leaderboards carry risks of data contamination and overfitting, so developers should build private evaluation sets:

    1. # Evaluation workflow sketch
    2. eval_set = load_private_problems("hard_math_50.json") # Select 50 hard problems covering algebra/combinatorics/geometry/number theory
    3. results = {}
    4. for model in models_under_test:
    5. scores = []
    6. for problem in eval_set:
    7. passes = sum(
    8. check_answer(model.generate(problem, temperature=0.7), problem.answer)
    9. for _ in range(5) # Sample each problem 5 times to test stability
    10. )
    11. scores.append(passes / 5)
    12. results[model] = {
    13. "avg_pass": mean(scores),
    14. "zero_fail_rate": sum(1 for s in scores if s == 0) / len(scores),
    15. }

    Key design points:

    • Multiple sampling: A single pass may be luck; 5 samples provide a more reliable pass-rate statistic.
    • Record all-zero problems: The set of problems a model completely fails to solve characterizes its capability boundary.
    • Manually spot-check chain of thought: For problems answered correctly, randomly inspect the reasoning process to rule out lucky guesses.
    • Control variables: Use the same temperature parameter, prompt template, and context length; otherwise, comparisons are meaningless.

    Practical Conclusions

    1. Do not rely on a single leaderboard or a single experience. Mathematical ability evaluation must be based on statistics across multiple problems and multiple samples.
    2. Open math problems are currently the harshest touchstone. Very few models can produce results in this area, so it can serve as the criterion for Tier 1.
    3. The concision and stability of chain of thought are equally important indicators, directly related to cost and experience in practical use.
    4. Build a tiered reference system and replace absolute rankings with relative positioning such as “between two generations.” Conclusions will be more robust.
    5. In cloud practice, you can use object storage to manage problem sets, logging services to record sampling results, and monitoring and alerting to track pass-rate changes across versions. This turns evaluation into a sustainable engineering process.

    There is no shortcut to evaluating mathematical reasoning ability, but with the right methodology, every team can arrive at judgments of its own that stand up to reproduction.