Evaluating LLM Version Upgrades: Four Metrics and Cost Trade-offs

    A version bump is not a leaderboard game. This article shows how to freeze a comparable evaluation setup, read accuracy, latency, tokens, and cost together, break results down by domain, compare models in the same cost band, and apply routing, budgets, caching, and observability before you move production traffic.

    Version upgrades are not a leaderboard game: lock a comparable frame first

    A model iteration is often sold as a single score change. For enterprise use, the real questions are whether the new version closes business gaps, whether cost per request is affordable, and whether latency still fits the path budget. Switching production traffic on total score alone is a common mistake.

    Evaluation starts by freezing the frame, not by calling the model:

    • Fixed eval set: item count, domain mix, prompt templates, and decoding parameters must be frozen, or cross-version numbers are not comparable.
    • Fixed definitions: accuracy per item, latency as end-to-end per call, tokens as actual usage per call, cost as a per-1,000-calls figure so rows line up.
    • Fixed environment: concurrency, region, and cache settings move latency and billing; record them at the top of the report.

    An anonymized sample: four dimensions at once

    On the same Chinese eval set (~15,000 items), two versions of a general model looked like this (method illustration only; no product names):

    Metric Old New Change
    Accuracy (overall) 68.1% 71.5% +3.4 pp
    Composite rank 16th 5th +11 places
    Avg latency / call 59s 96s ~+63%
    Avg tokens / call 2851 3922 +37.6%
    Cost per 1,000 calls 37.6 yuan 52.5 yuan ~+40%
    Output unit price 14.0 yuan/M tokens 14.0 yuan/M tokens unchanged

    The last row is the point: unit price did not move, the bill rose about 40%. Cost is unit price × actual tokens. A 37.6% token increase usually means longer chain-of-thought or heavier multi-step reasoning—capability bought with tokens.

    Capability mix matters more than the headline score

    Overall +3.4 pp hid large domain differences:

    • Reasoning and math: 66.7% → 72.7% (+6.0), the largest lift, consistent with longer reasoning.
    • Finance: 77.7% → 84.2% (+6.5), numeric and rule-bound work benefited.
    • Healthcare and mental health: 77.6% → 83.6% (+6.0), knowledge-heavy, cautious wording improved.
    • Education: 46.9% → 52.0% (+5.1), still a weak area; the lift may not change usability.
    • Language and instruction following: 64.6% → 69.3% (+4.7), format and constraints improved steadily.
    • Agent and tool use: 69.9% → 68.1% (−1.8), the only drop.

    That last item is operationally important. Stronger reasoning often means “think more, then answer.” Tool use needs an early decision on which tool to call. Thought budget and decision timing trade off. Re-run agent paths after an upgrade; do not inherit the old conclusion.

    Compare in the same cost band, not the same rank

    Ranking by total score is the usual error. A more budget-aligned cut is cost per 1,000 calls. Here the new version at 52.5 yuan sits in the ~50 yuan band, matching another model at 53.5 yuan with the same 71.5% accuracy (ranks 5 and 6), but that peer’s latency is 72s vs 96s.

    At equal capability and cost, latency is the remaining variable. Interactive apps feel it as churn; offline batch jobs barely do. Reports must state scenario weights, or “better” is undefined.

    Four engineering tactics

    1. Layered routing: cheap path for simple requests

    1. def route(prompt: str, meta: dict) -> str:
    2. # High-risk / high-complexity → strong reasoning model; otherwise a lighter one
    3. if meta.get("need_math") or meta.get("need_tool_call"):
    4. return "model_strong"
    5. if len(prompt) < 512 and not meta.get("need_long_context"):
    6. return "model_lite"
    7. return "model_standard"

    2. Budget check before the call: treat token estimates as an admission gate; over-budget requests degrade or queue.

    1. def within_budget(est_tokens: int, price_per_m: float, cap: float) -> bool:
    2. return est_tokens * price_per_m / 1_000_000 <= cap

    3. Cache and batch: semantic cache for deterministic Q&A; merge offline work into batches. That spreads unit cost and can ease latency.

    4. Observability loop: sample accuracy, P95 latency, token distribution, and failure rate into alerts. Keep request samples in logging, eval sets in object storage, so every upgrade can be recomputed against a baseline.

    A generic cloud stack

    Production rarely needs a full custom stack. Typical pieces: containers for inference and scale-out, a message queue for peaks, logging and monitoring for observability, object storage for eval data and regression samples, a model service for multi-version canaries and traffic splits. Baidu AI Cloud has products in these categories that you can assemble. Canary the new version on about 5% of traffic to measure real cost and latency before going 100%.

    Upgrade checklist

    1. Does the overall gain cover the weakest business domain? If the gap does not move, upgrade value is limited.
    2. Is the token increase already converted into bill increase? Over budget, route and cache first.
    3. Does latency fit the interactive path budget? In same-band comparisons it is often the only variable.
    4. Did you re-run agent/tool paths separately? That is the regression most likely hidden by a higher total score.
    5. Do you keep a rollback path to the old version and a frozen eval set?

    In one line: an upgrade trades tokens and latency for capability. The end of evaluation is not rank; it is whether that trade is worth it in your scenario and budget.