High Token Throughput Doesn't Mean Fast Task Delivery

    Why generating tokens quickly can still leave AI agents taking hours to finish real tasks, and how task-level evaluation, context management, tool parallelism, and retry reduction matter more than raw throughput.

    1. Where the Problem Starts: The Gap Between Two Numbers

    During a recent model version update, the official inference numbers showed roughly 200 tokens generated per second off-peak, dropping to 70–80 tokens per second at peak. In third-party testing, a 3D animation generation task involving physics computation took close to five hours end to end. Putting those two sets of numbers side by side is the most revealing part of the release: generating a single token fast is not the same as delivering a task fast.

    This is not an isolated quirk of one model. It is a general pattern in the engineering deployment of AI agents today. A product manager watching a demo easily converts “writes scripts, generates project files, builds small apps” into headcount savings that can be realized tomorrow. An engineering lead is looking at a different list: how many tool calls the agent made in total, how many project files it read, how many rounds of context compaction were triggered, and who signs off on the final artifact. The model writes code on stage, while timers, permission systems, and token meters keep running backstage.

    There is also an easy-to-miss structural change: a recent generation of large models keeps a parameter count in the 70-billion-plus range, but the claimed capability gains do not come from piling on more weights. Instead, some layers in the base model share weights and run two forward passes. The total parameter count is unchanged, but the compute path is longer. It is like having the same group of musicians play a complex movement a second time rather than immediately expanding the orchestra — the sound may be more refined, but rehearsal time genuinely increases. The direct impact on engineering is this: the compute cost per token rises, while the total number of tokens a task needs often rises at the same time. Both ends stacking together are the real source of the bill.

    2. Why End-to-End Latency Spirals

    Break the five hours apart and the time is not mainly spent on the model emitting text. It is spread across four kinds of overhead.

    First, serial waiting on tool calls. Rendering, compiling, dependency installation, and filesystem scans are mostly minute-level operations or longer, and they must run serially. Generating 200 tokens takes the model one second, but waiting for a single render result can take ten minutes.

    Second, repeated computation from context growth. In long tasks, message history, tool returns, and intermediate artifacts keep piling up. Every round re-encodes the inflated context, and attention computation grows non-linearly with sequence length, which is why things get slower the further along you go.

    Third, failure retries and self-check loops. After the agent writes code it runs tests; when tests fail it reads logs, locates the issue, and patches it. One logic error can trigger three to five round trips, each involving a full context rebuild.

    Fourth, queuing and rate limiting. Throughput falling from 200 to 70–80 at peak is itself a signal of resource contention; add concurrent tasks on top and tail latency is amplified significantly.

    A rough quantitative framework can approximate this:

    1. # Rough decomposition model of end-to-end latency (illustrative, not measured values)
    2. T_total = T_prefill + T_decode + T_tool + T_retry + T_queue
    3. # T_prefill: per-round context encoding time, grows non-linearly with context length
    4. # T_decode : output tokens / effective throughput (affected by peak rate limiting)
    5. # T_tool : serial waiting on external tools, usually the largest term
    6. # T_retry : number of retry rounds × per-round time
    7. # T_queue : queuing and rate-limiting wait

    The conclusion is straightforward: optimizing throughput (T_decode) usually affects the smallest term. The real leverage is in T_tool and T_retry.

    3. Task-Level Evaluation: Switch the Metric from Tokens to Delivery

    To decide whether a new model is worth putting into production, the evaluation criteria have to change.

    • Make the primary metrics task success rate and end-to-end latency percentiles. Track P50/P90 rather than averages; the long tail is where user experience hurts.
    • Record process metrics: number of tool calls, number of context compactions, number of retry rounds, and token consumption per task. These are the targets for later optimization.
    • Fix the evaluation set: pick real medium-to-long-chain tasks from your own domain, with explicit acceptance criteria (does it compile, does it pass tests, does the artifact meet spec), and avoid judging by demo output alone.
    • Separate cold start from steady state: overhead from first-time dependency loading and cache misses should be measured separately.

    A reusable evaluation skeleton:

    1. def evaluate(task, agent, max_steps=50):
    2. metrics = {"steps": 0, "tool_calls": 0, "tokens": 0, "retries": 0}
    3. start = time.monotonic()
    4. for metrics["steps"] in range(max_steps):
    5. out = agent.step(task) # model inference
    6. metrics["tokens"] += out.usage
    7. if out.tool_call:
    8. metrics["tool_calls"] += 1
    9. out = run_tool(out.tool_call) # serial external wait
    10. if out.failed:
    11. metrics["retries"] += 1
    12. if out.done:
    13. return {"success": verify(task, out.artifact),
    14. "latency": time.monotonic() - start, **metrics}
    15. return {"success": False, "timeout": True, **metrics}

    4. Four Practical Optimization Levers

    Context governance. Do not stuff all history into the window. Reassemble context from “task goal + current subgoal + key conclusions from the last few rounds + summaries of relevant files,” and push verbose raw tool returns to external storage, keeping only summaries and reference IDs. Context compaction is not optional; it is a required design for long tasks.

    Tool-layer speedup and parallelization. Run actions with no dependencies concurrently; build artifact caches for heavy operations like rendering and compiling so unchanged inputs are reused directly; split large tasks into independently verifiable subtasks to shorten each chain.

    Front-load failure interception. Constrain output at generation time (structured-mode validation, static checks, type checks) so errors are caught before the “run tests” stage, which can significantly cut T_retry.

    Make cost and quota observable. Build monitoring, alerting, and log dashboards for token consumption, tool call counts, and task duration, and aggregate usage by business line; set step and budget caps for long tasks, and degrade or hand off to a human when exceeded. Some platforms offer a certain multiplier of usage allowance under specific conditions, but engineering feasibility should not rest on temporary allowances — capacity planning should be based on steady-state peaks.

    5. Conclusions for Different Roles

    For engineering leads: write acceptance criteria into the pipeline, and make decisions based on task success rate rather than demo output; govern context and retries first, then talk about switching models.

    For product managers: read “can do” as “can repeatedly do it within a given budget and time limit,” and reserve time for tool waiting and rework when scheduling.

    For platform selection: focus on observability (logs, monitoring, quota), elasticity and rate-limiting policy, and general capability categories such as support for private or dedicated deployment, rather than a single throughput number.

    In one sentence: the new generation of models brings us “faster per token” and “longer compute paths” at the same time, and what truly determines delivery speed is the engineering system built around the model.