LLM Token Efficiency: The Underrated Cost Variable

    When teams compare large language models, they usually focus on benchmark scores and price per million tokens. This article explains why token consumption is an equally important cost factor, how to write out the full cost formula including reasoning tokens, and why models with identical benchmark scores can consume very different token volumes. It also outlines a reproducible token efficiency benchmark, practical engineering optimizations such as input compression, output constraints, tiered routing and caching, and a four-dimension selection framework based on capability, token efficiency, cost per successful output and latency stability.

    1. Where the Problem Starts: Lower Unit Prices, but Bills Don’t Drop Proportionally

    In a phase where model capabilities iterate quickly, teams usually look at two metrics when choosing a model: the overall intelligence score and the price per million tokens. After deployment, however, many teams find that the bill deviates from expectations: the option with the clearly lower unit price is only slightly cheaper in end-to-end task cost.

    A typical scenario looks like this. A general-purpose large model consumes about 41K tokens on average to complete a complex task (including the reasoning process and the final output); another model with a significantly larger parameter count consumes only about 25K tokens on the same type of task. The input and output unit prices of the former are about $1.40 and $4.40 per million tokens, while those of the latter are about $3.00 and $15.00. By unit price, the former is more than half cheaper; but converted to a per-task basis, the former costs about $0.68 and the latter about $0.84, narrowing the gap to about 19%.

    The conclusion is not complicated: the token unit price is only one factor in the cost formula, while token consumption is a factor that affects the bill exponentially. Ignoring the latter distorts the selection conclusion.

    2. Writing the Cost Formula Clearly

    The cost of a single task can be abstracted as:

    1. cost per task ≈ (input tokens × input unit price + output tokens × output unit price) / 1,000,000

    Output tokens usually consist of two parts: the model’s internal thinking/reasoning process tokens, and the visible content tokens finally returned to the user. When estimating, many teams count only the visible output and ignore the thinking process, which systematically underestimates cost, with especially obvious deviation on high-difficulty tasks.

    Introducing the concept of “token efficiency” further:

    1. token efficiency = effective information required for a successful task output / total tokens actually consumed

    Lower token efficiency means the model uses more tokens to achieve the same result. In this case, even with a lower unit price, the cost advantage is offset by consumption. A more practical engineering approach is to define cost per unit of effective output:

    1. cost per unit of effective output = cost per task / task pass rate

    This step is critical. If lower token consumption comes at the cost of a lower pass rate, then “cheaper” merely shifts the cost to manual rework and retries.

    3. Why the Same Score Can Mean Different Consumption

    In public comprehensive evaluation systems, different models can have the same total score while reaching it through different paths. Models with smaller parameter counts often rely on more thorough post-training optimization, compressing capability into fewer activated parameters; it is not unusual for such models to match large models on leaderboards. But when post-training reinforces reasoning behavior, the model may develop a tendency that “a longer chain of thought is safer,” and thus output more intermediate tokens during inference.

    This has three engineering implications:

    • The same leaderboard score does not mean the same cost structure. A total score is an aggregated result of capability and cannot reflect the reasoning budget consumed to reach that score.
    • Parameter count and cost are not linearly related. Total parameters, activated parameters per inference, and reasoning token volume together determine the actual overhead; looking at only one of them leads to misjudgment.
    • Capability density and token efficiency are two dimensions. The former determines “whether it can be done correctly,” and the latter determines “how much it costs to do it correctly.” Selection needs to consider both.

    4. Building a Reproducible Token Efficiency Benchmark

    Do not rely on a single leaderboard for decisions. It is recommended to build a small-scale benchmark set on your own business data:

    1. Build the task set: Stratify by real scenarios, such as extraction, rewriting, structured output, multi-step reasoning, and long-document question answering, keeping sufficient samples in each stratum.
    2. Fix the evaluation criteria: Unify sampling parameters such as temperature, unify the maximum output limit, and unify the retry strategy; otherwise token volumes are not comparable.
    3. Record three types of data simultaneously: Input tokens, output tokens (including the thinking part), and whether the task passed (verifiable by rule checks or manual spot checks).
    4. Calculate composite metrics: Look at output token efficiency, cost per unit of effective output, and P95 latency together.

    Illustrative statistics logic:

    1. # Pseudocode: calculate cost per unit of effective output
    2. records = run_benchmark(task_set, model_client)
    3. total_cost = sum(r.input_tokens * p_in + r.output_tokens * p_out
    4. for r in records) / 1_000_000
    5. passed = [r for r in records if r.passed]
    6. cost_per_pass = total_cost / max(len(passed), 1)
    7. avg_out_tokens = sum(r.output_tokens for r in records) / len(records)
    8. print(cost_per_pass, avg_out_tokens)

    5. Practical Engineering Optimizations

    • Compress input: In retrieval-augmented scenarios, control the number of recalled items and fragment length, remove redundant template wording, and summarize conversation history instead of concatenating all of it.
    • Constrain output: Use explicit format constraints and field descriptions for structured results to reduce the model’s tentative output; disable or limit long thinking in non-essential scenarios.
    • Tiered routing: Send simple requests to small-parameter or low-overhead configurations and escalate only complex requests; this is one of the most effective ways to reduce average cost.
    • Caching and reuse: Cache results for high-frequency repeated requests, and run pre-computable parts as offline batch jobs.
    • Observability: Instrument token consumption, pass rate, and cost per task in logging services and monitoring/alerting systems, aggregate by business dimension, and form a cost dashboard, so anomalies are not discovered only at the end of the month.

    6. Selection Recommendations

    Upgrade the evaluation framework from “look at scores and unit prices” to four dimensions: capability score, token efficiency, cost per unit of effective output, and latency stability. In related practices at Baidu AI Cloud, teams are usually advised to first run small-scale comparative validation with their own task sets, then consolidate cost observation with container platform and monitoring/alerting capabilities, and only then scale up. The conclusions obtained this way are closer to the real bill than any single leaderboard.