Why Do AI Tasks Still Take Hours When LLMs Generate Tokens So Quickly? A Deep Dive into Inference Performance and Agent Engineering

    High token throughput does not necessarily mean fast task completion. This article examines why complex AI agent workflows can take hours despite inference speeds of 70–200 tokens per second, covering shared-weight Transformer architectures, tool calls, context compaction, verification loops, retries, and the engineering practices needed to measure and optimize end-to-end task performance.

    1. The Contradiction Between 200 Tokens per Second and Five-Hour Tasks

    A recently released large model reported peak inference speeds of approximately 200 tokens per second during off-peak periods, while maintaining 70–80 tokens per second during peak usage. Yet in a public test, a 3D animation task involving physics calculations took roughly five hours.

    These figures illustrate one of the most important realities of deploying large models:

    Generating an individual token quickly does not mean delivering a complete task quickly.

    This gap has a direct impact on enterprise planning. After watching a model write video scripts, generate CAD models, or build games, product managers may be tempted to translate those capabilities directly into reduced labor costs. Engineering teams, however, must answer a different set of questions:

    • How many tools will the agent need to call?
    • How many project files must it read, and will the context window be large enough?
    • How many rounds of context compaction will be triggered?
    • Who will validate the final output, and how will failures be rolled back?

    While the model writes code in the foreground, timers, permission systems, and token meters continue running in the background. Understanding this hidden bill is a prerequisite for using large models effectively in production.

    2. An Architectural Perspective: What Repeated Weight Execution Means

    Another notable technical detail in the release was the model’s architecture. Although it contains hundreds of billions of parameters, the claimed capability improvement was not primarily achieved by adding more parameters. Instead, approximately 28 layers in the base model execute with shared weights for two rounds. The parameter count remains unchanged, but the computational path becomes longer.

    This approach is commonly associated with weight sharing or a Loop Transformer architecture. One useful analogy is:

    It is like having the same group of musicians perform a complex passage twice instead of immediately expanding the orchestra. The performance may become more refined, but rehearsal and execution time also increase in real terms.

    From an engineering perspective, this design involves three clear trade-offs.

    1. Lower memory requirements.
    Shared weights allow similar representational capacity to be implemented with fewer stored parameters. This can reduce inference-side memory consumption and make model distribution more efficient. This is the part that saves resources.

    2. Higher per-step compute cost.
    Each generated token must pass through the shared layers twice. The effective depth increases, and inference latency rises accordingly. In other words, some of the cost is shifted from storage to computation.

    3. Potential quality gains.
    A deeper effective computation path may improve reasoning performance on tasks involving complex logic. However, this benefit must be confirmed through benchmarks rather than inferred solely from the architecture.

    Models built this way should therefore not be evaluated only using the traditional relationship between parameter count and capability. A more useful framework considers effective compute, per-token latency, and task quality together.

    3. Why Task-Level Latency Far Exceeds Token-Level Speed

    Assume a model generates 100 tokens per second. Over five hours, it could theoretically produce 1.8 million tokens—far beyond the capacity of any single context window.

    This shows that raw generation accounts for only part of the total runtime. The main sources of delay usually include the following.

    1. Multiple Tool Calls

    A complex task is often divided into dozens or even hundreds of substeps. Each step may involve the following loop:

    Model reasoning → tool invocation → waiting for the result → writing the result back into context

    The tools themselves may take minutes to render, compile, or run a physics simulation. During that time, the model may simply be waiting.

    2. Context Compaction and Replanning

    As conversation history and project files approach the context-window limit, the system must compact the context. This may involve summarizing prior interactions, removing redundant information, and preserving critical state.

    Each compaction operation consumes additional generation resources. It may also discard details that later prove important, leading to retries and creating an indirect time multiplier.

    3. Self-Validation and Error Recovery

    High-quality output often depends on a generate–validate–correct loop. For example, after generating a 3D scene, the system may need to run a physics engine to check collisions and stability. If validation fails, the agent must revise or rebuild the result.

    These iterations improve quality, but they are also a major source of total runtime.

    A simplified task-latency model can be written as:

    1. T_total ≈ N_rounds × (T_think + T_tool + T_verify) + N_compact × T_compress + N_retry × T_round_avg

    Each term is largely independent of token generation speed. This is why 200 tokens per second and a five-hour task can coexist without contradiction.

    4. General-Purpose Coding: Code as the Universal Interface to the Digital World

    The public test also points to a broader trend: video production, 3D environments, mechanical design, and other specialized fields are increasingly being framed as coding tasks.

    Instead of requiring a dedicated model component for every domain, an agent can write and execute code to operate the tools in that domain. Code is becoming a general-purpose interface for models interacting with the digital world.

    However, three boundaries must remain clear:

    • Tool-use capability: Can the model assemble API calls correctly and handle parameters and exceptions? This capability is becoming relatively mature.
    • Domain constraints: Hard constraints from specialized fields—such as structural safety factors or manufacturing tolerances—cannot simply be inferred from general-purpose training data. They require domain knowledge bases or specialized engines as safeguards.
    • Delivery responsibility: If the final artifact contains an error, responsibility still belongs to the organization using the system, not to the model.

    A wrench can tighten a bolt, but it does not know which bolt is critical to flight safety. When organizations adopt general-purpose coding workflows, acceptance criteria, audit logs, and human review must remain part of the process.

    5. Evaluation and Deployment Recommendations for Engineering Teams

    The following practices provide a practical framework for evaluating and deploying agent-based workflows.

    1. Build task-level benchmarks instead of token-level benchmarks.
    Measure real business tasks end to end—for example, generating a compilable module from a requirements document and passing its test suite. Record the number of rounds, tool calls, and context-compaction events to establish an internal baseline.

    2. Separate interactive workloads from batch workloads.
    For latency-sensitive interactive applications, prioritize time to first token and peak-period throughput. For batch jobs that can tolerate hour-scale execution times, focus more on success rate and human intervention rate, and schedule them during lower-cost periods when possible.

    3. Use sandboxes and permission boundaries.
    Agent-generated code should run in isolated containers. File-system access, network access, and execution time should be restricted through explicit allowlists and upper limits to prevent long-running tasks from becoming uncontrolled.

    4. Establish observability before optimization.
    Use logging and monitoring systems to persist the inputs, outputs, duration, and token consumption of every round. Only with this data can teams determine where five hours were actually spent.

    5. Turn acceptance criteria into executable checks.
    Encode domain constraints as automated validation scripts, including test cases, static analysis, and simulation checks. This gives the model’s self-validation process objective evidence instead of relying on the model’s own assessment.

    6. Conclusion

    New-generation models can use repeated execution of shared weights to create a deeper effective computation path, while general-purpose coding opens up broader possibilities for cross-domain automation.

    At the same time, the contrast between 200 tokens per second and a five-hour task highlights a fundamental shift:

    The productivity bottleneck for large models is moving from token generation speed to task orchestration, tool-chain coordination, and verification loops.

    Organizations that can measure and optimize this hidden workflow will be better positioned to turn capabilities demonstrated in presentations into deliverables that can be reliably planned and completed in production.