How to Scientifically Evaluate LLM Reasoning: From Test Questions to Throughput

    This article lays out a practical framework for scientifically evaluating the reasoning ability of large language models, moving from how you design the test questions to how you measure serving throughput and cost. It identifies three systematic mismatches that make common evaluation approaches unreliable, then builds a four-layer system covering capability, stability, efficiency, and engineering. Readers will learn how to construct layered test sets, automatically grade structured answers and score open-ended proofs, quantify reasoning efficiency through metrics such as tokens per correct answer and over-reasoning rate, control variables for fair cross-model comparison, and translate throughput into a unit-cost model using TTFT, TPOT, goodput, and utilization. It closes with common pitfalls and an implementation checklist for a repeatable evaluation pipeline.

    How to Scientifically Evaluate LLM Reasoning: From Test Questions to Throughput

    1. Start by asking the right question: three systematic mismatches in evaluation

    The most common debate in technical communities is whether “a given model can solve open-ended math problems.” In engineering terms, this question is almost impossible to verify because it carries three mismatches at once.

    The first is a sampling mismatch. Solving a problem once with a model and seeing that it answers well is essentially a single sample. Language models remain stochastic even under low-temperature decoding; the same prompt run five times can produce three outcomes: correct, approximately correct, or completely off track. A single experience cannot distinguish “strong capability” from “good luck,” nor can it expose the accumulation of errors in the later parts of a long reasoning chain.

    The second is a benchmark mismatch. Once a public test set becomes widely circulated, there is a risk that it gets specifically optimized against, and the distribution of public question types usually differs greatly from the real business distribution: enterprise scenarios are full of problems with private terminology, long tables, implicit constraints, and dirty data, not clean standard questions. Therefore, benchmark scores can only serve as an initial screening reference and cannot replace validation on your own test sets.

    The third is a delivery mismatch. Offline accuracy does not equal online service capability. A model with higher offline accuracy may actually perform worse in online experience and resource bills if, at your context length, it has high first-token latency, poor concurrency, and low single-request throughput. Evaluation must place “capability” and “throughput/cost” in the same table.

    Once you break apart these three mismatches, the evaluation system naturally splits into four layers: a capability layer (is it answered correctly), a stability layer (is it consistent across multiple runs), an efficiency layer (how many inference tokens are spent to get it right), and an engineering layer (can it be delivered reliably, cheaply, and compliantly).

    2. Layered test sets: you need an exam before you can grade

    There is no evaluation without a test set. It is recommended to build the test set in layers by question type, scoring each layer separately to avoid a single total score masking structural differences.

    Layer Question characteristics Problems mainly exposed
    L1 Computational Clear closed-form answers, auto-gradable Reliability of basic arithmetic and symbolic manipulation
    L2 Reasoning-chain Multi-step derivation, requires maintaining intermediate constraints Error accumulation in the middle of long chains, loss of conditions
    L3 Open-proof No unique answer, requires logical consistency and completeness Logic gaps, circular reasoning, conclusion drift
    L4 Modeling & trap Requires identifying implicit assumptions and excluding misleading phrasing Sycophantic answers, instruction-following failures

    For engineering, it is recommended to size the test set by “each layer being large enough to support a confidence interval”: if the goal is to distinguish a 3-percentage-point difference, the sample size should be estimated by statistical power rather than picking a hundred questions by guesswork. Each question should at least be annotated with difficulty, whether tools are allowed (code execution, retrieval), and the expected reasoning token budget — these three fields determine whether horizontal comparison is possible later on.

    3. How to grade open-ended reasoning

    L1 and L2 questions can be graded automatically with “answer extraction + equivalence judgment”: first agree on an output format (for example, put the final conclusion in a fixed field), then do symbolic simplification comparison or numerical tolerance comparison on the result, to avoid misjudgments caused by exact string matching.

    1. # Auto-grading sketch: extract -> normalize -> equivalence check
    2. def grade(completion: str, case: Case) -> float:
    3. pred = extract_field(completion, field="final_answer") # structured decoding
    4. if pred is None:
    5. return 0.0 # treat extraction failure as no answer, count separately
    6. if case.answer_type == "numeric":
    7. return float(is_close(parse_number(pred),
    8. parse_number(case.reference),
    9. rel_tol=1e-4))
    10. if case.answer_type == "symbolic":
    11. return float(symbolic_equal(normalize(pred),
    12. normalize(case.reference)))
    13. return judge_with_rubric(completion, case) # open-ended questions use a scoring rubric

    L3 open-proof questions cannot be graded by the final answer alone; they require a three-stage approach of scoring rubric + model review + human calibration: the rubric breaks “conclusion correctness, reasoning completeness, legitimacy of key steps, and clarity of expression” into scorable dimensions; the model review only outputs structured judgments according to the rubric and is required to cite original evidence sentences; finally, human spot-checks at a fixed ratio calibrate review consistency (for example, have two reviewers score independently, compute an agreement coefficient, and rewrite the rubric if it falls below a threshold). This approach can significantly reduce the systematic bias caused by “the review model favoring a certain writing style.”

    4. Don’t just look at accuracy: reasoning budget and “chain-of-thought conciseness”

    The statement in the source text — “a certain model has a more concise chain of thought and writes more like a human” — actually points to a commonly overlooked quantitative dimension: reasoning efficiency.

    It is recommended to define three directly computable metrics:

    • Inference cost per correct sample: sum(reasoning-stage tokens) / number of correct samples, measuring “how many tokens you have to burn for each correct answer.”
    • Reasoning efficiency ratio: accuracy / average reasoning tokens, used to draw the “reasoning budget — accuracy” Pareto curve.
    • Over-reasoning rate: the proportion of answers that are correct but whose reasoning tokens exceed K times the question’s budget, as well as the proportion of answers that are wrong yet have extremely long reasoning. The latter is often a signal of degenerate repetition or repeated self-reversal.

    This curve is far more useful than a single-point accuracy. Most models grow quickly in the low-budget range, then enter a plateau or even decline due to repeated self-reversal. The inflection point of the curve determines where the reasoning budget should be set in production — it is both a cost parameter and a latency parameter.

    Beyond saving money, chain-of-thought conciseness has two practical benefits: first, auditability — a short and clearly structured reasoning process makes review and manual re-checking cheaper; second, controllability — the longer the chain, the higher the probability that the middle gets led astray by irrelevant content. So “concise” should not be understood as a style preference, but as a quality metric measurable by token count, step count, and ineffective-reasoning ratio.

    5. Control variables: make comparison conclusions hold up

    The most common cause of failure in cross-model comparison is that variables are not controlled. At minimum:

    1. Same questions, same paper: all candidate models use exactly the same test set, prompt templates, and system instructions;
    2. Same decoding parameters: temperature, top-p, max output length, and reasoning budget kept consistent, otherwise “smarter” may just be “thinking longer”;
    3. Multiple sampling: independently sample k times per question, report pass@k (right at least once) and major@k (right by majority vote); the former reflects the upper bound, the latter reflects stability;
    4. Blind review: for open-ended questions, hide the model source during review and randomly shuffle the order;
    5. Give intervals: accuracy under small samples must come with a confidence interval; 78% and 80% usually do not constitute a significant difference at a scale of a few hundred questions;
    6. Sensitivity analysis: rerun the core subset with a different version of the prompt to check whether the conclusion is robust.
    1. # Confidence interval sketch: bootstrap, avoid drawing conclusions from a single number
    2. def bootstrap_ci(scores, n_boot=2000, alpha=0.05):
    3. means = [mean(resample(scores)) for _ in range(n_boot)]
    4. lo = percentile(means, 100 * alpha / 2)
    5. hi = percentile(means, 100 * (1 - alpha / 2))
    6. return mean(scores), (lo, hi)

    6. From capability to throughput: four metrics on the deployment side

    Once a model is selected, the next question is “can it run cheaply.” When stress-testing, report at least four categories of metrics, and be sure to note the measurement conditions (input/output length, concurrency, whether batching is used, quantization method):

    • TTFT (time to first token): determines interactive responsiveness, mainly affected by input length and queue wait;
    • TPOT (time per output token): determines reading speed, affected by the decoding stage and batch size;
    • Total system throughput (tokens/s): measures the upper limit of compute utilization, fluctuating greatly with batch size and context length;
    • Goodput (effective throughput): the truly deliverable throughput under the premise of meeting latency constraints, and the only number that should be used for capacity planning.

    The main factors affecting throughput include: context length (KV Cache memory footprint grows linearly with length), output length distribution (long outputs seriously drag down concurrency), batch scheduling strategy, weight quantization, parallel partitioning scheme, prefix cache hit (repeated system prompts can significantly reduce prefill cost), and general acceleration techniques such as speculative decoding.

    Here we need to clarify a common misreading: the kind of numbers circulating online like “the new generation of high compute-density server integrated solutions push single-request performance to hundreds of tokens/s” lack key measurement conditions — whether it was obtained at extremely low concurrency, how long the input context is, whether quantization is used, and whether the prefill stage is included. Such numbers are suitable as a reference for the hardware upper limit, but cannot be directly used for capacity planning. The effective throughput of real online services is usually far below the single-request peak, because concurrency headroom and latency constraints must be reserved.

    1. # Minimal credible stress-test matrix (illustrative parameters)
    2. MATRIX = [
    3. {"in_tokens": 500, "out_tokens": 200, "concurrency": 1},
    4. {"in_tokens": 4000, "out_tokens": 800, "concurrency": 8},
    5. {"in_tokens": 32000, "out_tokens": 1500, "concurrency": 4},
    6. ]
    7. # For each cell, record: TTFT p50/p95, TPOT p50/p95, total throughput, error rate

    7. Converting throughput into a cost model

    The endpoint of evaluation is a unit-cost table. The core formula is simple:

    1. Cost per million tokens = (per-GPU hourly cost × number of replicas × hours) / (goodput × 3600 × number of replicas / 1e6)
    2. i.e. = per-GPU hourly cost / (goodput × 3.6) × 1000 (units adjust with the convention used)

    The real variables are goodput and utilization. Example calculation (numbers are illustrative, replace with measured values):

    1. AVG_IN, AVG_OUT = 4000, 1500 # average input/output tokens (illustrative)
    2. DAILY_REQ = 20_000 # daily request volume (illustrative)
    3. UTIL = 0.35 # effective utilization after deducting peaks/valleys and bursts
    4. tokens_per_day = DAILY_REQ * (AVG_IN + AVG_OUT)
    5. required_goodput = tokens_per_day / 86400 / UTIL # sustained throughput a single replica must meet

    From this we can derive two decision bases: first, the break-even point between self-hosting and calling cloud APIs, which depends on the stable load rate and whether operations staffing can be spread out; second, the monetization space for reasoning capability — deploying strong reasoning capability on high compute-density hardware, whether for internal use or for providing inference compute services externally, its value is reflected in effective throughput and unit token cost, and does not depend on the retail price of official channels. Conversely, if goodput cannot go up, then no matter how strong the model is, it will not be cost-effective on the cost table.

    8. Seven common pitfalls

    • Ranking models by single-question experience, ignoring sampling variance;
    • Directly mapping public benchmark scores to a private business distribution;
    • Reporting only accuracy, not reasoning token consumption and latency;
    • Inconsistent decoding parameters in comparisons, mistaking “thinking longer” for “smarter”;
    • Not doing human calibration on open-ended questions, letting the review model’s preferences become the conclusion;
    • Using single-request peak throughput for capacity planning, and getting knocked back by concurrency and latency in production;
    • Small-sample differences (one or two percentage points) being treated as significant conclusions.

    9. Implementation checklist

    1. First write down the layering criteria and acceptance standards for the business test set, then talk about model selection;
    2. Have each candidate model produce four charts: layered accuracy, pass@k / major@k, the reasoning budget — accuracy curve, and the latency — throughput curve;
    3. All conclusions come with confidence intervals and measurement conditions, with the review process archived and traceable;
    4. Use goodput and unit token cost for capacity and budget decisions, rather than peak throughput;
    5. Turn evaluation into a pipeline: manage test sets, grading, stress-testing, and reporting all with configuration management, so a model iteration can be rerun with one click. On Baidu AI Cloud, this kind of pipeline is usually carried by a container platform for evaluation and inference tasks, uses object storage to accumulate test sets and results, and then leverages logging services and monitoring alerts to observe latency and throughput metrics, forming a sustainable, reusable evaluation loop.

    The conclusion is not complicated: model strength is not a single judgment, but a set of conditional measurement results. Whoever can achieve higher accuracy and lower unit cost under a given test set, a given budget, and given latency constraints is stronger in your scenario; and once this measurement method is accumulated, its value exceeds any single-point comparison.