How to Evaluate LLM Model Iterations: Lessons from GLM-4.7

    A practical guide to evaluating large language model upgrades beyond a single benchmark score. Using a GLM-4.7 iteration as a case study, it shows how to track accuracy, latency, token usage, and cost together, break results down by domain, compare models within the same cost tier under latency constraints, and apply four levers to control rising token consumption and spend.

    1. Why a Model Upgrade Should Not Be Judged by a Single Overall Score

    After a new version is released, the most common way to judge it is to check whether the overall score went up. But an overall score is a highly compressed statistic: it folds dozens of capability dimensions, thousands of test questions, and inputs and outputs of different lengths into a single percentage, which naturally hides structural changes. Conclusions with real engineering value come from observing four dimensions together: effectiveness (accuracy), latency (time per call), resource consumption (token usage), and cost (spend per thousand calls).

    The data from the original evaluation sample illustrates exactly this point. The new version achieved 71.5% accuracy across roughly 15,000 questions, up 3.4 percentage points from 68.1% in the previous version, and its overall ranking jumped from 16th to 5th. However, average time per call rose from 59 seconds to 96 seconds (about +63%), average tokens increased from 2,851 to 3,922 (+37.6%), and the measured cost per thousand calls climbed from CNY 37.6 to CNY 52.5 (about +40%), while the output unit price stayed unchanged at CNY 14.0 per million tokens.

    Putting these numbers together yields a general rule: when the unit price stays the same but total spend rises, the cost increase comes almost entirely from token usage inflation, not from a change in billing rules. This usually means the model has introduced longer internal reasoning chains and more self-checking and backtracking steps. For users, this is a signal that must be hedged at the architecture level, not a conclusion that can be waved off with “the model is just stronger.”

    2. The Four Pillars of the Evaluation Framework and Metric Definitions

    To make evaluation conclusions reproducible, define the metrics precisely first, so the measurement criteria do not drift between rounds.

    • Accuracy: correct answers / total questions. The question set version, random seed, and scoring rules must be fixed (exact match or model-based judging must be consistent).
    • Average latency: end-to-end wall-clock time, including queuing, time to first token, and full output generation, rather than the inference stage alone.
    • Average tokens: the sum of input and output tokens, distinguishing between the “billing” measure and the “context occupancy” measure.
    • Measured cost: prefer calculating spend per thousand calls from actual billing data, rather than estimating from unit price multiplied by theoretical tokens.

    A schematic main evaluation loop can be written as follows. The key is to record all four metric types together in the same call:

    1. def run_one(case, client):
    2. t0 = time.perf_counter()
    3. resp = client.chat(model=MODEL, messages=case.messages)
    4. elapsed = time.perf_counter() - t0
    5. usage = resp.usage # prompt_tokens / completion_tokens
    6. total_tokens = usage.prompt_tokens + usage.completion_tokens
    7. return {
    8. "case_id": case.id,
    9. "domain": case.domain,
    10. "correct": judge(case, resp.text),
    11. "elapsed": elapsed,
    12. "tokens": total_tokens,
    13. "cost": total_tokens / 1_000_000 * PRICE_PER_M,
    14. }

    3. Breaking Down by Domain: The Structural Trade-offs Behind a Rising Overall Score

    Breaking the 71.5% down into individual domains reveals far more information than the overall score:

    • Reasoning and math: 66.7% → 72.7% (+6.0)
    • Finance: 77.7% → 84.2% (+6.5)
    • Healthcare and mental health: 77.6% → 83.6% (+6.0)
    • Education: 46.9% → 52.0% (+5.1)
    • Language and instruction following: 64.6% → 69.3% (+4.7)
    • Agent and tool calling: 69.9% → 68.1% (-1.8, the only decline)

    This data supports two actionable judgments. First, the gains are concentrated in scenarios that require multi-step reasoning and domain knowledge, indicating the upgrade’s resources went mainly into reasoning depth. Second, the slight pullback in tool calling is a typical trade-off signature: when the model spends more of its budget on internal thinking, relatively less attention goes to format constraints, parameter assembly, and multi-turn tool orchestration.

    The engineering response is not to complain but to layer the system: place the strong reasoning model at the “planning and decision-making” node and lightweight models at the “parameter filling and formatted output” nodes, using constrained decoding or structured output validation to safeguard tool-calling success rates. A low-scoring domain like education (52.0%) shows that no matter how high the overall score is, it cannot replace scenario-specific fine-tuning and prompt engineering.

    4. How to Compare Models Correctly: Same Cost Tier Plus a Latency Constraint

    The most common mistake in cross-model comparison is comparing accuracy across models at different price points. A more sound approach is to build a cost-tier matrix: first group candidate models by measured cost per thousand calls, then compare accuracy within the same tier, and finally introduce latency as a third yardstick.

    In the CNY 50 tier, the tested new version met head-on with another model at a similar price (CNY 53.5): both had the same 71.5% accuracy, but the latter responded faster (72 seconds vs. 96 seconds). The conclusion is clear: same score, different speed—choose the latter for real-time pipelines and the former for offline batch processing. If the workload is document batch processing or offline report generation, where throughput matters most, the 96-second latency can be masked by concurrency; for interactive question answering, a 25-second gap directly determines the experience.

    It is worth emphasizing that this evaluation is based mainly on Chinese-language scenarios, and the conclusions cannot be extrapolated unconditionally to other languages and domains. When selecting a model, re-test against your own business question set.

    5. Four Levers for Cost Optimization

    Faced with the reality of +37.6% tokens and +40% cost, there are four places to start:

    1. Prompt compression: remove redundant context and merge duplicate examples; input tokens are often more controllable than output tokens.
    2. Tiered routing: send simple requests to lightweight models and escalate only complex ones; in practice this usually cuts more than half of the call volume.
    3. Cache reuse: build a semantic cache for high-frequency repeated questions, where a hit means zero inference cost.
    4. Output constraints: cap maximum output length and enforce structured formats to suppress uncontrolled expansion.

    When deploying in the cloud, container platforms can host the evaluation and inference services, object storage can hold question sets and results, message queues can smooth out batch-processing peaks, and logging and monitoring with alerting can track latency and failure rates. The general capabilities of Baidu AI Cloud can serve as one such foundation.

    6. Conclusion

    The lessons from this iteration can be condensed into three sentences: the 3.4-percentage-point accuracy gain is the result, the simultaneous rise in tokens and latency is the cost, and the slight pullback in Agent capability is the trade-off. Only by building an evaluation system with four-dimensional metrics, domain-level breakdowns, and same-cost-tier comparison can you make reproducible model-selection decisions amid rapid model iteration, rather than being led by a single leaderboard ranking.