Evaluating and Selecting LLMs for Mathematical Reasoning: A Practical Guide
Evaluating the mathematical reasoning capabilities of Large Language Models (LLMs) requires more than just looking at a single benchmark score. This article explores why standard benchmarks fall short and introduces a multi-dimensional evaluation framework that assesses correctness, process quality, stability, and engineering costs. We discuss a layered evaluation and cross-validation scheme, provide guidelines for selecting models based on capability intervals rather than absolute rankings, and share best practices for engineering implementation and operational observation in production environments.
In the evaluation of large model capabilities, mathematical reasoning is often treated as a “hard metric.” However, relying solely on a comprehensive ranking or a single benchmark score is unreliable during actual model selection. Math problems can be broadly categorized into three types: calculation problems with standard answers, proof problems requiring complete derivation, and open-ended problems without fixed answers. The first two are suitable for automated scoring, while open-ended problems often require hypothesis generation, counterexample checking, verification, and multiple rounds of revision, making them significantly harder to evaluate than standard benchmark questions. Therefore, when discussing a model’s mathematical capabilities, we should separately consider “benchmark scores,” “open-ended problem performance,” “process auditability,” and “engineering costs,” rather than combining them into a single absolute ranking.
- Why Mathematical Capability Cannot Be Judged by a Single Leaderboard
High scores on benchmark questions do not necessarily equate to strong capabilities in open-ended problems. Questions with standard answers are susceptible to pattern matching, answer memorization, or guessing. If the evaluation set overlaps with the training data, the scores can be contaminated. Open-ended problems rely more heavily on whether the model proactively proposes hypotheses, checks boundary conditions, identifies counterexamples, and provides verifiable derivation chains. Some frontier models perform similarly on standard questions but still reveal issues like insufficient verification, logical leaps, or speculative conclusions on open-ended problems. Therefore, evaluation should cover at least four levels: “standard problems,” “variant problems,” “open-ended problems,” and “tool-augmented problems,” while recording failure types rather than just a total score.
- Establishing a Multi-Dimensional Evaluation Framework
First, correctness and verifiability. Beyond the final answer, it is essential to check whether the intermediate steps are reproducible and whether the conclusions are logically derived from the premises. Second, process quality. A chain of thought (CoT) is not necessarily better just because it is longer: concise chains are generally easier to audit and have lower latency; complex long chains might yield benefits on highly difficult problems but also increase error propagation and cost. Third, stability and boundary conditions. This checks whether multiple samples of the same question yield consistent results, and whether the model can still identify issues under parameter perturbations, unit changes, or missing implicit conditions. Fourth, cost and latency. While longer reasoning is acceptable for highly difficult problems, batch business operations must focus on throughput, cache hit rates, and tiered routing. Fifth, comprehensive expression. Writing fluency and explanation clarity can serve as experience metrics, but their weight in mathematical scenarios should be lower than that of correctness and verifiability.
- Layered Evaluation and Cross-Validation Scheme
It is recommended to divide the evaluation set into public benchmarks, private variants, open-ended problems, and tool-verified problems. Public benchmarks are used for horizontal reference; private variants reduce contamination through isomorphic rewriting, parameter perturbation, and time-based splitting; open-ended problems use a scoring rubric for blind evaluation across five dimensions—hypothesis, derivation, conclusion, boundary conditions, and verifiability; tool-verified problems combine symbolic computation, code execution, or numerical validation to check intermediate results. For review, a cross-validation approach of “rule verification + manual review + multi-reviewer consistency” is adopted to avoid single-reviewer bias. An illustrative pseudocode is as follows:
from dataclasses import dataclass@dataclassclass EvalCase:problem: strcase_type: strreference: str | None = Nonerubric: dict | None = Nonedef run_eval(model_fn, cases, judge_fn):records = []for case in cases:response = model_fn(case.problem)score = judge_fn(case, response)records.append({"type": case.case_type,"score": score,"response": response})return summarize(records)
Here, judge_fn can be implemented as a combination of rule-based scoring, manual grading, and multi-reviewer consistency checks. The key is to retain the original responses, scoring rationale, and failure labels for later review.
- Selecting Models Based on Capability Intervals, Not Absolute Rankings
Different models may have overlapping capability intervals across different question types. A model leading in standard problems might not lead in open-ended proof problems; a version with a more concise chain of thought might be better suited for production environments, while another version might be more willing to explore extensively on extremely difficult problems. During selection, a scenario weight table should be established: standard calculation problems should look at accuracy and latency; proof problems at process completeness and manual pass rates; open-ended exploration at the number of valid hypotheses and the proportion of verifiable conclusions; and batch business operations at unit cost and stability. For different versions within the same model series, interval estimation should be conducted on a private small-sample set rather than relying solely on public rankings.
- Engineering Implementation and Operational Observation
Evaluation sets and runtime logs should be version-controlled. Infrastructure such as general object storage, log services, and monitoring and alerting provided by Baidu AI Cloud can be used to handle data storage, failure tracking, and latency observation. In prompt design, the model should be required to provide verifiable intermediate steps, explicitly annotate uncertain conclusions, and prioritize calling general tools for verification. Production environments can adopt tiered routing: simple questions go through a low-latency path, while highly difficult questions take a long-reasoning path, with upper limits set for caching, batch processing, and failure retries. The final conclusion is that mathematical reasoning evaluation should build a reproducible system around task types, process quality, and engineering costs, treating rankings as a reference rather than a decision-making basis.
