Large Language Model Math Reasoning: Evaluation and Model Selection Guide
Large language models are often ranked with single-problem anecdotes and one-off outputs, yet those conclusions rarely hold up. This guide lays out a reproducible engineering framework for evaluating LLM math reasoning: capability tiering from L0 to L3, contamination-resistant question-pool design, a standardized evaluation workflow with pass@1/pass@k sampling and blind scoring rubrics, cost attribution for long chains of thought, quota-aware scheduling, and multi-model routing. Instead of arguing over which model is "the strongest," you get a method to choose the most reliable model per task at acceptable cost.
1. Introduction: Why the “Strongest Model” Debate Keeps Failing
On tasks like mathematical proofs and complex derivations, developers often argue: a flagship model with a strong reputation produces a less rigorous answer than another model on a given problem, is slower, and costs more. The conclusion quickly becomes “model X is now completely behind.” Then someone publishes a tidy “capability ranking” that forces products with different form factors and reasoning modes into the same sequence for comparison.
These discussions reflect a real engineering need: developers do want to know which model to assign to which task. But most conclusions don’t survive scrutiny, for three main reasons:
- Sample size is too small: drawing a conclusion from one problem and one output is essentially estimating a model’s capability distribution from a single random trial, with very low confidence.
- Channels are inconsistent: the chat product, the workspace, and the API may be configured with different reasoning budgets, context lengths, and system prompts, so the thing being tested isn’t actually the same model.
- Products are still iterating fast: today’s conclusion may be invalidated by the next version update.
Rather than arguing over “who is strongest,” a more effective approach is to build a reproducible math-reasoning evaluation system that decomposes “strength” into measurable dimensions:
- Correctness: whether the conclusion is correct and whether every reasoning step holds;
- Verifiability: whether the proof is self-consistent, free of circular reasoning or unproven lemmas;
- Stability: the success rate across repeated runs of the same problem;
- Economics: the compute and quota consumed per unit of quality;
- Latency: end-to-end time including queue time.
This article is organized around that system, covering capability tiering, question-pool design, sampling rules, cost attribution, and selection decisions, so you get an engineering method you can put into practice directly.
2. Math Reasoning Should Be Evaluated in Layers
“Math ability” is too broad a concept. The same model can perform very differently across different types of math tasks, so before evaluating you must first define the level of the capability being tested.
2.1 A Capability Tiering Model
It’s recommended to divide math reasoning into four levels, L0–L3:
- L0 — Memory reproduction: the model only needs to reproduce existing conclusions and proofs from training data or public sources. These questions can barely distinguish models, because differences come from memory capacity rather than reasoning ability.
- L1 — Routine derivation: conditions are explicit and the solution path is relatively standard, such as textbook exercises, exam problems, and routine integrals and linear-algebra calculations. This is the main battleground for most baseline evaluations.
- L2 — Multi-step reasoning and synthesis: requires combining knowledge across topics, constructing intermediate conclusions, or completing competition-level derivations. The reasoning chain is usually long.
- L3 — Open math problems: the proposition has no ready-made proof in public sources, so the model must construct its own argument. Some problems may take a long time, even beyond what a single session can handle.
In practice, many models handle L0 and L1 tasks well, and the differences concentrate in L2 and L3. If an evaluation set is dominated by L0 and L1 questions, the resulting conclusions often diverge sharply from developers’ real-world impressions.
2.2 What Makes Open Problems Special
Consider a task like “prove a proposition from a public math-proposition repository that has no proof yet.” Such tasks have these characteristics:
- They can’t be completed by retrieval or memory alone; real reasoning is required.
- The model must decide the proof strategy itself, such as induction, contradiction, or constructing auxiliary objects.
- The output is usually long text, and it must balance structural completeness with proper formula formatting.
For exactly this reason, L3 tasks are best suited to distinguishing “real reasoning” from “fake reasoning.” A phenomenon worth watching for: a model may produce a proof that looks complete and is dense with terminology, but actually hides circular reasoning, silently assumes an unproven lemma, or holds only in a special case. Such output is hard to catch on a quick read, so L3 scoring must be done by someone with the relevant mathematical background.
2.3 Question Types That Can Be Auto-Verified
Not all math tasks depend on manual grading. The following types can be judged automatically by a program, greatly reducing evaluation cost:
- Numerical computation: the answer is compared exactly against a reference;
- Formalizable proofs: proof steps are filled in within a formal proof system and verified by a checker;
- Proposition truth-value judgment: given a proposition, decide whether it holds; if it does, prove it; if not, give a counterexample. Both the answer and the counterexample can be checked automatically.
It’s advisable to keep a certain proportion of auto-verifiable questions in the pool for high-frequency regression testing.
3. Building the Question Pool: Anti-Contamination First
Whether an evaluation’s conclusions are trustworthy depends largely on question-pool quality.
3.1 Data Sources and Risks
Common question sources include public math-proposition repositories, past competition problems, textbook exercises, formal proof libraries, and questions designed by the team itself. Note:
- High contamination risk: competition problems and classic textbook exercises are regulars in model training data, so the model may just be recalling the answer.
- Wide difficulty range: public math-proposition repositories cover propositions from basic to frontier, suitable for building L2 and L3 tasks, but they require human screening.
- Most trustworthy: team-authored questions, especially real math problems encountered in internal business.
3.2 A Four-Step Anti-Contamination Strategy
- Variant rewriting: preserve the core structure while replacing specific parameters, object names, or phrasing, so the model can’t answer from memory.
- Difficulty grading: have mathematically trained people classify questions into L1–L3, ensuring balanced counts across levels.
- Hold-out isolation: keep a set of never-before-published questions as the final acceptance set, run only once when a version is finalized.
- Periodic rotation: introduce new questions every so often and retire old ones that have spread widely or are suspected of being in training data.
3.3 State the Solvability Basis Up Front
When posing proof tasks to a model, always state the basis for solvability first, for example:
- The proposition has an accepted proof; the model just can’t retrieve it directly.
- The proposition has been confirmed solvable by the team’s math staff.
- The proposition’s truth value is unknown; you expect the model to judge and explain its reasoning.
This both prevents the model from wasting large amounts of reasoning resources on a false proposition and keeps results focused on reasoning quality itself. For propositions whose truth value is unknown, scoring should additionally weigh the model’s “skepticism”: can it find the flaw in the proposition, rather than forcing out a proof that only looks complete?
4. Designing the Evaluation Workflow So Results Are Reproducible
4.1 Fix the Variables, Record Everything
Before evaluation begins, fix and record the following:
- question-pool version, difficulty distribution, and question IDs;
- prompt-template version;
- decoding parameters, such as temperature and maximum output length;
- the tested model version and the calling channel.
If any variable changes, you must re-establish the baseline.
4.2 Unified Prompts, with Clarification When Needed
The same question facing different models must use exactly identical prompts. The prompt should contain explicit constraints, for example: only use the conditions given in the problem, don’t cite unproven lemmas, and write mathematical content using standard math-typesetting markup.
For open problems, you can adopt a two-stage interaction:
[Round 1 - Approach Confirmation]Please analyze the proof approach for the following proposition, listing thekey lemmas and proof framework you might use. Do not write the full proof yet.First explain whether there are any circular dependencies or unproven assumptions.[Round 2 - Complete Proof]Based on the above framework, write the complete proof and output it as an Englishlecture note, with these requirements:1. Include the proposition statement, notation, lemmas and their proofs, and themain theorem proof;2. Write all formulas using standard math-typesetting markup;3. Provide a brief explanation for every "obvious" or "easily obtained" statement;4. Finish with a section titled "Self-check for suspicious points" that lists theweakest steps in the proof.
The Round 1 approach confirmation lets evaluators catch early whether the model chose the wrong proof direction. The Round 2 “self-check for suspicious points” exposes the model’s ability to self-review.
4.3 Multiple Sampling
A single output can’t represent a model’s capability. It’s recommended to sample 3–5 times per question per model at a uniform temperature and compute two metrics:
- pass@1: the fraction of single outputs that pass evaluation, reflecting the model’s “one-shot success rate” in real scenarios;
- pass@k: the fraction of cases where at least one of k samples passes, reflecting the model’s “capability ceiling.”
If the gap between the two is too large, the model’s capability is unstable and needs to be compensated for through prompt optimization or multi-turn interaction.
4.4 Blind Review and Scoring Rubric
In the human-review stage, hide model names and shuffle the output order for the same question to reduce brand bias.
Using proof tasks as an example, here’s a scoring rubric:
| Dimension | Points | Scoring criteria |
|---|---|---|
| Conclusion correctness | 40 | Whether it proves the original proposition, or correctly identifies that it’s false |
| Logical rigor | 25 | Whether there’s circular reasoning, unproven lemmas, or skipped steps |
| Completeness | 15 | Whether boundary and special cases are discussed |
| Presentation quality | 10 | Notation consistency, clear structure, proper formatting |
| Self-review | 10 | Whether it can proactively point out weak points in the proof |
Have at least two reviewers score independently, and bring in a third for arbitration when disagreement exceeds one level.
4.5 Evaluation Record Table
Each evaluation should keep a structured record:
| Question ID | Level | Channel | Samples | pass@1 | pass@k | Avg. score | Avg. output tokens | Avg. reasoning tokens | Avg. end-to-end latency | Reviewer |
|---|---|---|---|---|---|---|---|---|---|---|
| M-001 | L3 | API | 5 | TBD | TBD | TBD | TBD | TBD | TBD | TBD |
Listing “avg. output tokens” and “avg. reasoning tokens” separately is done to support later cost attribution.
5. Cost Attribution: Long Chains of Thought Aren’t Free
5.1 Seeing Where Quota Consumption Comes From
Some reasoning-oriented models perform lengthy internal reasoning before giving an answer, and this content usually counts toward token consumption too. On the same question, one model’s reasoning process might be a few hundred tokens while another’s might be tens of thousands. Intuitively, models with longer chains of thought are sometimes more stable on complex problems, but the price is higher cost and longer waits.
Take a task like “prove a proposition and output an English lecture note”: the input may be just a short proposition description and a few constraints, but the output may be a long document with complete structure and dense formulas. Add internal reasoning consumption on top, and a single task’s total token consumption can reach tens of thousands or more. Many users can relate: one long task can burn through a noticeable fraction of a monthly quota.
5.2 Cost-Per-Unit-Quality Metric
When evaluating a model, don’t look only at absolute price; also look at “how much cost it takes to complete a unit of math-reasoning quality.” You can define:
Cost per unit of quality = total cost of a single task / weighted score of that questionComposite cost index = price_weight * normalized_price + token_weight * normalized_tokens + latency_weight * normalized_latency
Normalization can use the range method:
def normalize(values):lo, hi = min(values), max(values)return [0.0 if hi == lo else (v - lo) / (hi - lo) for v in values]
The specific weights should be set according to the business scenario: offline batch-proof tasks can weigh quality and cost more heavily, while interactive problem-solving should give latency a higher weight.
5.3 Hidden Costs of Long Context and Caching
Math-proof tasks often require putting a large amount of reference material—textbook chapters, paper excerpts, existing proofs—into the context. The longer the context, the more input tokens, and some services bill extra-long contexts separately. So when evaluating, record not only output length but also input length.
On the engineering side, you can introduce two-level caching:
- Exact cache: keyed by a hash of the prompt and parameters; identical requests return the existing result directly.
- Semantic cache: for requests with slightly different phrasing but the same meaning, match historical results via vector retrieval.
For evaluation scenarios, the exact cache is especially important: repeated runs over a fixed question pool can hit the cache for most requests, saving quota.
6. Scheduling at the Quota Threshold: Spend Quota Where It Matters
Consider a common scenario: a subscribed membership service is about to expire, and the account still has a large amount of quota left; meanwhile the service is at peak load with heavy queuing. Unused quota expires, yet spending it carelessly feels wasteful. This is essentially a scheduling problem under “time-limited resource + congested service,” and the following approach can be a reference.
6.1 Task Triage
Before calling the model, classify tasks first:
- T1 — High-value tasks: open-problem proofs, reasoning and organizing of important documents, running evaluation benchmarks;
- T2 — Routine tasks: everyday Q&A, coding help, text polishing;
- T3 — Substitutable tasks: format conversion, template filling, simple classification, which can be handled by a lightweight model or a rule engine.
Only T1 tasks are worth spending expensive reasoning-channel quota on.
6.2 Peak Shaving and Off-Peak Scheduling
Put non-urgent tasks into a message queue for asynchronous execution to avoid peak hours; set a reasonable timeout for interactive requests, and on timeout fall back to a lightweight model or prompt the user to retry later.
6.3 Budgeting the Quota
Set a quota budget and per-task token cap for each task type, and estimate consumption before calling. The estimate can be based on historical statistics:
def estimate_tokens(question):# Use the token statistics of historical same-level questions as the baselinelevel = classify_level(question) # returns L1/L2/L3base = HISTORY_STATS[level]["total_tokens_p90"]return int(base * 1.2) # reserve a 20% margin
For tasks exceeding the cap, split or simplify them before submitting.
6.4 Retry and Idempotency
Retrying a failed long task adds extra consumption, so you need to:
- use exponential-backoff retries to avoid avalanche-style re-submission during congestion;
- record task status with a business idempotency key to avoid duplicate billing;
- distinguish failure causes into “server-side timeout” and “insufficient capability”—the latter shouldn’t be blindly retried.
6.5 Observability
Feed metrics like call count, token consumption, queue duration, and task success rate into logging and monitoring/alerting. Compute the daily quota-usage curve and give early warnings as the monthly cap approaches. This turns “the quota is about to expire and I don’t know where it went” into a clear ledger of “which tasks the quota went to and how well they performed.”
7. Multi-Model Routing: Split Traffic by Task Difficulty
The ultimate goal of math-reasoning evaluation isn’t to crown an “all-around champion,” but to select the right model for different task types. A practical strategy is to build a model-routing layer: first classify task difficulty, then dispatch to different models or channels.
def route(task):level = classify_level(task) # judge L1~L3 via rules or a lightweight classifierif level == "L1":return CHEAP_MODEL # routine derivation; prioritize cost and speedif level == "L2":return BALANCED_MODEL # multi-step reasoning; balance quality and cost# L3 open problem: choose a model strong at long-chain reasoning; go multi-turn if neededreturn REASONING_MODEL
Two points to note for routing:
- Grade conservatively: when unsure, route a question to a higher level rather than let a hard problem fall to a lightweight model.
- Provide a fallback on downgrade: when the expensive channel is heavily queued, you can first give an approach outline, then fill in the complete proof asynchronously.
The routing itself also needs evaluation: periodically track each level’s misclassification rate and the overall quality and cost changes after routing, and adjust thresholds accordingly.
8. Turn Evaluation into a Sustainable Pipeline
A one-off evaluation solves a problem only for the moment. Because models keep iterating, the evaluation itself must be engineered.
8.1 A Three-Tier Evaluation Cadence
- Smoke test: after each prompt or model-version change, run 10–20 representative questions covering all levels to quickly catch obvious regressions.
- Regression evaluation: run the full question pool weekly or biweekly to form a quality-trend curve.
- Targeted evaluation: for newly appearing question types or business scenarios, add questions in a focused way and analyze deeply.
8.2 Infrastructure Recommendations
- Data and version management: bring the question pool, prompt templates, and evaluation configs under version control, and record the code version and data version with each evaluation to ensure traceability.
- Batch execution: deploy evaluation tasks as containers and scale up/down on demand on an elastic container platform, releasing resources when done.
- Result storage: write raw outputs and review results to object storage for long-term retention and retrospective analysis.
- Automated summarization: schedule jobs to aggregate each model’s metrics, with alerts triggered on abnormal fluctuations.
- AI-assisted pre-screening: use an LLM to give preliminary scores against a structured rubric, with humans reviewing only low-confidence or disputed samples, to reduce review cost.
9. Conclusion
A judgment like “one model is stronger than another” is only meaningful under a clear task level, an identical calling channel, and enough samples. What developers really need isn’t a leaderboard that may expire at any time, but their own evaluation capability:
- use a tiered question pool to separate memory from reasoning;
- use multiple sampling and blind review to keep conclusions trustworthy;
- use cost attribution to see the price of long chains of thought;
- use task triage, peak shaving, and multi-model routing to spend limited quota where it’s needed most.
When evaluation becomes a sustainably running link in the pipeline, the selection decision shifts from “feeling who is stronger” to “the data tells us which model is the most reliable on this task type at an acceptable cost.”
