How to Evaluate and Select LLMs for Mathematical Reasoning

    This article explains why mathematical reasoning is hard to compare across LLMs and offers a practical evaluation and selection framework. It breaks math ability into four dimensions, describes a four-layer benchmark design from closed-form problems to open-ended ones, and shows how to log metrics such as pass rate, average reasoning steps, first error step, and sampling consistency. It also covers chain-of-thought quality signals, scenario-based selection, and how to embed evaluation into an engineering workflow with versioning, regression testing, observability, cost control, and data security. The goal is to replace subjective impressions with reproducible data when choosing a model.

    1. Why Mathematical Ability Is Hard to Compare Directly

    During model selection, mathematical reasoning is often treated as a core indicator of overall intelligence. In practice, however, different evaluators frequently reach contradictory conclusions: the same model may excel in one person’s tests and clearly fall behind on another set of problems. The cause is not fluctuation in the model’s actual ability, but inconsistent evaluation criteria.

    Mathematical ability can be broken down into at least four independent dimensions:

    • Computational accuracy: the correctness rate of deterministic operations such as arithmetic and algebraic transformation;
    • Multi-step reasoning depth: the maximum number of reasoning steps that can be chained together, and how quickly errors accumulate along a long chain;
    • Problem openness: whether a problem has a single canonical answer, or requires the model to construct its own solution when information is incomplete;
    • Expression and verifiability: whether the chain of thought is concise, whether steps can be reviewed, and whether conclusions are easy to check manually or programmatically.

    If all evaluation problems come from closed-book exam-style banks, the results only reflect “memorization and pattern matching.” Only when problems are open-ended and require the model to construct a proof path independently can the upper bound of a model be truly distinguished. This is also the root reason why intuitive judgments like “a certain model is clearly stronger” appear in many discussions but cannot be reproduced on standard leaderboards.

    2. Building a Layered Evaluation Set: From Closed Problems to Open Problems

    To make evaluation results useful, the first step is to build a problem set layered by difficulty and openness. At least four layers are recommended:

    1. Basic computation layer: standard arithmetic and equation solving, used to verify basic reliability;
    2. Standard problem-type layer: classic problems from textbooks and competitions with unique answers, used for horizontal comparison;
    3. Compositional reasoning layer: problems requiring cross-topic combinations and multi-step derivation, used to test chain stability;
    4. Open problem layer: problems with no standard solution, requiring the model to set its own lemmas and construct auxiliary structures — the real dividing line of capability.

    Evaluation should record more than the final accuracy rate. It should also include the average number of reasoning steps per problem, the step at which the first error occurs, the distribution of error types (calculation error / logical leap / misuse of premises), and the consistency of repeated samples on the same problem. Consistency is especially critical — a model that occasionally answers correctly but has huge variance is not reliable in production.

    A sample evaluation record structure could look like this:

    1. {
    2. "item_id": "open-017",
    3. "layer": "open",
    4. "samples": [
    5. {"correct": true, "steps": 42, "first_error_step": null},
    6. {"correct": false, "steps": 38, "first_error_step": 21}
    7. ],
    8. "metrics": {
    9. "pass_rate": 0.5,
    10. "avg_steps": 40,
    11. "consistency": 0.5
    12. }
    13. }

    3. Chain-of-Thought Quality: A Stronger Signal Than Answer Accuracy

    For open-ended problems, a correct answer is often partly a matter of chance, while the quality of the chain of thought is a stable signal. Three aspects are worth focusing on:

    • Conciseness: whether there is a large amount of redundant backtracking. The longer the reasoning chain, the higher the probability of accumulated error; a concise chain usually indicates stronger abstraction ability;
    • Structural clarity: whether known conditions, lemmas, and derivation steps are explicitly listed, making errors easier to locate;
    • Self-verification behavior: whether the model proactively substitutes values back to verify or performs boundary checks after key steps.

    A practical recommendation is to introduce a dual-track mechanism of “manual spot checks + automated verification”: use programs to verify deterministic answers, and have humans score proof-type conclusions step by step. This controls cost while avoiding the bias of a single automated metric.

    4. Scenario-Based Selection: No Universal Model, Only the Right Fit

    The endpoint of evaluation is selection, and selection must return to the business scenario. Common mappings are as follows:

    Business Scenario Key Capability Selection Focus
    Intelligent customer service, document summarization Natural expression, stable responses Concise chain of thought, low latency
    Code assistance and data processing Multi-step logic, tool calling Reasoning depth, structured output
    Research and advanced math assistance Open problem solving Open-problem upper bound, verifiability
    Large-scale batch processing Controllable cost, throughput Correctness per unit cost

    It is worth emphasizing that different generations of models often show “crossing over” rather than one-directional dominance: one generation may be better at writing and conciseness, while another is stronger at open reasoning; a minor version iteration may also surpass its predecessor only in specific dimensions. Therefore, selection should be based on measured results from your own evaluation set, not on a general generational ranking.

    5. Engineering Implementation: Turning Evaluation into a Sustainable Capability

    Evaluation should not be a one-off activity, but embedded into the development workflow:

    1. Fix the evaluation set and version: problems, parameters, and sampling counts should all be placed under version control to ensure reproducibility;
    2. Canary and regression: when the model or prompt strategy changes, run the regression set first and observe whether metrics degrade at each layer;
    3. Observability: use common cloud capabilities such as logging services and monitoring alerts to collect metrics like reasoning steps, latency, and failure rate;
    4. Cost control: reserve high-cost models only for the open problem layer, and route regular traffic to lightweight models, forming tiered invocation;
    5. Data security: desensitize sensitive data before invocation, and define a clear data retention policy.

    Architecturally, a combination of “routing layer + evaluation layer + archival layer” can be adopted: the routing layer splits traffic by problem complexity, the evaluation layer scores continuously, and the archival layer turns samples into the next round of evaluation sets, forming a closed loop. If a container platform is used to host inference services, together with object storage for evaluation data, elastic scaling and result traceability can be achieved relatively easily.

    6. Common Pitfalls

    • Looking only at the total score: a total score masks layered differences and cannot guide selection;
    • Concluding from a single sample: ignoring variance leads to production performance that differs from expectations;
    • Over-pursuing long chains of thought: a longer chain does not mean stronger ability, and instead increases latency and error probability;
    • Ignoring verifiability: conclusions that cannot be verified carry extremely high risk in production;
    • Replacing measurement with generational impressions: capability crossing caused by version iterations makes general rankings meaningless.

    7. Conclusion

    Evaluating the mathematical reasoning ability of LLMs is essentially about building your own measurement system: layered problem design, multi-dimensional recording, attention to chain-of-thought quality, scenario-based selection, and solidifying evaluation into a sustainable engineering process. Once the evaluation criteria are stable, judgments about which model is stronger will shift from subjective impressions to reproducible data conclusions, and selection decisions will become more robust and controllable.