Evaluating LLM Mathematical Reasoning: Methods and Model Selection Practices
This article explores systematic evaluation methodologies for large language models' mathematical reasoning capabilities, moving beyond simple leaderboard rankings. It details a layered evaluation framework, the importance of establishing private test sets, and four core scoring dimensions including correctness and chain-of-thought economy. Additionally, it provides best practices for controlled comparative testing and engineering considerations for optimizing inference throughput and deployment costs to guide effective model selection.
Evaluating LLM Mathematical Reasoning: Methods and Model Selection Practices
Introduction: Why Leaderboards Are Not Enough
When a new large language model (LLM) is released, the most common debate in the community is whether it outperforms another specific model. While this enthusiasm is understandable, from an engineering perspective, simply stating “A is stronger than B” provides almost no useful information. Model capabilities are highly layered: a single model’s performance can vary drastically across different task types, inference budgets, context lengths, and deployment formats.
Mathematical reasoning serves as a crucial dimension for measuring a model’s “hard power.” It demands extreme logical rigor, multi-step derivation stability, and self-correction capabilities, making it difficult to succeed merely by memorizing training data. This article uses mathematical reasoning as a central theme to present a systematic evaluation methodology and discusses general practices for model selection and self-deployed inference performance optimization.
1. A Layered Evaluation Framework for Mathematical Reasoning
1.1 Distinguishing “Problem Solving” from “Research-Level Exploration”
Evaluating mathematical capabilities first requires distinguishing between two types of tasks:
- Competition and exam-style problems: These have standard answers and clear scoring rules, such as common mathematical benchmark suites. They test a model’s ability to converge to the correct answer within a limited number of steps.
- Open-ended research problems: These lack known answers and require constructing proofs, discovering counterexamples, or proposing new ideas. They demand high long-chain reasoning, hypothesis management, and creative combination capabilities. Currently, only a few top-tier models can produce valuable results on such tasks.
A common misconception is using benchmark scores to infer research-level ability. In reality, many models score similarly on benchmarks but show massive gaps on open-ended problems. Therefore, serious evaluations should be conducted in two layers: coarse screening using benchmarks, followed by fine evaluation using real, complex problems.
1.2 Establishing a Reproducible Private Test Set
Public benchmarks carry the risk of being gamed and suffering from training data contamination. It is recommended that teams build their own private question banks, which can be sourced from:
- Variations of public questions with numerical substitutions or perturbed conditions;
- Real quantitative analysis problems encountered in business scenarios;
- Combinatorics and probability derivation problems requiring multi-step proofs.
A private question bank does not need to be large; a few dozen manually verified, difficulty-graded questions are sufficient to differentiate model tiers. The key is to fix the questions, prompts, and scoring criteria to ensure horizontal comparability across different models and versions.
1.3 Four Core Dimensions of Evaluation
Instead of only looking at the final right or wrong answer, it is recommended to score each question across the following four dimensions:
- Correctness: Whether the final answer and key intermediate conclusions are correct.
- Reasoning chain quality: Whether the derivation steps are rigorous, without skipping steps, circular reasoning, or pseudo-proofs.
- Chain-of-Thought (CoT) economy: The number of reasoning tokens consumed to reach the correct answer. Overly long chains not only drive up costs but often indicate that the model is going in circles or repeatedly second-guessing itself.
- Presentation and readability: Whether the output is well-structured with standard symbols, and whether it can be directly reviewed by humans or fed into downstream processes.
In practice, two models might have similar accuracy rates, but one produces a concise, straightforward CoT resembling the style of a human mathematician, while the other is lengthy and convoluted. For scenarios requiring manual review or collaboration, the former holds significantly higher practical value. This is why “engineering properties beyond accuracy” should be included in selection decisions.
2. Best Practices for Comparative Evaluation
2.1 Controlling Variables: Aligning Inference Configurations
A large amount of “evaluation” conclusions in community discussions are unreliable because they fail to control inference configurations. When comparing different models, you must at least ensure:
- Temperature and sampling parameters are consistent, or individually tuned to their respective optimal states.
- The maximum inference length (thinking budget) is consistent, preventing a model from being cut off mid-thought.
- Prompt templates are neutral and do not favor any specific model’s format preferences.
- When a model has multiple tiers (e.g., different sizes or reasoning strength levels), the tested tier must be clearly labeled. You cannot compare a flagship tier’s results against a competitor’s entry-level tier.
2.2 Focusing on Capability “Intervals” Rather Than Single-Point Rankings
A more scientific way to state conclusions is to say “Model A’s capability roughly lies between Model B and Model C,” rather than giving an absolute ranking. The LLM capability map is inherently continuous and overlapping; top models winning or losing against each other in different areas is normal. For model tiers that have not been personally verified on the target task, they should be clearly marked as “untested, no comment.” This is a basic requirement for the rigor of an evaluation report.
2.3 Beware of Misleading Single Metrics
Special attention must be paid to the fact that default models in chat interfaces, high-end models exposed via APIs, and vendors’ internal experimental versions might be different tiers with significant capability gaps. When citing any evaluation conclusion, confirm the specific tier and access method tested, otherwise, the conclusion cannot be transferred.
3. Engineering Considerations for Inference Performance and Deployment Costs
3.1 Why Throughput is the New Battleground
Mathematical reasoning tasks are typically accompanied by long chains of thought, with a single request potentially consuming thousands or even tens of thousands of tokens. Under this load characteristic, inference throughput (TPS) directly dictates service costs and concurrency capabilities. A clear trend in the industry is to push single-node inference throughput for mainstream open-source weight models to very high levels through new-generation acceleration hardware and high-bandwidth interconnect architectures.
This highlights a crucial economic equation: for teams with high inference demands, the cost of self-deploying an open-source model can be significantly lower than continuously calling closed-source APIs, and the savings go far beyond official subscription fees. Model-as-a-service, private deployment, and software-hardware co-optimization are becoming mainstream paths for LLM implementation.
3.2 Key Optimization Methods for Self-Deployment
General high-throughput inference optimization methods include:
- Quantized inference: Using low-precision weights with controllable accuracy loss to multiply throughput.
- Speculative decoding: Using a small model to draft and a large model to verify, accelerating autoregressive generation.
- VRAM and batching tuning: Rationally configuring concurrent batches and cache strategies to fully utilize accelerator VRAM.
- Inference framework selection: Choosing mature inference engines that support continuous batching and paged attention.
In a cloud environment, you can combine container platforms for elastic scaling, along with logging services and monitoring/alerting systems to observe latency, throughput, and error rates, forming a complete operational closed loop for inference services. For instance, using general cloud product capabilities—such as those provided by Baidu AI Cloud—teams can quickly build a complete pipeline from model deployment and traffic scheduling to observability, allowing them to focus their energy on model evaluation and business adaptation.
3.3 Basic Methods for Cost Calculation
It is recommended to use “effective cost per million tokens” as a unified metric: factor hardware depreciation or rental, electricity, and operational labor into the unit token cost, then multiply by the average token consumption of the task (including the chain of thought) to directly compare with API pricing. For long reasoning chain tasks, models with good CoT economy will show significant advantages here.
4. Model Selection Advice for Teams
Synthesizing the discussion above, here is an actionable selection process:
- Define the task profile: Is it exam-style problem solving, code generation, or open-ended research assistance? What are the token budget and latency requirements?
- Layered evaluation: Benchmark screening -> Private test set fine evaluation -> Gradual rollout testing on real business traffic.
- Record tiers and configurations: Bind all conclusions to specific model tiers and inference parameters to ensure traceability.
- Calculate the economic cost: Compare the full lifecycle costs of self-deployment versus API calls, paying special attention to token consumption for long reasoning tasks.
- Maintain continuous re-evaluation: Model iteration speeds are fast. Re-run the private test set every quarter to promptly adjust selection conclusions.
Conclusion
Evaluating a large model’s mathematical reasoning capability is fundamentally a rigorous engineering problem, not a simple “stronger or weaker than X” statement. Through layered task design, private test sets, multi-dimensional scoring, and controlled comparative experiments, teams can entirely build judgment independent of community hype. By layering on precise measurements of inference throughput and deployment costs, teams can make rational and economical technical selections in a rapidly evolving LLM landscape.
