How to Scientifically Evaluate LLM Math Reasoning: Difficulty Stratification, Statistical Testing, and Cost Normalization

    A practical guide to evaluating large language models on math and reasoning tasks without relying on subjective "which one feels stronger" impressions. It covers how to break vague quality judgments into measurable dimensions, build a difficulty-stratified and contamination-resistant evaluation set, apply paired statistical tests with confidence intervals, and normalize results by cost. It also explains how to handle open-ended math problems, design layered model selection and intelligent routing, and govern quota, queuing, and cost in production. Readers will learn to turn model evaluation into a repeatable pipeline that answers a concrete question: given your questions, budget, and latency constraints, which configuration delivers the lowest cost per correct answer.

    1. The Starting Problem: Why “It Feels Like One Model Is Stronger” Can’t Drive Selection

    In most discussions of model capability, conclusions take the form of leaderboard-style verbal claims: one model is in a league of its own at math, another writes more like a human, and several more fall into tiers below. Such claims have value as personal experience, but as a basis for engineering decisions they suffer from several structural flaws.

    First, question difficulty is not comparable. If two people judge two models on “math ability” using different sets of problems, the conclusions lose comparability. The capability curve for math is not linear: two models that perform similarly on medium-difficulty problems can differ by orders of magnitude on competition-level finale problems.

    Second, the reasoning budget is not comparable. Mainstream reasoning models today commonly support adjusting the length of their thinking. The performance gap of the same model under different thinking budgets often exceeds the default performance gap between different models. Comparing without fixing the budget is like comparing a system where two variables change at once.

    Third, sampling and prompting are not comparable. Pass-rate variance across multiple samples of the same question, differences in system prompts, whether an answer-format constraint is given, and whether tool calls are allowed all change results significantly.

    Fourth, version drift. Silent server-side updates make yesterday’s baseline invalid. Evaluation therefore must be versioned and reproducible, not a one-off activity.

    The conclusion is direct: instead of arguing over “who ranks where,” build a set of evaluation methods you can run repeatedly, one that answers the question you actually care about — under my problems, my budget, and my latency constraints, which configuration gives the lowest cost per correct answer.

    2. Translating Subjective Experience into Measurable Dimensions

    To evaluate math and reasoning ability, first break the vague notion of “strong” into non-overlapping observables:

    Dimension Observable metric Notes
    Solving ability Stratified pass@1, pass@k Stratify by difficulty, not a global average
    Reasoning efficiency Chain-of-thought token count, effective information density Length does not equal quality; read it together with accuracy
    Stability Variance across repeated samples of the same question, consistency rate High mean with high variance is a risk in automated pipelines
    Expression quality Human-likeness, structural clarity, terminological accuracy Subjective; requires a fixed rubric and multiple raters
    Verifiability Formal proof pass rate, unit test pass rate Prefer machine scoring wherever possible
    Engineering metrics First-token latency, throughput, failure rate, concurrency quota, unit price Determines whether it can enter the production pipeline

    A common misconception is treating “the longest, most complex chain of thought” as evidence of strong ability. Chain-of-thought length is a neutral parameter: it buys a larger search space but also brings higher token consumption and latency. When the task difficulty is below the model’s ceiling, a long chain of thought often just complicates a simple problem, or even introduces reasoning branches that didn’t need to exist — a phenomenon usually called overthinking. The right approach is to treat it as an adjustable knob and use evaluation to find the best cost-performance point for each difficulty tier.

    3. Building the Evaluation Set: Difficulty Stratification and Contamination Control

    The evaluation set determines the ceiling of your conclusions. Stratify by difficulty into several tiers, with enough questions per tier to support statistical judgment (in practice, at least 50–100 questions per tier):

    • L0 Routine calculation and substitution: tests baseline accuracy and format compliance, used to rule out low-level failures.
    • L1 Multi-step word problems: requires 3–5 steps of reasoning and management of intermediate quantities.
    • L2 Competition difficulty: requires clever constructions, case analysis, inequality manipulation.
    • L3 Proof problems: conclusions are decidable but the process requires rigor; suitable for human or rubric scoring.
    • L4 Open research problems: no standard answer; used to explore the capability ceiling and must not enter automated regression metrics.

    Contamination control is equally critical. Public question sets are very likely already in the training corpus, inflating scores. Practical measures include: prefer recently added questions; apply equivalent rewrites to numbers, variable names, and narrative order, then verify the answer is unchanged; set up “answer-inversion questions” (given the answer, solve for the conditions); and reserve a batch of never-published private questions as the final judge.

    For the data structure, explicitly record difficulty, question type, scoring method, and reference solution:

    1. {
    2. "id": "l2-0137",
    3. "difficulty": "L2",
    4. "type": "numeric_exact", # numeric_exact | interval | proof | open
    5. "answer": "-3/8",
    6. "checker": "rational_equal", # checker name, for auditability
    7. "reference_steps": ["..."], # reference solution, to align human scoring
    8. "source_time": "2026-03", # for contamination risk assessment
    9. "budget_tokens": 8000 # thinking budget allowed for this question
    10. }

    4. Metrics and Statistical Significance: Don’t Trust a Single Point

    Accuracy from a single evaluation run is a point estimate and must be reported with an interval. Three levels of metrics are recommended:

    1. pass@1: one sample per question. The most direct, but high variance. Fix the random seed and repeat several times, then average.
    2. maj@k / cons@k: sample the same question k times and take the majority vote. This measures “the ceiling achievable with self-consistency” and reflects the real form of many automated pipelines.
    3. pass@k: the probability that at least one sample passes. It reflects the capability ceiling, not engineering reliability.

    When comparing two models, you must run a paired test: run both configurations on the same questions, the same prompts, and the same budget, then record a pass/fail pair for each question (1,1 / 1,0 / 0,1 / 0,0) and look only at the distribution of 1,0 and 0,1. The paired design removes noise from differences in question difficulty.

    1. def bootstrap_ci(pairs, stat="acc1", n_boot=2000, alpha=0.05):
    2. # pairs: [(model_a_pass, model_b_pass), ...] two configs' results on the same question
    3. diffs = []
    4. n = len(pairs)
    5. for _ in range(n_boot):
    6. sample = [pairs[i] for i in randint(0, n, n)]
    7. a = mean(x[0] for x in sample)
    8. b = mean(x[1] for x in sample)
    9. diffs.append(a - b)
    10. diffs.sort()
    11. lo = diffs[int(n_boot * alpha / 2)]
    12. hi = diffs[int(n_boot * (1 - alpha / 2))]
    13. return lo, hi
    14. def mcnemar_p(pairs):
    15. b = sum(1 for a_pass, b_pass in pairs if a_pass and not b_pass)
    16. c = sum(1 for a_pass, b_pass in pairs if b_pass and not a_pass)
    17. # exact binomial test; under the null, b and c have equal expectation
    18. n = b + c
    19. k = min(b, c)
    20. tail = sum(comb(n, i) for i in range(0, k + 1)) / (2 ** n)
    21. return min(1.0, 2 * tail), b, c

    The final step is cost normalization. The metric with real decision value is not accuracy, but the total cost required to reach a target accuracy: token unit price × input/output tokens × number of samples, divided by the number of correct questions. A configuration that is 3% more accurate but three times more expensive is the wrong choice in the vast majority of businesses.

    5. On “Open Math Problems”: Capability Ceilings and Scoring Boundaries

    Evaluating open research-level problems requires extra caution, for three reasons.

    First, there is no automatically verifiable answer. Judging the correctness of a mathematical proof requires a formal verification tool or expert review. Having a model produce a neatly structured, terminologically accurate derivation is a different thing from it actually completing a proof. Treating “generating it plausibly” as “being able to do it” is the most common source of distortion in capability assessment.

    Second, evaluating exploratory tasks is costly. To judge whether a model can “tackle open problems,” you need a human rubric: is the conclusion novel, is the argument reproducible, is there circular reasoning, does it cite non-existent theorems. This process cannot enter daily regression; it can only serve as low-frequency exploratory experiments.

    Third, there is the misreading of capability transfer. A model giving an effective idea on an open problem by chance may be the result of a lucky search hit. A robust way to verify is to change the problem phrasing, change the variable symbols, and adjust the order of subproblems, then observe whether the conclusion reproduces stably. A “highlight” that cannot be reproduced should not be written into selection rationale.

    The pragmatic engineering approach: turn L0–L3 into automated regression metrics for daily decisions; archive L4 separately as exploratory experiments, record conclusions through human review, and clearly flag their non-reproducibility risk.

    6. Layered Selection and Intelligent Routing

    The actionable form of evaluation conclusions is usually not “pick one model” but “establish a layering and routing strategy.” Divide into three tiers by capability and cost:

    • Flagship reasoning tier: for L3/L4, complex proofs, long-chain refactoring tasks.
    • Balanced mainstream tier: carries 80% of daily requests, covering code generation, routine analysis, and writing.
    • Lightweight fast tier: for structured tasks such as classification, extraction, formatting, and intent recognition.

    The core of routing is a low-cost difficulty pre-judgment that assigns each request to a matching tier:

    1. def route(request, budget):
    2. level = difficulty_probe(request) # lightweight model or rule-based classifier
    3. if level >= 3 or request.needs_proof:
    4. tier = "flagship"
    5. elif level >= 1 and budget.remaining_ratio > 0.2:
    6. tier = "balanced"
    7. else:
    8. tier = "light"
    9. # result cache: reuse identical semantic requests to avoid burning quota repeatedly
    10. cached = cache_lookup(normalize(request))
    11. if cached and budget.remaining_ratio < 0.3:
    12. return cached
    13. return dispatch(tier, think_budget=think_budget_for(level))

    Three supporting engineering points:

    • Adaptive thinking budget: compress it to the minimum when difficulty is low, open it up when difficulty is high, and set a cap to prevent runaway single-request cost.
    • Result caching and semantic deduplication: the hit rate is usually higher than expected, making it the most direct way to cut costs when quota is tight.
    • Asynchronous batch processing: write non-real-time tasks into a message queue and consume them in batches during periods when quota or compute is loose, avoiding peak-hour queuing.

    7. Quota, Queuing, and Cost Governance

    In production, model capability problems are often masked by quota and queuing problems. Treat quota management as an engineering discipline in its own right.

    Cost attribution. For each call, record the request ID, routing tier, input/output tokens, chain-of-thought tokens, elapsed time, and status code, write it to a logging service, and aggregate by dimension. Without attribution you cannot optimize; you can only guess.

    Handling quota exhaustion and rate limiting. When concurrency quota or credit balance runs low, define a degradation path in advance rather than failing outright: switch to the lightweight tier and return an approximate result, serve from cache, enter a queue with an asynchronous callback, or explicitly return “the current quota is exhausted” to the user. Also set bounded retries with backoff for the long tail of failures, to avoid a retry storm further worsening the queue.

    Disposing of remaining quota. An often-overlooked practice: treat quota about to expire as an experiment budget for running the evaluations you normally don’t dare run — increasing sample counts, adding difficulty tiers, comparing routing strategies. This turns quota consumption into reusable evaluation data and selection conclusions rather than passive waste.

    Monitoring and alerting. Set threshold alerts for success rate, latency percentiles, and cost per correct answer. Also monitor evaluation scores: once a baseline score drops significantly within a statistical window, trigger a regression analysis to judge whether server-side version drift has occurred.

    Evaluation can be delivered as a pipeline: version questions into a store → run scheduled batch jobs (scale the offline portion elastically with a container platform, decouple tasks with a message queue) → write results to object storage for archiving → metrics dashboard and significance testing → threshold-triggered alerts and routing-parameter adjustments.

    8. A Checklist of Common Pitfalls

    • Drawing conclusions from a single number in one run, without reporting a confidence interval.
    • Skipping paired comparison, letting difficulty differences contaminate the conclusion.
    • Fixing the thinking budget at its maximum and ignoring the cost-performance inflection point.
    • Treating chain-of-thought length as a capability metric.
    • Scoring with public question sets without assessing contamination risk.
    • Writing a chance hit on an L4 open problem into selection rationale.
    • Comparing only accuracy, without accounting for cost per correct answer and latency.
    • Skipping cost attribution, leaving you unable to explain why quota drained so fast.

    9. Conclusion

    The right form of comparing LLM capability is not producing an authoritative ranking, but building an evaluation pipeline that belongs to your own business: difficulty-stratified questions, strict scoring, paired comparison, interval reporting, cost normalization, plus layered routing and quota governance — translating evaluation conclusions directly into scheduling parameters. This way, the unconvergeable question of “which model is stronger” is replaced by “what is the optimal configuration under the current constraints,” a question that data can keep answering over time.