Why AI Agents Are Still Slow After LLM Inference Speedups
This article explains why faster token generation does not translate into faster AI agent task delivery. It breaks end-to-end latency into four stages—planning and decoding, tool execution, context packing, and rework—and shows why inference improvements often yield only single-digit gains. It also covers the trade-offs of shared-weight execution paths, the limits of treating coding as a universal interface, and a practical checklist for segment-level timing, context control, tool orchestration, least-privilege access, canary regression testing, and observability.
1. Introduction: Fast Token Generation Is Not Fast Task Delivery
After a model version update ships, the official announcement usually features impressive numbers: generation speed of roughly 200 tokens per second off-peak, dropping to 70–80 tokens per second at peak. Meanwhile, a third-party benchmark of a 3D animation task involving physics computation took about five hours. Put side by side, these two figures capture the most interesting part of the update: generating a single token is fast, but delivering a full task is slow.
This is not a contradiction. The two numbers measure different layers. The first measures throughput during the decoding stage; the second measures end-to-end workflow completion time. The most common planning mistake is to convert the capabilities shown in a demo video—writing scripts, generating 3D scenes, building small interactive programs—directly into labor savings that can be realized tomorrow. Engineering leads face a different checklist: how many tools the agent will call, how many project files it will read, how many rounds of context compression it will trigger, and who will sign off on the final output. While the model writes code in the foreground, timers, permission systems, and token meters keep running in the background.
2. Where the Time Actually Goes
To understand the five hours, start by decomposing task time. A typical agent task has four cost segments:
- Planning and reasoning: the model decides what to do next. This is decode-intensive and depends on output length and concurrency.
- Tool calls and external execution: compiling, rendering, running tests, reading and writing project files. This is waiting overhead and is almost unrelated to model speed.
- Context assembly and compression: stuffing long documents, logs, and intermediate artifacts back into the context, triggering multiple rounds of summarization and reordering.
- Acceptance and rework: the output fails to meet requirements, so the workflow returns to the planning stage. This segment is the most commonly underestimated.
An illustrative timing breakdown can be organized like this:
# Illustrative only: split end-to-end time into four observable segmentstimings = {"plan_and_decode": 420, # seconds, model inference"tool_exec": 15600, # seconds, rendering/compiling/testing waits"context_pack": 900, # seconds, context assembly and compression"rework": 1080, # seconds, rework rounds}total = sum(timings.values())for k, v in timings.items():print(f"{k}: {v/total:.1%}")
The conclusion is straightforward: doubling decoding speed may improve total time by only a single-digit percentage. What really determines delivery pace is waiting on tool execution, context management strategy, and rework rate.
3. Same Parameter Count, Longer Compute Path: The Gains and Costs of Shared Weights
The update has another unusual aspect. The model sits in the 70-billion-plus parameter range, and the official capability gains do not come from adding more weights. Instead, several layers in the base model share weights and execute two passes. Total parameters stay the same; the compute path gets longer.
An analogy: rather than immediately expanding the orchestra, the same group of musicians plays a complex movement a second time. The listening experience may be more refined, but rehearsal time genuinely increases. There are three engineering implications:
- The compute cost per unit of output quality rises, and long-output scenarios become more sensitive to throughput.
- The benefit of shared weights shows up in tasks that require multi-step constraint satisfaction, such as scene generation that must satisfy structure, materials, and physics conditions at the same time.
- Peak-hour queuing combined with the longer path amplifies tail latency, so interactive products need more aggressive streaming responses and timeout policies.
So when evaluating a new version, do not just look at whether it is “smarter.” Look at the time and cost per unit of effective output on your own task distribution.
4. The Coding Spillover: Code as a Universal Wrench for the Digital World
Video, 3D scenes, and mechanical design are increasingly framed as coding tasks, and code appears to be the universal interface for a model to operate the digital world. The trend is real: anything that can be described structurally and verified automatically is a good fit for a loop of code generation plus programmatic verification.
But a wrench can turn a bolt without knowing which bolt is critical to flight safety. Three different things need to be separated:
- Tool-calling capability: whether the agent can correctly select and chain external tools.
- Domain constraints: whether it understands industry standards, safety boundaries, and tolerance requirements.
- Delivery accountability: who is responsible when an artifact is wrong, and how issues are traced.
A practical engineering approach is to move verification earlier: replace subjective “looks right” judgments with executable rules, unit tests, and geometry and physics constraint checks.
generate -> static checks -> unit/constraint validation -> human spot check -> archive and trace
5. A Post-Launch Checklist
- Set up segment-level timing: instrument inference, tools, context, and rework separately, and avoid making decisions from a single metric.
- Control context: apply layered summarization to long documents, keep key constraints, and discard redundant intermediate artifacts.
- Orchestrate tool calls: run parallelizable validation in parallel, make long tasks asynchronous, and set timeout and retry limits.
- Permissions and metering: grant least privilege, and bill per task rather than per call to make cost accounting easier.
- Canary and regression: compare versions with a fixed task set, and focus on effective output rate rather than demo quality.
- Observability: extend logs, monitoring alerts, and tracing to the tool layer to locate waiting-type bottlenecks.
6. Conclusion
The real change from a new version launch is that both the capability boundary and the compute path shift at the same time. For developers, the rational move is to translate “the model is faster” into “the workflow is shorter”: cut useless context, parallelize external execution, and write acceptance criteria as executable checks. Do that, and a five-hour task may become a one-hour task. Fail to do it, and faster decoding just makes the timer run more busily.
