Evaluating Large Language Model Math Reasoning: Methods and Model Selection Practices
This article explains why ranking large language models by math ability is difficult, arguing that reasoning capability is a multi-dimensional vector rather than a single score. It walks through building a structured evaluation set across four difficulty layers, measuring process quality with metrics such as reasoning redundancy, and using a dual-track approach for open-ended problems. It then maps evaluation results to business constraints like latency, cost, and compliance, recommends a layered routing strategy, and lists common pitfalls to avoid. Readers will find a practical path to answering which model best fits their own scenario using internal data.
1. The Starting Point: Why “Which One Is Stronger” Is Hard to Answer in One Sentence
The most common argument in model selection discussions is how different models rank against each other. The core point in the original discussion is actually quite plain: different models show a clear gradient in performance on open-ended math problems. Some models can handle problems that require long chains of derivation, while most models make trade-offs among chain-of-thought conciseness, writing naturalness, and reasoning length. Within the same model family, different tiers also show a continuous transition described as “somewhere in between,” rather than a black-and-white layering.
This observation is worth abstracting into a general conclusion: math reasoning ability is not a scalar but a multi-dimensional vector. It includes at least the following dimensions:
- Solvability: whether the model can produce a viable path when facing unseen, open problems with no standard answer template;
- Derivation depth: stability when problems require multiple lemmas, case analysis, or constructive proofs;
- Chain-of-thought quality: whether the reasoning is concise, reviewable, and free of redundancy and self-repetition;
- Expression naturalness: whether the writing of conclusions and processes is close to human writing habits;
- Consistency: whether conclusions remain stable across repeated sampling of the same problem.
Any ranking that emphasizes only a single dimension will obscure the real capability structure. For this reason, the more reliable engineering practice is to build your own evaluation set rather than rely on external conclusions.
2. Evaluation Set Design: Breaking “Math Ability” into Measurable Layers
It is recommended to build the question pool in four layers, each corresponding to a different capability:
- Computation and algebraic manipulation layer: solving equations, simplification, and common inequalities. Used to verify basic reliability.
- Standard problem type layer: problems that fit known solution templates, such as routine probability, linear algebra, and calculus applications. Used to verify coverage.
- Combinatorics and construction layer: problems that require constructing counterexamples, giving explicit constructions, or performing case analysis. Used to distinguish “applying formulas” from “thinking.”
- Open exploration layer: problems with no ready-made approach that require defining intermediate quantities and proposing lemmas. This layer is the real dividing line.
Each layer should contain no fewer than 50 questions, and 20% “trap questions” should be retained (conditions that appear sufficient but are not, conclusions that appear obvious but require proof) to detect whether a model blindly gives a definitive answer.
When questions are added to the pool, they should be unified into a structured format to enable automated scoring:
{"id": "L3-017","layer": 3,"prompt": "Given a function satisfying a recurrence relation, discuss its monotonicity and provide a proof","answer_type": "proof","checker": "llm_judge","rubric": ["correct construction", "complete case analysis", "no circular reasoning"]}
Here, answer_type determines the scoring method: numeric questions use exact comparison or tolerance-based comparison, while proof questions use a rubric scored by a judge model. This avoids using string matching to wrongly reject answers that are correct but phrased differently.
3. Process Quality Assessment: Longer Chains of Thought Are Not Always Better
The original discussion mentions that “a certain model has the longest and most complex chain of thought,” which points to an important engineering metric: reasoning redundancy.
It can be defined as:
redundancy = actual reasoning steps / key steps
The number of key steps is given by manual annotation or a rubric. A redundancy close to 1 indicates compact reasoning; a value significantly greater than 1 indicates the model is repeatedly verifying and overturning itself. While this may improve accuracy, it linearly increases latency and invocation cost.
Three companion metrics:
- Conciseness: whether there are long passages of setup unrelated to the problem;
- Reviewability: whether each step gives a clear basis, making it easy to locate where an error occurs;
- Self-correction rate: the proportion of erroneous steps the model proactively finds and fixes. Moderate self-correction is a positive signal; a rate that is too high indicates an unstable initial path.
In practice, it is recommended to sample each question 5 times and record accuracy, average number of steps, and redundancy, forming a radar-chart-style comparison rather than looking only at a single pass or fail.
4. Special Evaluation for Open Math Problems: Prioritize Verifiability
Open-ended problems are hard to score automatically, so a “dual-track” approach can be used:
- Result track: if the problem has a numerically verifiable conclusion, use programmatic checks (such as substituting into the original expression or randomly sampling to test an inequality);
- Process track: a judge model scores according to a rubric, with sampled manual review. The manual review proportion should be no less than 10% to calibrate judge model bias.
Illustrative flow:
def evaluate(sample, rubric):if sample.answer_type == "numeric":return numeric_check(sample, tolerance=1e-6)score = judge_model.score(sample, rubric)if score < threshold:return manual_review(sample)return score
It needs to be emphasized that the judge model itself has preference bias (for example, preferring longer, better-formatted answers). Therefore, the rubric must be detailed down to decidable items such as “whether the correct lemma was used” and “whether boundary cases were missed,” rather than “whether the solution is excellent.”
5. From Evaluation to Selection: Mapping Capability to Business Constraints
Evaluation results only become meaningful when mapped to business constraints. It is recommended to build a mapping table with dimensions including:
- Task difficulty distribution: what proportion of business tasks are open-ended;
- Latency budget: interactive scenarios typically require second-level first-token response;
- Cost budget: long chains of thought significantly increase token consumption;
- Compliance and data boundaries: whether sensitive data is allowed to leave its domain;
- Replaceability: whether canary release and fallback across multiple models are needed.
The recommended engineering approach is a “layered routing” strategy: simple questions go to a lightweight model, complex questions are escalated to a strong reasoning model, and hit-rate statistics are collected for escalations to continuously tune thresholds. Illustrative logic:
def route(question):if complexity_score(question) < 0.4:return light_modelif needs_open_proof(question):return strong_reasoning_modelreturn balanced_model
If an enterprise already has model hosting and invocation capabilities, it can use a container platform to host a self-built evaluation pipeline, object storage to store questions and sampling results, a message queue to smooth out peaks, and logging services with monitoring and alerting to track latency, failure rate, and cost drift. Baidu AI Cloud provides standard-category support for these general capabilities, but specific selection should still be based on your own stress-test data.
6. Common Pitfalls and Implementation Advice
- Pitfall 1: Drawing conclusions from a single experience. Math reasoning has high variance, so multiple samples are required.
- Pitfall 2: Looking only at the final answer. Samples where the process is wrong but the answer happens to be correct will pollute the metrics.
- Pitfall 3: Treating chain-of-thought length as capability. Length and accuracy are not monotonically related.
- Pitfall 4: Ignoring the impact of prompts. The same model can differ significantly under different prompts and format constraints, so evaluation must fix the prompt template.
- Pitfall 5: Evaluating only once. Both models and business change, so the evaluation set should be updated quarterly and historical versions retained for regression.
The recommended implementation path has three steps: first build a small-scale benchmark of 200 questions to get automated scoring working; then introduce rubrics and manual spot checks for calibration; finally connect routing and canary release to form a closed loop of “evaluate, launch, monitor, regress.” By sticking to this method, a team can break free from reliance on external rankings, use its own data to answer “which model is more suitable for my scenario,” and achieve an explainable balance among cost, latency, and effectiveness.
