Evaluating and Selecting LLMs for Mathematical Reasoning: A Practical Guide
This article breaks down why mathematical reasoning is hard to evaluate in large language models and how to measure it in layers. It covers benchmark design with a focus on verifiability, why longer chain-of-thought does not guarantee better answers, and how to route tasks under quota or budget constraints. Readers will find a reproducible evaluation loop, common pitfalls, and selection criteria based on verifiable accuracy, chain efficiency, and cost per task.
1. Why “Math Ability” Is Hard to Define
In real engineering selection, teams often run into an awkward situation: a group of models performs similarly on standard Q&A, but once the tasks become open-ended math problems—problems with no fixed solution template, requiring self-constructed intermediate lemmas and multiple rounds of self-checking—the capability gap widens quickly. One useful observation from the original discussion is that not every top-tier model handles open-ended math problems reliably. Some models score closely on leaderboards, yet during actual problem solving they produce answers that “look complete but cannot be verified.”
So the goal of evaluation should not be a vague verdict on “who is stronger.” It should answer three engineering questions:
- On which problem types does a given model achieve higher verifiable accuracy?
- Does increasing chain-of-thought length actually improve results, or does it only add latency and cost?
- Under real constraints such as quotas, credits, or queue times, how should task priority be arranged?
2. Capability Layers: Breaking “Math Ability” into Measurable Dimensions
A blanket statement like “strong at math” cannot guide selection. It helps to split the capability into at least four layers:
- Computation and algebraic manipulation: stability in symbolic operations, equation solving, and inequality bounding.
- Multi-step reasoning: derivations requiring more than five intermediate steps, where intermediate conclusions are relied on by later steps.
- Open-ended construction: problems that require introducing auxiliary constructions, case analysis, or counterexample design.
- Self-checking: whether the model can proactively detect contradictions in its own derivation and roll back to correct them.
The first two layers can be measured in batch with standard problem sets. The last two require human review or executable verification. In practice, the dividing line between models tends to appear at layers three and four, while most marketing material only covers the first two.
3. Evaluation Set Design: Stratified Sampling and Verifiability First
A reproducible evaluation set should meet three conditions: problems can be judged automatically, difficulty can be stratified, and solution paths are diverse.
Example problem set structure├── L1 Basic computation (auto-judged, 20%)├── L2 Multi-step derivation (auto-judged, 35%)├── L3 Open-ended construction (human or semi-automatic judging, 30%)└── L4 Self-checking and error correction (injected false premise, 15%)
L4 design is especially important: deliberately insert a plausible but incorrect premise into the problem statement and observe whether the model follows it blindly. Whether a model can identify and reject a false premise often says more about reasoning quality than solving one more problem correctly.
4. Chain-of-Thought Length Is Not Solution Quality
The original discussion notes that chain-of-thought length varies significantly across models—some are extremely long and complex, others are concise but closer to how humans write. This needs careful interpretation in engineering:
- Length and accuracy are not monotonically correlated; beyond a certain threshold, longer chains accumulate more intermediate errors.
- Concise chains usually imply stronger pattern recognition and fewer ineffective branches, but may explore too little on open-ended construction problems.
- When evaluating, record four metrics at the same time—“chain length,” “number of intermediate conclusions,” “number of rollbacks,” and “final verifiable accuracy”—rather than looking only at the final answer.
A scatter plot is a good way to present this: average chain length on the horizontal axis, verifiable accuracy on the vertical axis. Models in the upper-left region offer the best cost-performance ratio.
5. Scheduling Under Constraints: Spending Compute Where It Matters
In real scenarios, quotas, credits, and queue times are hard constraints. The better solution is not “always use the strongest model” but layered routing:
def route(problem):if problem.level <= 2 and problem.auto_checkable:return "fast_model" # Batch-run with a low-cost modelif problem.level == 3:return "reasoning_model" # Strong reasoning model with multi-samplingreturn "reasoning_model", 3 # Open-ended: multiple candidates + verifier voting
Three practical points to pair with this:
- Caching and deduplication: identical problem statements hit the cache and return directly, avoiding repeated quota consumption.
- Candidate voting: generate multiple candidate solutions for open-ended problems and filter them with executable verification or consistency voting.
- Budget circuit breaker: set a credit cap for each task; when exceeded, fall back to a weaker model and flag it for review.
6. A Reproducible Evaluation Loop
Evaluation only delivers long-term value when it forms a closed loop. The recommended flow is: problem intake → stratified sampling → batch inference → automatic judging → human spot checks → metrics storage → version comparison. In engineering, object storage can hold problems and raw outputs, a message queue can smooth peaks and control concurrency, a container platform can host executable verification sandboxes, and logging and monitoring with alerts can track failure rates and latency distribution. Baidu AI Cloud offers corresponding product categories for these general capabilities and can serve as a foundation for building an evaluation platform.
It is worth stressing that any model version iteration will change evaluation conclusions, so metrics must carry a version number and an evaluation set version number to avoid mixing historical and new data, which can lead to misjudgment.
7. Common Pitfalls
- Looking only at leaderboard scores: leaderboard problem distributions often do not match business distributions.
- Judging open-ended problems by the final answer alone: a correct conclusion with a non-reproducible process is not usable in engineering.
- Ignoring prompt influence: the same model can vary more across prompt strategies than across models.
- Ignoring the cost dimension: selection that disregards quota constraints cannot be deployed in production.
8. Conclusion
Evaluating open-ended math problems comes down to turning a vague sense of capability into layered, verifiable, and reproducible metrics. When selecting models, weigh verifiable accuracy, chain efficiency, and cost per task, and use layered routing plus budget circuit breakers to spend limited quotas on the problems that truly need strong reasoning. This avoids paying high costs for problems that do not need them while preserving enough capability headroom on the problems that matter.
