LLM Mathematical Reasoning: How to Build a Scientific Evaluation Framework

    This article explains how to evaluate the mathematical reasoning of large language models beyond final-answer accuracy. It distinguishes closed-ended and open-ended problems, examines Chain-of-Thought quality, outlines a layered reproducible evaluation framework with practical metrics, and summarizes common pitfalls so technical teams can compare models with controlled, multidimensional evidence.

    1. Why Mathematical Ability Has Become a Key Benchmark for LLMs

    In current discussions of large language model (LLM) capabilities, mathematical reasoning is increasingly treated by technical teams as a core evaluation dimension. The reason is straightforward: mathematical problems have clear criteria for correctness, while also requiring multi-step logical deduction, symbolic manipulation, and abstract modeling. Compared with tasks such as text generation or summary rewriting, which are difficult to score objectively, mathematical reasoning provides a relatively “hard” benchmark for model evaluation.

    It is important to note, however, that “mathematical ability” is not a single metric. It can be divided into at least several layers:

    1. Computational correctness: whether basic arithmetic operations and algebraic transformations are accurate;
    2. Reasoning completeness: whether multi-step derivations contain logical breaks, undeclared implicit assumptions, or similar issues;
    3. Problem modeling ability: whether a real-world problem described in natural language can be translated into a mathematical formulation;
    4. Exploration of open-ended problems: whether the model can propose valuable conjectures, construct counterexamples, or advance proof ideas when facing mathematical problems with no standard answer or an unknown answer.

    These four layers increase in difficulty. Existing models generally perform well on the first two, while the real dividing line often appears in the latter two.

    2. Closed-Ended Problems vs. Open-Ended Problems: A Critical Distinction in Evaluation

    2.1 Limitations of Closed-Ended Problems

    Most public evaluation sets currently consist mainly of competition problems and exam problems. These problems have explicit answers and scoring rules, which makes automated evaluation convenient. However, closed-ended problems have two systemic issues:

    • Data contamination risk: training corpora may already contain the problems and their solutions, causing models to “memorize the problem” rather than “solve it,” which inflates evaluation scores;
    • Ceiling effect: when leading models’ scores on a benchmark approach saturation, small score differences no longer reflect real capability gaps.

    2.2 The Value of Open-Ended Mathematical Problems

    Open-ended mathematical problems refer to tasks with a clear research direction but an unknown conclusion—for example, proposing and verifying a number-theoretic conjecture, or finding a better construction for a combinatorial problem. The significance of such tasks is that:

    • They cannot be completed by memorizing training data, because the answers do not exist in the corpus;
    • They test deeper reasoning mechanisms such as hypothesis generation, divide-and-conquer exploration, and self-verification;
    • Domain experts can qualitatively assess the “mathematical value” of the results. Although this is costly, it provides high information value.

    From industry observations, models that can produce expert-recognized results on open-ended mathematical problems are still very rare. If a model performs notably well on such tasks, it usually suggests a distinctive reasoning architecture or training strategy—a signal more worth attention than score differences on closed benchmarks.

    3. Chain-of-Thought Quality: An Overlooked Evaluation Dimension

    Many evaluators look only at whether the final answer is correct, while ignoring the quality of the reasoning process itself. In fact, differences in Chain-of-Thought (CoT) quality can reflect multiple underlying characteristics of a model:

    3.1 CoT Length and Complexity

    • Concise CoT: refined steps that get to the point, suitable for integration into latency-sensitive products;
    • Long, complex CoT: many exploration paths and frequent backtracking, potentially achieving higher success rates on difficult problems, but with significantly higher inference cost (token consumption and latency).

    During evaluation, efficiency metrics such as “reasoning tokens consumed per correct answer” should be recorded, rather than comparing accuracy alone. A model with higher accuracy but several times the reasoning cost may not be the better choice for production deployment.

    3.2 Verifiability of the Reasoning Process

    High-quality CoT should be verifiable: every step has a basis, and intermediate conclusions can be independently checked. Some models exhibit “flawed process but lucky correct answer” behavior, which is a major risk in scenarios that require trustworthy reasoning, such as research assistance and financial modeling. It is advisable to introduce process-based evaluation into the evaluation workflow and score reasoning steps individually.

    4. Building a Reproducible Evaluation Framework

    For technical teams that want to systematically evaluate model mathematical ability, the following framework is recommended:

    4.1 Test Set Layering

    1. Level 1: Basic computation and algebra (accuracy baseline)
    2. Level 2: Competition-level multi-step reasoning (ability discrimination)
    3. Level 3: Cross-domain mathematical modeling (generalization)
    4. Level 4: Open-ended research problems (capability ceiling)

    Each level should use an independent problem pool, and problems should be updated regularly to mitigate data contamination. For Level 4, team members with a mathematical background can design original problems, and an expert review step should be reserved.

    4.2 Evaluation Metric Design

    • Accuracy: report statistics by difficulty layer to avoid an overall average hiding differences;
    • Reasoning efficiency: average reasoning tokens and average latency;
    • Process quality score: sampled human review to assess logical rigor and verifiability;
    • Stability: sample the same question multiple times and calculate the answer consistency rate to identify “lucky” correct answers.

    4.3 A Simple Automated Evaluation Example

    1. def evaluate(model, test_set, n_samples=3):
    2. results = {}
    3. for item in test_set:
    4. answers = [model.solve(item["question"]) for _ in range(n_samples)]
    5. correct = sum(1 for a in answers if check_answer(a, item["answer"]))
    6. results[item["level"]] = {
    7. "accuracy": correct / n_samples,
    8. "consistency": max(set(answers), key=answers.count) == item["answer"],
    9. "avg_tokens": sum(a.tokens for a in answers) / n_samples,
    10. }
    11. return results

    The core idea of this framework is that no single metric is sufficient to support a conclusion; conclusions must be cross-validated using multiple dimensions of data.

    5. Common Evaluation Pitfalls

    1. Overgeneralization: drawing conclusions from a small set of personally experienced problems. A model’s performance may vary widely across domains, and conclusions based on insufficient samples are unreliable.
    2. Ignoring version and configuration differences: different inference configurations of the same model (such as thinking depth and sampling parameters) can produce very different results. Configurations must be fixed and clearly recorded during evaluation.
    3. Confusing “model capability” with “product experience”: response speed, interface interaction, and writing style belong to the product experience layer and should be evaluated separately from underlying reasoning capability. Otherwise, it is easy to reach vague conclusions such as “A is better than B” that mix different dimensions.
    4. Blind faith in leaderboards: public leaderboards are references, not conclusions. There is no necessary linear relationship between leaderboard gaps and actual capability gaps.

    6. Conclusion

    Evaluating the mathematical reasoning ability of LLMs is essentially designing a rigorous scientific experiment: control variables, test by layer, score across multiple dimensions, and verify reproducibility. Open-ended mathematical problems are the best window for observing the upper limit of model capability, while CoT quality reveals the reasoning mechanisms behind that capability. For technical teams, rather than chasing the conclusion of “which model is the strongest,” it is better to build their own evaluation system so that every new generation of models can be measured accurately with the same ruler. This is the most robust way to respond to rapidly iterating LLM technology.