# LLM Reasoning Evaluation: From Mathematical Proofs to Deployment Throughput

    Most disagreements about which LLM is "stronger" come from mismatched yardsticks rather than mismatched facts. This article lays out an engineering approach to reasoning evaluation: fixing the task distribution, the grading rules, and the cost basis; using open-ended proof problems as contamination-resistant capability probes; measuring chain-of-thought efficiency separately from answer quality; controlling sampling variance with pass@k; accounting cost per completed task instead of per token; and finally moving from capability benchmarks to measured deployment performance, complete with a layered decision framework for self-hosting versus managed APIs.

    1. Why Benchmarking Is Hard: From Gut Feel to Reproducible Metrics

    When practitioners compare large models, most disagreements do not come from different facts — they come from different yardsticks. One person compares complex mathematical proofs, another compares long-document writing, a third compares time-to-first-token, and a fourth compares price per million tokens. Those four metrics point at four different “best” choices, so the conclusions contradict each other almost by construction.

    To reach a conclusion you can actually build on, at least three variables have to be pinned down:

    • Fix the task distribution. The evaluation set should match your real workload, not a public leaderboard.
    • Fix the grading rules. Write the pass criteria down before you run anything, grade blind, and have a second reviewer double-check the calls.
    • Fix the cost basis. Record call cost, total elapsed time, and retry counts together — not unit price alone.

    Loosen any one of the three and the result degrades back into a “feel description.” A common anti-pattern is “just try a handful of questions I happened to write myself”: the sample is too small, the problems are too easy, and the prompt frequently leaks the solution path without anyone intending it. Conclusions from that setup are effectively unreproducible.

    2. Open-Ended Proof Problems as Capability Probes

    2.1 Why mathematical proofs make good probes

    Among all possible test vehicles, “produce a proof that has not been widely published” has several properties that few other tasks combine:

    1. The answer can be graded strictly. A proof either holds or it has a gap; unlike writing tasks, there is very little room for subjectivity.
    2. You cannot pass by memorisation. Public problem sets are already in the training data, whereas an obscure statement has no ready-made solution to copy.
    3. Long reasoning chains cannot be compressed. A single proof may require dozens of linked steps; one skipped step or circular argument invalidates the whole thing.
    4. It tests format and content together. Requiring a well-structured English mathematical write-up exercises rigour, notation consistency, layout discipline, and readability at the same time.

    In the original scenario, a typical heavyweight request was “prove a statement that has no recorded proof in a given mathematical project, and produce it as an English write-up.” In practice, tasks like this consume a meaningful share of a subscription quota (on the order of a few percent of a monthly allotment in the case referenced) — which is precisely why they work as probes: they are genuinely heavy, and heavy is what a good probe needs to be.

    2.2 Three disciplines for choosing probes

    • Anti-contamination first. Before selecting a statement, search whether a complete public solution already exists. Prefer entries in encyclopedia-style mathematical projects that are explicitly marked as missing a proof; those gaps are naturally resistant to memorisation.
    • Tier the difficulty. Prepare three tiers (solvable, borderline, out of reach) so you can separate “capability ceiling” from “consistency of execution.” A set containing only the first tier will not distinguish flagship models from one another.
    • Freeze the prompts once. Lock the problems and prompts, then reuse them long term, so that “prompt tuning” never becomes an extra variable in each run.

    3. Chain-of-Thought Length Is Not Quality

    One observation recurs among practitioners: some models produce extremely long, deeply nested reasoning traces, yet at comparable difficulty they are no stronger than models with leaner chains. Conversely, models whose reasoning is concise and goal-directed tend to produce prose that reads closer to a human author’s rhythm.

    The two things should be measured separately:

    Dimension How to measure Notes
    Chain-of-thought efficiency Effective reasoning steps / total output tokens Excludes self-repetition and irrelevant exploration
    Chain-of-thought quality Did the key transitions hit the correct line of attack Labelled by humans or by a stronger model
    Prose naturalness Blind score (1–5) Mixed in with human-written samples
    Latency cost Time-to-first-token, total elapsed time The direct cost of a long reasoning trace

    The conclusion is not “shorter chains are better,” it is this: chain-of-thought length is a cost variable, not a capability variable. When two models are roughly equal in capability, the one with the leaner chain is more economical per unit of work; when they are not equal, you should compare the cost of completing the task, not how many words of thinking it produced.

    4. Engineering the Evaluation Pipeline

    4.1 Use pass@k against sampling variance

    Judging a model’s ability from a single sample is unreliable. The standard practice is to fix the random seed, sample n times concurrently, and then compute pass@k with an unbiased estimator:

    1. # Illustrative code: transport and auth details omitted; the API is wrapped by a self-built gateway
    2. import asyncio, json, time
    3. from math import comb
    4. async def call_model(client, prompt: str, meta: dict, k: int = 4):
    5. async def one(i: int) -> dict:
    6. t0 = time.perf_counter()
    7. resp = await client.chat(
    8. messages=[{"role": "user", "content": prompt}],
    9. temperature=0.7,
    10. seed=10_000 + i, # fixed seed so results stay comparable across versions
    11. extra_body={"meta": meta}, # pass through task ID / version, for traceability
    12. )
    13. latency = time.perf_counter() - t0
    14. return {
    15. "sample_id": i,
    16. "text": resp.text,
    17. "usage": resp.usage, # in/out tokens, cost attribution
    18. "latency": latency,
    19. }
    20. samples = await asyncio.gather(*[one(i) for i in range(k)])
    21. return samples
    22. def pass_at_k(samples_per_task: list[list[dict]], grader, k: int) -> float:
    23. """samples_per_task: k samples per task; grader: function that judges a pass"""
    24. total = 0.0
    25. for samples in samples_per_task:
    26. n, c = len(samples), sum(grader(s["text"]) for s in samples)
    27. total += 1.0 if n < k else 1.0 - comb(n - c, k) / comb(n, k)
    28. return total / len(samples_per_task)

    4.2 Cost basis: settle per task, not per token

    This is the most frequently overlooked point. Differences in price per million tokens often fail to explain differences in real bills, because the number of output tokens each model needs to finish the same task can vary by several times — especially for models with long reasoning traces. Track three metrics instead:

    • Cost per task = total cost of the evaluation set ÷ number of tasks passed;
    • Value-for-money index = pass@1 ÷ average cost per task;
    • Heavy-task cost baseline = the share of quota consumed by completing one “long output + long reasoning” task.

    The third metric is closest to lived experience: it answers “how many heavy jobs can I get done in a month,” rather than “how many dollars cheaper is the token price.”

    4.3 Data and observability

    The output of an evaluation pipeline should not be a score alone, but a traceable dataset: prompt versions, full outputs, grading rationales, token statistics, and latency distributions all landed in object storage, combined with a logging service and monitoring/alerting. Only then can you support regression evaluation and problem triage. These general-purpose capabilities (object storage, message queues, container platforms, log services, monitoring and alerting) are standardised offerings on mainstream cloud platforms; providers such as Baidu AI Cloud offer comparable building blocks that can be used to assemble a self-built evaluation pipeline, so you do not have to implement the storage and scheduling layers from scratch.

    5. From Capability Evaluation to Deployment Efficiency

    Capability evaluation answers “can it do it correctly.” Deployment evaluation answers “can you afford to run it.” The latter has to be measured on your own setup and should not be taken from second-hand data — claims circulating online, such as “a rack of some class of hardware can reach hundreds of tokens/s,” are tightly coupled to the specific model architecture, quantisation scheme, context length, and concurrency strategy. Detached from those conditions, such numbers carry no reference value.

    What needs to be measured:

    • Time-to-first-token (TTFT): determines interactive experience;
    • Single-stream output rate (tokens/s): determines how long-form generation feels;
    • Effective throughput under concurrency: total tokens the system actually produces before concurrency reaches the SLO boundary;
    • Long-context degradation curve: how throughput and latency change as context grows from 4K to 128K;
    • Cost per request: determined jointly by memory footprint and batching efficiency.

    General engineering levers that affect throughput include continuous batching, KV caching and prefix reuse, weight quantisation, speculative decoding, and tensor/pipeline parallelism. These are industry-standard techniques; the actual gains must be measured against your own model architecture.

    5.1 Self-hosting or calling a managed service

    Self-hosting and calling a managed service are not an either/or choice — layer them by workload profile:

    Workload characteristics Recommended path
    Highly variable peaks, unknown total volume Call a managed service; trade elasticity for predictability
    Stable, high-frequency, predictable Self-host / dedicated resource pool to amortise unit cost
    Strict data-residency requirements Private deployment or dedicated resources
    Exploration phase, models changing frequently Unified gateway abstraction with switchable backends

    TCO cannot be just the cost of the cards. The full accounting should include hardware depreciation or rack leasing, power and cooling, network and storage, platform and operations headcount, redundancy and disaster-recovery margin, and the replacement cost driven by model iteration. One counterintuitive finding in practice: as long as daily call volume has not crossed the break-even point, the unit cost of self-hosting is often higher than calling a service, because the cost of elastic redundancy gets spread over very low utilisation.

    6. Common Pitfalls

    • Leaderboard-driven decisions: looking only at public rankings while ignoring contamination and the mismatch between the benchmark set and your own workload distribution.
    • Single-sample judgements: drawing conclusions from one sample and ignoring sampling variance.
    • Comparing unit price only: ignoring output-token inflation caused by long reasoning traces.
    • Prompt leakage: hints embedded in the prompt mean you are measuring “instruction-following ability,” not “reasoning ability.”
    • Ignoring failure modes: reporting pass rates but not “confidently wrong” answers — in high-risk scenarios the cost of the latter far outweighs being slightly slower.
    • Version drift: a silently upgraded model or service invalidates historical comparisons. Pin a snapshot version, or at minimum record version numbers and timestamps.

    7. Production Checklist

    1. Define at least three categories of real business tasks, with no fewer than 30 samples per category;
    2. Add at least 10 contamination-resistant proof problems as ceiling probes;
    3. Fix the seed, and report pass@1 and pass@4 together;
    4. Output three cost metrics: cost per task, value-for-money index, and heavy-task baseline;
    5. Measure four curves on the deployment side: TTFT, single-stream rate, concurrent throughput, and long-context degradation;
    6. Land the full dataset so regressions can be compared by model version and prompt version;
    7. Grade blind with a second reviewer, and retain grading rationales to support appeals;
    8. Turn conclusions into a layered selection matrix, not a single “strongest model” verdict.

    Closing

    Comparing the strength of large models is fundamentally an engineering problem: fix the task distribution, fix the grading rules, and fix the cost basis; probe the boundaries with hard problems that can be judged objectively; control variance with pass@k; cost out value per task rather than per token; and let measured throughput decide the deployment shape. Do those four things, and “which model is better” stops being an argument and becomes a metric you can keep refreshing as your workload evolves.