Evaluating Large Language Models on Mathematical Reasoning: A Practical Framework
This article presents a practical framework for evaluating the mathematical reasoning of large language models. Instead of asking which model is simply "better," it breaks reasoning ability into observable dimensions, proposes a four-layer problem taxonomy, introduces process-based scoring, and explains how multi-sampling consistency separates genuine capability from lucky guesses. It also covers cost and scheduling constraints, chain-of-thought length trade-offs, and a reproducible evaluation pipeline, helping readers choose the configuration with the highest effective output for their own problem distribution and budget.
1. Why “Which Model Is Better” Is Hard to Answer
In comment-thread debates, the most common argument is whether one model beats another. Such comparisons rarely converge for three reasons. First, open-ended math problems have no single canonical answer: proofs, constructions, and extremal problems may all admit multiple correct paths. Second, models differ in their chain-of-thought length strategies—some emit minimal reasoning, while others produce very long reasoning with many branches—so comparing token consumption directly is not fair. Third, sampling randomness makes single runs non-reproducible.
The first step of evaluation, therefore, is not scoring but decomposing “ability” into observable dimensions.
Observable dimensions typically include: final answer correctness, verifiability of the reasoning process, resource consumption per problem, and effective output rate under the same budget. Comparison becomes meaningful only when these four items are quantified separately.
2. Problem Tiering: Breaking “Math Ability” into Measurable Levels
It is advisable to split the problem bank into four layers to avoid drawing sweeping conclusions from one uniform set:
- Standard computation layer: routine algebra, probability, and calculus, measuring accuracy and stability;
- Competition reasoning layer: problems requiring multi-step transformation and constructive tricks, measuring path-search ability;
- Open exploration layer: no preset conclusion, requiring the model to propose and verify its own conjectures, measuring exploration and self-correction;
- Long-range formalization layer: requiring complete proof structure, lemma decomposition, and boundary-condition discussion, measuring long-context consistency.
After tiering, any model shows a capability profile rather than a single score. A common pattern in practice: one model scores nearly full marks on the standard computation layer but drops sharply on the open exploration layer, while another makes slight errors on standard computation yet keeps a clear structure on the long-range formalization layer. For model selection, weight the layers according to the real distribution of your workload instead of looking at the overall ranking.
3. Process Scoring: From “Right Answer” to “Trustworthy Steps”
Looking only at the final answer masks two risks: guessing the right answer, and hidden flawed reasoning inside the steps. A practical approach is to introduce a process scoring sheet and label each solution by dimension:
Dimension Weight CriteriaAnswer correctness 0.4 Matches reference answer or verification scriptKey step validity 0.3 Each derivation independently checkable, no skipped-step black holesBoundary handling 0.15 Domain, degenerate cases, extreme values discussedReproducibility 0.15 Others can recompute from the description
For computable problems, the best practice is to send answers to an independent symbolic computation or numerical verification pipeline rather than letting the model self-assess. Self-assessment has a systematic optimism bias, and models are especially prone to “self-confirmation” at the end of long reasoning chains.
4. Multi-Sampling and Consistency: Telling “Can Solve” from “Lucky Guess”
A single sample is not enough to support a conclusion. Sample each problem k times (k between 5 and 9) and track three metrics:
- Pass rate: the proportion of correct samples;
- Consistency: whether multiple samples converge to the same answer or an equivalent form;
- Disagreement location: whether errors concentrate in the same type of step (e.g., missing case splits).
A model with high consistency is more suitable for engineering integration even if its single-run pass rate is slightly lower, because outputs are predictable, cacheable, and regression-testable. Conversely, high pass rate with low consistency means high output variance and a jittery production experience.
Illustrative statistics logic:
def evaluate(samples, verifier):results = [verifier(s) for s in samples]pass_rate = sum(results) / len(results)answers = {normalize(s.answer) for s in samples}consistency = 1.0 if len(answers) == 1 else 1.0 / len(answers)return {"pass_rate": pass_rate, "consistency": consistency}
5. Resources and Cost: Factoring Queue Time and Quota Budget into Evaluation
In real usage, what limits the experience is often not the capability ceiling but queue time and quota consumption. Evaluation must therefore include a cost axis: average input and output size per problem, end-to-end latency, and number of problems completed per unit of budget. When quota is limited and about to expire, a more sensible strategy than scattered trial runs is batched scheduling: pack tasks, set a concurrency limit, retry failures, and resume from checkpoints, so that as many effective tasks as possible finish before the budget runs out.
# Illustrative batch scheduling under a budget constraintbudget = 2000 # remaining available quotaper_task_cost = 40 # estimated cost per tasktasks = build_tasks() # task queuewhile budget >= per_task_cost and tasks:batch = tasks[:5] # control concurrency to reduce queueingfor t in batch:run_with_retry(t, max_retry=2)budget -= per_task_costtasks = tasks[5:]
This “budget-first” scheduling turns limited quota into deliverable results more effectively than manual one-by-one attempts.
6. Chain-of-Thought Length and Readability: Longer Is Not Always Better
Long chains of thought do help on hard problems, but they bring two side effects: higher latency and errors accumulating along the long chain. In contrast, models with concise chains of thought tend to be more natural on writing and explanatory tasks. The practical recommendation is to route by task type: send tasks needing rigorous derivation to a long-chain configuration, send tasks meant for collaborative human reading to a concise configuration, and handle unified routing and result caching at the gateway layer.
7. A Reproducible Evaluation Pipeline
Chain the elements above into a closed loop: fix the problem bank and random seeds, record the full output of every sample, judge with an independent verifier, aggregate the four-dimensional metrics, and generate a selection report weighted by business priorities. On the engineering side, you can run evaluation jobs on a container platform, store raw outputs in object storage, use a message queue to smooth out traffic spikes, and track failure rates and queue times with logging and monitoring alerts. In such scenarios, Baidu AI Cloud typically provides these general-purpose capabilities, making it easier to standardize the evaluation pipeline.
8. Conclusion
Evaluating open-ended mathematical ability should shift from a “ranking mindset” to a “profile mindset”: first tier the problems, then score the process, then run multi-sampling consistency checks, and finally layer on cost and queue constraints. Only then can you answer the question that really matters—under your problem distribution and budget, which configuration delivers the highest effective output.
