Evaluating LLM Math Reasoning: A Framework for Reproducible Model Selection
Choosing between large language models often turns into a debate over rankings, but without controlled conditions those debates are not reproducible. This article proposes a practical evaluation framework for math reasoning: splitting math ability into four layers (L1 arithmetic, L2 standard problems, L3 multi-step reasoning, L4 open-ended problems), treating chain-of-thought length as a cost signal rather than a capability signal, fixing evaluation variables such as temperature, token budget and prompt version, aggregating results per layer with confidence intervals, and governing cost through routing, queuing and quota policies. It also lists common evaluation pitfalls and a one-week rollout sequence. The core claim: any comparison of math reasoning must be bound to task level, budget and scoring protocol.
1. Why “Which Model Is Better?” Is the Wrong Question
The most common argument in model selection is about ranking one model against another. From an engineering standpoint, these arguments usually lack reproducible evaluation premises: difficulty is not stratified, prompts are not fixed, sampling parameters are not unified, and scoring criteria are inconsistent. As a result, the same set of models can produce completely opposite conclusions in different hands.
A more reasonable reframing is: on a clearly defined class of tasks, can a given model reliably clear an acceptance threshold under a given cost constraint? Math reasoning is a case in point, because it has two properties at once — answers can be verified automatically, while the reasoning process is hard to verify automatically. This is why evaluation must look at results and process separately.
2. Task Stratification: Breaking “Math Ability” into Measurable Layers
A vague notion of “math ability” cannot guide selection. It should be split into at least four layers:
- L1 Arithmetic and unit conversion: pure computation and dimensional handling, testing baseline reliability.
- L2 Standard problem types: textbook-style questions whose patterns are likely covered by training data, offering low discriminative power.
- L3 Multi-step combined reasoning: requires linking knowledge across topics, such as mixing probability with combinatorial counting, or converting between geometry and algebra.
- L4 Open-ended math problems: no ready-made solution template; the model must construct auxiliary structures, introduce invariants, or attempt proof by contradiction. This layer is the current dividing line for most models.
The genuinely useful judgment in the original discussion is treating “can it handle open-ended problems” as an independent dimension rather than folding it into a single total score. In engineering terms: L1/L2 can be covered by automated tests, while L3/L4 require a small, curated set of hard problems with human review.
3. Chain-of-Thought Length Is Not a Capability Metric
A common misreading is to treat chain-of-thought length as proof of capability. In practice, length only reflects how redundant the search strategy is: some models tend to enumerate branches, others simplify the structure first and then converge. Evaluation should focus on three observable characteristics:
- Convergence: whether it stops within a finite number of steps instead of restating the same condition repeatedly.
- Self-verification: whether it proactively performs dimensional checks, boundary-value substitution, and extreme-case validation.
- Readability: whether the process can be reviewed by a human, which directly affects audit cost in enterprise settings.
A more rigorous statement is therefore: a concise chain of thought with sufficient self-verification usually means lower reasoning cost; a long chain of thought does not mean stronger, only more expensive.
4. A Reproducible Evaluation Protocol
For conclusions to hold up, evaluation must fix the variables. Below is a minimal viable protocol skeleton:
# Pseudocode: a closed evaluation loop with fixed variablesCONFIG = {"temperature": 0.0, # remove sampling randomness"max_tokens": 8192, # unified budget to avoid length bonuses"prompt_template": "v3", # prompt version tracked in a registry"retry": 0, # disable retries to expose real stability}def run_eval(model, dataset):records = []for item in dataset: # item: {level, question, answer, rubric}out = model.generate(item.question, **CONFIG)result_ok = verifier.check(out.final_answer, item.answer)process_score = rubric.apply(out.reasoning, item.rubric) # human or semi-automaticrecords.append({"level": item.level,"correct": result_ok,"process": process_score,"tokens": out.usage.total_tokens,})return aggregate(records) # aggregate per level, not a single total score
There are three key design points: aggregate per level instead of emitting only one total score; treat token consumption as a first-class metric alongside accuracy; and put prompt templates under version control, otherwise historical conclusions cannot be compared.
5. Result Aggregation: Layered Weighting and Confidence Intervals
The variance of a single accuracy figure is very large on small samples. The output should look like this:
| Layer | Sample size | First-pass rate | Process score | Average tokens |
|---|---|---|---|---|
| L1 | 200 | High | Not evaluated | Low |
| L3 | 80 | Medium | Review required | Medium |
| L4 | 30 | Low | Priority review | High |
Confidence intervals should be reported alongside. Gaps measured on 30 problems often fall within noise, and in that case the correct engineering conclusion is “the two are indistinguishable,” not a forced ranking.
6. The Cost Perspective: Governing Quotas, Queues and Credits
A very practical phenomenon in the original text: an account’s remaining quota is about to expire, so high-consumption tasks are dumped onto it to “burn through the credits.” This exposes two anti-patterns in cost governance.
Anti-pattern one: deriving task allocation from remaining quota. Task difficulty should match the budget, not the balance; otherwise hard tasks are launched carelessly, the results are unusable, and the waste is doubled.
Anti-pattern two: ignoring tail latency caused by queuing and rate limiting. In interactive scenarios, what users perceive is not average latency but P95. If a channel queues noticeably at peak hours, it is unsuitable for a real-time path even when quality meets the bar.
A safer strategy is to tier the calls:
real-time interactive path -> low-latency channel + small budget + strict timeoutbatch offline jobs -> high-budget channel + queue smoothing + resume from checkpointhard exploratory tasks -> human-triggered + two-person review + results stored
When quota is about to expire, the correct use is to invest it in reusable assets — for example, batch-generating an internal evaluation set, building regression test baselines, or running controlled experiments across prompt versions. These outputs stay inside the organization long term, rather than being consumed by one-off question answering.
7. A Checklist of Common Evaluation Pitfalls
- Data contamination: problems overlap heavily with public corpora, inflating L2 scores.
- Prompt leakage: the template implicitly contains solution steps.
- Evaluating only the final answer: samples with a wrong process but a coincidentally correct conclusion get counted as passes.
- Ignoring version drift: after a silent model-side update, historical baselines become invalid and must be rerun periodically.
- Single-point conclusions: substituting the impression from one session for a statistical conclusion.
8. Implementation Recommendations
If a team wants a credible basis for selection within a week, this is the order to follow: first define and store the L1–L4 problem sets; then fix the inference configuration and prompt version; next get the dual-track scoring of automatic verification plus human review working; finally put token cost, P95 latency and per-layer pass rates on the same dashboard. Once the dashboard is stable, a model update is just a matter of rerunning the scripts, and the conclusions remain comparable.
The core claim of this framework is a single sentence: comparing math reasoning ability must be bound to task layer, budget and scoring protocol — rankings that detach from these three have no value for engineering decisions.
