Evaluating Reasoning Models: Accuracy, Latency, and Cost Trade-offs

    Reasoning-capable ("thinking mode") models turn a single request into a multi-step loop of planning and tool calls, so accuracy alone is no longer a usable benchmark. This article presents a four-metric evaluation framework — accuracy, response latency, token consumption, and monetary cost — reported per domain and per task type, with failure-type classification, first-token versus end-to-end latency measurements, and cost normalized to a per-1,000-calls basis. It also describes the capability pattern typically seen when thinking mode is enabled (large gains in reasoning and mathematics, moderate gains in tool use, regressions in knowledge-intensive domains and instruction following), a step-by-step method for attributing regressions, a runnable Python evaluation harness that records cost as a first-class output, seven engineering optimizations for cost and latency, and a selection checklist for deciding whether thinking mode fits a given workload.

    1. The Evaluation Paradigm Has Shifted: From “How Often Is It Right?” to “What Does Being Right Cost?”

    Over the past two years, mainstream flagship models have broadly adopted a “thinking” / reasoning mode, usually alongside a mixture-of-experts (MoE) architecture: a very large total parameter count, with only a subset of experts activated per forward pass. Together, these two choices have two direct consequences.

    First, a single user request is no longer a single forward pass. It becomes a loop of internal multi-step reasoning plus tool calls: the model plans, calls retrieval or computation tools, reads the results, continues reasoning, and only then produces an answer.

    Second, token consumption and end-to-end latency per request therefore grow substantially, with very high variance. The same model may answer a simple question in a few hundred tokens and one or two seconds; a complex task involving multiple tool calls may consume thousands of tokens and take several minutes.

    If an evaluation still reports only “accuracy,” the resulting conclusion will be distorted. The more defensible engineering approach is a four-metric system — accuracy, response latency, token consumption, and monetary cost — reported in layered form by domain and task type rather than as a single aggregate score.

    2. Defining and Measuring the Four Metrics

    2.1 Accuracy: It Must Be Layered, and Failure Types Must Be Distinguished

    Aggregate scores are the easiest metric to misuse. Capability gains in thinking-mode models are rarely uniform: they tend to concentrate on specific dimensions while regressing on others. Recommended practice:

    • Split by capability dimension: logical reasoning and mathematics; agents and tool use; finance; law and public administration; healthcare and mental health; language understanding and instruction following.
    • Split by difficulty: solvable in one step / requires multi-step reasoning / requires external tools.
    • Classify failures: wrong answer; correct answer in the wrong format; reliance on outdated knowledge; tool-call budget exceeded; end-to-end timeout truncation. The first two categories need different fixes, and merging them into one bucket destroys any meaningful attribution.

    2.2 Response Latency: Distinguish End-to-End Latency from Time-to-First-Token

    For conversational products, the metric that most affects perceived experience is time to first token; for batch jobs, it is end-to-end latency. Thinking-mode models show a large gap between the two, because the “thinking” happens before the visible answer begins. An evaluation should record:

    • P50 / P90 / P99 end-to-end latency (do not rely on the mean alone — the long tail is pronounced with thinking models);
    • time to first token;
    • average time per step and average number of steps (to detect whether the model is stuck in verbose reasoning).

    2.3 Token Consumption: Separate Input-Side Amplification from Output-Side Amplification

    Token structure is more complex than for general-purpose models:

    • Output side: the reasoning trace itself generates tokens, which are usually billed and are invisible to the user;
    • Input side: multi-turn tool calls repeatedly feed intermediate results back into the context, so prompt tokens grow roughly quadratically;
    • Cache side: prefix hits — system prompts, long documents — reduce both cost and latency.

    Counting only output tokens will seriously understate cost.

    2.4 Monetary Cost: Normalize to “Cost per 1,000 Calls”

    Vendors define prices differently, so the only cross-vendor comparable measure is the normalized business cost:

    1. cost per call = (avg input tokens × input price + avg output tokens × output price) / 1,000,000
    2. cost per 1,000 calls = cost per call × 1000

    Example (numbers are hypothetical and only illustrate the arithmetic): if the output price is 20 per million tokens and the average output is 6,000 tokens per call, cost per 1,000 calls is about 6,000 × 20 / 1,000 = 120. If thinking mode pushes average output from 2,000 to 6,000 tokens, cost triples — while accuracy may improve by only a few percentage points. This is exactly why cost-effectiveness has to be measured explicitly.

    A composite metric is worth using as a selection criterion:

    1. cost-effectiveness index = accuracy (%) / cost per 1,000 calls

    Pair it with a latency guardrail: the share of requests exceeding an acceptable P90 latency must stay below a defined threshold.

    3. Typical Findings: Thinking Modes Redistribute Capability

    In Chinese-language comprehensive evaluations, thinking mode versus the same-generation base (non-thinking) version typically shows the following pattern. These are general orders of magnitude observed in practice; exact numbers must be re-measured on your own evaluation set.

    • Largest gains in reasoning and mathematics, commonly in double-digit percentage points. The reason is clear: correctness on these tasks depends on explicit intermediate steps, and long-chain reasoning turns “guessing an answer” into “deriving an answer.”
    • A smaller step up for agents and tool use, typically around 10 percentage points. Reasoning can take on task decomposition, tool selection, argument filling, and result verification — precisely the payoff of the “think while using tools” design.
    • Possible regressions in knowledge-intensive domains, usually 5–7 percentage points. In finance, law and public administration, healthcare, and similar areas, answers come mainly from existing knowledge and retrieved evidence, while the model tends to re-derive them. The longer the reasoning chain, the more easily it drifts away from the original evidence and produces inferences that look rigorous but are wrong.
    • Language and instruction following can also regress, by a similar margin. One cause is that a long reasoning trace dilutes attention to format, length, and role constraints: the model “thinks deeply but does not write as instructed.”

    Conclusion: thinking mode is not a universal upgrade switch, but a rebalancing of the capability structure. Selection cannot rely on aggregate rankings alone — you must confirm whether the target scenario falls in the gain zone or the regression zone.

    4. Root-Cause Analysis: How Regressions Are Located

    When a domain score drops, follow these steps instead of immediately tweaking the prompt.

    1. Re-test with fixed variables. Hold temperature, maximum steps, the tool allowlist, and the system prompt constant; run the base and thinking versions and confirm the regression is reproducible.
    2. Compare sample by sample. Pull out the cases “base version correct, thinking version wrong” — this is the most information-dense subset of data.
    3. Inspect traces, not just outputs. Record the tool-call sequence, per-step latency, and the context fed back in, to determine whether the problem lies in planning, retrieval, or expression.
    4. Attribute by failure type. Evidence ignored → adjust retrieval ordering and add constraints requiring evidence citation; over-reasoning → cap the reasoning budget; format mismatch → move format constraints to the end of the final-output prompt and add post-hoc validation.

    5. A Runnable Evaluation Script Skeleton

    Evaluation itself should be engineered, with cost recorded as a first-class output:

    1. import time
    2. def run_eval(dataset, chat, tools, max_steps=8,
    3. price_in=0.0, price_out=0.0):
    4. """chat: wrapped model call; tools: allowed tool set"""
    5. report = []
    6. for item in dataset:
    7. usage = {"prompt": 0, "completion": 0}
    8. steps = []
    9. started = time.perf_counter()
    10. def on_step(name, u): # per-step callback: trace + cumulative usage
    11. steps.append(name)
    12. usage["prompt"] += u.get("prompt", 0)
    13. usage["completion"] += u.get("completion", 0)
    14. try:
    15. answer = chat(item["prompt"], tools=tools,
    16. max_steps=max_steps, on_step=on_step)
    17. passed = check_answer(item["expect"], answer) # correctness + format check
    18. except TimeoutError:
    19. answer, passed = None, False # tag timeouts separately, do not count as "wrong"
    20. cost = (usage["prompt"] * price_in
    21. + usage["completion"] * price_out) / 1_000_000
    22. report.append({
    23. "id": item["id"], "domain": item["domain"],
    24. "passed": passed,
    25. "elapsed": round(time.perf_counter() - started, 2),
    26. "steps": len(steps), "usage": usage,
    27. "cost": round(cost, 6),
    28. })
    29. return summarize(report)
    30. def summarize(report):
    31. """Group by domain: accuracy / P50, P90 latency / average tokens / cost per 1k calls"""
    32. out = {}
    33. for r in report:
    34. d = out.setdefault(r["domain"], {"n": 0, "ok": 0, "cost": 0.0, "lat": []})
    35. d["n"] += 1
    36. d["ok"] += int(r["passed"])
    37. d["cost"] += r["cost"]
    38. d["lat"].append(r["elapsed"])
    39. for domain, d in out.items():
    40. lat = sorted(d["lat"])
    41. print(domain,
    42. "acc=%.1f%%" % (100 * d["ok"] / d["n"]),
    43. "p50=%.1fs" % lat[len(lat) // 2],
    44. "p90=%.1fs" % lat[int(len(lat) * 0.9)],
    45. "cost/1k=%.1f" % (1000 * d["cost"] / d["n"]))
    46. return out

    The key is layered output: aggregate scores are for reporting; per-domain data is what supports decisions.

    6. Seven Engineering Optimizations for Cost and Latency

    1. Tiered model routing. Use intent classification or rule-based pre-judgment: send simple Q&A to a lightweight non-thinking model, and route complex reasoning and tool tasks to thinking mode. This usually delivers the most visible cost reduction.
    2. Reasoning-budget control. Cap maximum reasoning/tool steps and degrade gracefully when the budget is exhausted to “answer from the evidence already gathered,” avoiding runaway tail latency and cost.
    3. Retrieval first (RAG). Let retrieval own the factual source for knowledge-type questions, and instruct in the prompt to “treat retrieved evidence as authoritative; do not re-derive,” which directly offsets regressions in knowledge-intensive domains.
    4. Trim tool results. Summarize, deduplicate, and truncate retrieval and tool returns before feeding them back into context, suppressing quadratic growth on the input side.
    5. Parallelize independent tool calls. Collapse serial multi-step sequences into a single parallel batch, cutting latency at the same time.
    6. Reuse caches. Prefix caching for system prompts and long documents, plus semantic-level result caching, pays off well for highly repetitive Q&A.
    7. Context compression and summarization. In long tasks, use rolling summaries of prior reasoning to retain key information and drop redundancy.

    7. Selection Checklist

    • Is the target scenario reasoning / math / tool-call intensive? Prefer thinking mode; examine per-domain accuracy and step efficiency closely.
    • Is it knowledge retrieval / compliance review / strict-format output? Start with a small-scale A/B test, watch specifically for regressions, and pair it with retrieval plus post-hoc format validation.
    • Latency-sensitive (real-time interaction, voice)? Treat P90 time to first token as a hard constraint; thinking mode may not be suitable.
    • Cost-sensitive (large-scale offline batch)? Decide with the cost-effectiveness index rather than an accuracy ranking, and implement tiered routing first.
    • Must be in place before launch: your own layered evaluation set of at least a few hundred cases, a fixed randomness configuration, complete call-trace retention, and a unified cost definition.

    In cloud deployments, combine evaluation with the surrounding call-path engineering: model services handle inference, object storage holds evaluation sets and trace logs, message queues absorb traffic peaks and support offline batch runs, container platforms carry elastic load testing, and log and monitoring services provide continuous observation of latency, failure rate, and cost. Baidu AI Cloud offers general-purpose model services along with supporting data and monitoring capabilities that cover these stages; confirm capability boundaries and billing details against the official documentation.

    8. Conclusion

    Evaluating a deep-thinking model is ultimately answering a business question: how much accuracy did the extra tokens and time buy back? Evaluation therefore has to weigh all four metrics, report in layered form, use consistent definitions, and treat failure traces as first-class data to be operated on. Make the evaluation set, cost accounting, and tiered routing into routine engineering processes, and you can find the optimal solution for your own scenario between “more capable” and “cheaper to call.”