LLM Version Upgrade Evaluation Methodology: How to Measure Accuracy, Latency, Token Usage, and Cost
This article breaks down a practical evaluation methodology for comparing large language model versions beyond benchmark scores. It explains why accuracy alone is misleading, defines four coupled metrics (accuracy, response latency, token usage, and cost per 1,000 calls), and shows how to collect them reproducibly. Using an illustrative upgrade case, it interprets domain-level gains and regressions, decomposes why bills rise even when per-token pricing stays flat, and introduces cost- and experience-efficiency indices for same-tier comparisons. It closes with guidance on building a continuous evaluation pipeline with regression gates and drift alerts.
1. Why Version Upgrades Cannot Be Judged by Benchmarks Alone
As large language models iterate quickly, a common mistake is treating a single accuracy metric as the only criterion for version quality. In real engineering deployments, the true cost of one call is determined jointly by four dimensions: whether the answer is correct (accuracy), how long the user waits (response latency), how much context and generation length is consumed (token usage), and the cost per 1,000 calls. These four quantities are not independent; they are strongly coupled through the model’s inference strategy.
The original evaluation shows a typical pattern: a new version of a general-purpose LLM improved accuracy on a Chinese综合 evaluation set from 68.1% to 71.5%, an absolute gain of 3.4 percentage points, and climbed from 16th to 5th place. However, average latency per call rose from 59 seconds to 96 seconds (about +63%), average token consumption per call increased from 2,851 to 3,922 (about +37.6%), and with the output price unchanged, the measured cost per 1,000 calls went from CNY 37.6 to CNY 52.5 (about +40%).
The value of this data is not the specific numbers but the general rule it reveals: when a model introduces longer chains of thought, more rounds of internal reasoning, or more thorough self-checking, accuracy and overhead rise together. Therefore, the first principle of evaluation is to read metrics as a group, not as a single point.
2. Evaluation Framework: Defining and Collecting the Four Metrics
To obtain reproducible conclusions, the evaluation plan must fix variables first. A recommended structure:
- Evaluation set: Cover multiple capability domains (reasoning and math, language and instruction following, Agent and tool calling, etc.). The sample size must be statistically meaningful (tens of thousands of samples can suppress random fluctuation to a low level).
- Accuracy: Use standard-answer matching or rule-based scoring; for the same version, keep the scoring script and prompt template fixed.
- Response latency: Record end-to-end wall-clock time, including queuing, first token, and full generation; concurrency must be stated, otherwise the data is not comparable.
- Token usage: Distinguish input, output, and reasoning-process consumption; the output side is usually the main cost driver.
- Unit cost: Expressed as “CNY per 1,000 calls,” which is closer to business budgets than per-token price.
Illustrative evaluation collection logic (pseudocode):
def run_eval(model, dataset, prompt_template, concurrency=1):records = []for case in dataset:t0 = time.monotonic()resp = model.call(prompt_template.render(case))latency = time.monotonic() - t0records.append({"correct": judge(resp, case.gold),"latency": latency,"tokens": resp.usage.total_tokens,"cost": resp.usage.output_tokens * OUTPUT_PRICE_PER_M})return summarize(records) # accuracy / avg latency / avg tokens / cost per 1k
3. Interpreting Results: Domain-Level Changes Are More Informative Than the Total Score
The total score only answers “better or worse”; domain-level data is what guides selection. The domain conclusions of the evaluation above abstract into three patterns:
- Strong-gain domains: Reasoning and math rose from 66.7% to 72.7% (+6.0 percentage points), showing the new version benefits most on tasks requiring multi-step derivation.
- Medium-gain domains: Language and instruction following rose from 64.6% to 69.3% (+4.7 percentage points), with more stable format compliance and complex instruction parsing.
- Regression domain: Agent and tool calling fell from 69.9% to 68.1% (-1.8 percentage points), the only capability domain that regressed.
The regression domain deserves the most caution. Tool-calling tasks are extremely sensitive to latency, and the new version’s longer internal reasoning directly amplifies end-to-end wait time and squeezes the context budget. This signals to architects: after upgrading a model, you must regression-test the tool-calling chain, including function-selection accuracy, parameter completeness, and timeout rate, rather than assuming “a higher total score means improvement across the whole chain.”
4. Cost Structure Breakdown: Why the Bill Rises 40% When Unit Price Is Unchanged
Many teams only look at “price per million tokens” during budget reviews, ignoring that the real bill is determined by usage. Let the output price be P (CNY per million tokens) and the average output tokens per call be T; then the cost per 1,000 calls is approximately:
cost_per_1k ≈ P × T × 1000 / 1,000,000
When P is fixed and T rises from 2,851 to 3,922, cost necessarily rises proportionally by about 37.6%; adding input-side and retry overhead, a measured increase of about 40% is entirely reasonable. Engineering countermeasures include: compressing redundant prompts, setting a maximum generation limit for long reasoning, routing high-difficulty requests to the stronger reasoning version, and using smaller models or cached results for deterministic tasks.
5. Same-Tier Horizontal Comparison: Turning “Cost-Effectiveness” into a Computable Quantity
The practical value of evaluation shows in same-tier comparisons. In the data above, the new version falls into the “CNY 50 tier” at a cost of CNY 52.5 per 1,000 calls, ties another general-purpose model in the same tier (CNY 53.5) on accuracy (both 71.5%), but has longer latency (96 seconds vs. 72 seconds). This shows that when accuracy is tied, latency becomes the deciding metric.
Two composite metrics are recommended to support decisions:
- Cost-effectiveness index = accuracy / cost per 1,000 calls;
- Experience index = accuracy / average latency.
Combining the two avoids the selection trap of “high score but unusable.” For offline batch processing, prioritize cost-effectiveness; for online interaction and Agent orchestration, prioritize the experience index.
6. Implementation Advice: Build a Continuous Evaluation Pipeline
Embed evaluation into continuous integration so that model or prompt changes automatically trigger regression, output trend curves for the four metrics, and set threshold alerts (for example, block release if accuracy drops by more than 1 percentage point or latency rises by more than 20%). In cloud implementations, you can combine container platforms to host evaluation jobs, object storage to save datasets and results, message queues to smooth peaks, and logging and monitoring services to track metric drift; if model serving is involved, Baidu AI Cloud related product categories can serve as a general capability reference. The core conclusion: the benefits of a version upgrade must be accounted for with the four-dimensional ledger of “accuracy–latency–token–cost,” and only achieving the best accuracy within a business-acceptable latency and budget range is a truly deployable upgrade.
