Why LLM Throughput and Long-Running Task Latency Tell Different Stories
This article explains why high token throughput and multi-hour agentic task latency measure fundamentally different things, and why the gap is normal rather than a sign of overstated performance. It breaks task time into planning, tool calls, I/O, retries, context compression, and human review; contrasts weight-scaling upgrades with shared-weight multi-pass computation; and details the four mechanisms that amplify latency in agentic workflows. It also covers the observability metrics worth collecting, with sample stage-level telemetry, plus engineering practices such as task decomposition, parallelizing independent steps, context governance, caching, tiered routing, and upfront acceptance criteria, and closes with guidance on setting expectations with management.
1. The Phenomenon: Single-Token Speed Is Not Task Delivery Speed
After a model version update, the official messaging usually cites two kinds of performance figures: a high number of tokens generated per second off-peak, and a noticeably lower number during peak hours. Meanwhile, third-party testing of a composite task involving physics computation and 3D animation generation can show end-to-end times of several hours. Placing these two sets of numbers side by side does not lead to the conclusion that performance is overstated. It leads to the conclusion that the two metrics measure entirely different things.
- The throughput metric measures the instantaneous rate of the decoding stage, typically sampled over a window of a few hundred milliseconds to a few seconds.
- Task duration measures the entire process from requirement input to artifact acceptance, including planning, tool invocation, file reads and writes, failure retries, and human confirmation.
A rough decomposition helps build intuition:
T_task ≈ T_plan+ Σ (T_tool_i + T_io_i + T_retry_i)+ T_ctx_compress+ T_human_review
Only the generation stage is directly related to throughput; the remaining terms often account for most of the time. When tool invocations number in the dozens and each one involves reading engineering files and writing results back, I/O and queueing time quickly exceed generation time.
2. Key Architectural Variable: Separating Parameter Count from Compute Path
This update also reflects a notable technical choice: the total parameter count stays at a fairly large scale, and the capability gain does not come from stacking more weights. Instead, some layers in the base model share weights and execute two forward passes. The total parameter count is unchanged, but the effective compute path is longer.
This design contrasts with the traditional “scale-up” upgrade:
| Dimension | Scaling weights | Shared weights, multiple passes |
|---|---|---|
| Parameter count | Increases | Roughly unchanged |
| Compute per forward pass | Increases | Increases |
| GPU memory usage | Rises significantly | Relatively manageable |
| Inference latency | Increases | Increases |
| Deployment and loading cost | Higher | Lower |
The implication for engineering teams is clear: memory and loading pressure are eased, but the compute time per request is not reduced. If the business side expects “faster,” capacity planning is likely to be off. Capacity assessment should look at three quantities at once: average latency per request, the concurrency ceiling, and queue length during peak hours.
3. Why Agentic Scenarios Amplify Latency
General-purpose coding tasks have already pushed model capability beyond the software department; marketing, legal, finance, and process engineering teams are also using AI coding tools to produce structured output. Latency amplification in these tasks comes from four mechanisms:
- Serialized tool calls. Retrieval, compilation, testing, and rendering often have dependencies and cannot be fully parallelized.
- Context compression. Once historical context in a long task exceeds the window, it must be summarized and rewritten, and every compression round is an extra generation.
- Failure retries. When artifact validation fails, it triggers rollback and rework, and cost grows non-linearly.
- Permissions and auditing. In enterprise environments, every external action must pass authentication and be logged, adding fixed overhead.
As a result, when task complexity increases, duration usually grows faster than token count. Scheduling should be estimated in units of tasks, not tokens.
4. Observability: Opening the Black-Box Timer
Managing long-running tasks starts with filling in the observability gaps. At minimum, collect the following metrics and consolidate them into a shared logging service with monitoring and alerting:
- Stage duration: time planning, tool calls, generation, validation, and human confirmation separately.
- Invocation counts and failure rates: grouped by tool type.
- Context compression counts and token counts before and after compression.
- Artifact acceptance results: first-pass rate and number of rework rounds.
A sample instrumentation structure:
{"task_id": "t-20240101-001","stage": "tool_call","tool": "file_reader","duration_ms": 1840,"retry": 0,"tokens_in": 12000,"tokens_out": 800}
With stage-level data, you can tell whether the bottleneck is in generation, I/O, or the human step, and avoid attributing overall slowness to model speed.
5. Engineering Practices
- Decompose tasks and deliver incrementally. Split long tasks into subtasks that can be accepted independently, each with its own artifact and deadline, reducing the risk of one long wait.
- Parallelize independent steps. Run retrieval, static checks, and unit tests that have no ordering dependency concurrently, and use a message queue to smooth out peaks.
- Govern context. Put long documents and engineering files in object storage and retrieve the needed fragments on demand instead of injecting everything; produce structured summaries of prior conversation.
- Cache and reuse. Build cache keys for repeated intermediate artifacts to avoid regenerating the same compilation or render output.
- Tiered routing. Send simple requests down a low-latency path and complex requests into a long-task queue so they do not compete for the same resources.
- Move acceptance upfront. Define acceptance criteria and owners before the task starts to reduce end-stage rework.
6. Managing Expectations with Leadership
The gap between demo results and delivery cadence is fundamentally a communication problem. When making external commitments, use ranges rather than single-point numbers, and state the influencing factors explicitly: task complexity, number of tools, concurrent time windows, and strictness of acceptance. If the enterprise runs inference services on a container platform, pair them with an elastic scaling policy to handle peak queueing; if it uses a cloud provider’s general-purpose model service, confirm the rate-limiting policy and quota ceiling first, then define a degradation plan for business peaks on that basis.
7. Summary
High throughput and long task duration coexisting is the norm in current LLM engineering, not an anomaly. Shared-weight multi-pass computation raises capability density while lengthening the compute path, and agentic chains make the time cost outside generation explicit. The practical takeaways for developers: model duration in units of tasks, locate bottlenecks with stage-level instrumentation, compress cycles through decomposition and parallelism, and control rework with clear acceptance criteria. Baidu AI Cloud’s general practices in model services and observability can also serve as a reference framework for teams building their own evaluation and scheduling systems.
