Why AI Agents Still Take Hours Despite Faster LLM Inference

    This article explains why faster token generation does not necessarily shorten agent task delivery time. It breaks total task duration into planning, data fetching, inference, verification, and human handoff, then examines how shared-weight multi-pass computation, code-centric workflows, context engineering, and quota governance shift costs across the pipeline. Readers will find a practical five-stage timing framework, executable validation patterns, and a checklist for deciding which tasks justify longer compute paths.

    1. Two Different Scales: Generation Speed vs. Task Delivery Time

    A model service recently published inference throughput figures: roughly 200 tokens per second during off-peak hours, dropping to 70–80 tokens per second at peak. Around the same time, a public benchmark showed a 3D animation generation task involving physics computation taking nearly five hours. Put side by side, these numbers expose the real engineering problem: single-token generation rate and the total time from task initiation to an accepted deliverable are not the same dimension.

    Product managers watching a demo tend to convert “can write video scripts, can produce 3D scenes, can build mechanical structures” directly into labor savings for tomorrow. Engineering leads receive a different list: how many tools the agent will call, how many project files it must read, how many rounds of context compaction it will trigger, and who signs off on the output. While the model generates code in the foreground, timers, permission checks, and token metering keep running in the background. Ignore that background chain, and any “speedup” conclusion becomes misleading.

    A rough but useful decomposition:

    1. Total task time ≈ planning + Σ(tool call time + data transfer time) + Σ(model inference time)
    2. + context compaction and replay time + retry time + human acceptance wait

    In most real tasks, model inference accounts for only one or two of these terms. That is why a several-fold throughput improvement may leave delivery time almost unchanged.

    2. Shared-Weight Multi-Pass Computation: What It Saves and Where the Cost Moves

    This generation of models is around 70 billion parameters. The officially emphasized capability gain does not come from piling on more weights, but from having several layers in the base model share weights and execute two computation passes. Total parameter count stays the same; the compute path gets longer.

    The benefit is clear: effective compute depth increases without increasing capacity, representations are refined repeatedly across layers, and tasks requiring multi-step constraint satisfaction (structured output, long-chain code modification, joint geometric and physical constraint solving) are better served. It also avoids the memory and bandwidth pressure of larger weights.

    The cost is equally clear, and it has simply moved elsewhere:

    • Higher compute volume. Two forward passes roughly double the compute cost of those layers, raising per-token cost.
    • Changed latency structure. Both time-to-first-token and decode latency rise, and queueing effects at peak are amplified.
    • Cost shifts from memory to compute and time. Scenarios previously constrained by memory capacity become constrained by compute budget and task duration.

    An analogy: have the same group of musicians play a complex movement a second time instead of immediately expanding the orchestra. The listening experience may be more refined, but rehearsal time genuinely increases. The engineering conclusion is not “good or bad,” but that this tradeoff only pays off when the task truly needs deep refinement; for short Q&A or simple rewrites, it is a pure loss.

    3. Code as the Universal Interface: When Video, 3D, and Mechanical Design Become Code Tasks

    Code is becoming the general interface through which models operate on the digital world. 3D scenes can be described by scripts, animation can be expressed with timeline functions, and mechanical structures can be generated by parametric modeling scripts. Generality brings uniformity, and also three problems that must be handled separately.

    First, tool-calling ability is not domain correctness. Correctly issuing a modeling script call only means the interface was used properly; whether the output satisfies material strength, assembly tolerances, and kinematic constraints is a separate judgment.

    Second, domain constraints must be externalized as executable checks. Do not expect the model to “remember” specifications; write them as checkers:

    1. # Example: turn domain constraints into an executable acceptance gate
    2. def validate(deliverable, spec):
    3. errors = []
    4. if deliverable.mass_kg > spec.max_mass_kg:
    5. errors.append("Overweight")
    6. if deliverable.stress_margin < spec.min_stress_margin:
    7. errors.append("Insufficient strength margin")
    8. if not spec.tolerance.check(deliverable.dimensions):
    9. errors.append("Tolerance out of range")
    10. return errors

    Third, delivery responsibility cannot be transferred. A wrench can turn a bolt, but that does not mean it knows which bolt affects flight safety. The responsible party, review process, and audit trail must still be borne by humans.

    4. Breaking Down Total Time: A Practical Performance Evaluation Framework

    Teams should replace a single throughput metric with a five-stage timing method and instrument every task:

    1. Planning: task decomposition and tool selection;
    2. Fetching: reading project files and resolving dependencies;
    3. Inference: model generation, recording input/output tokens and rounds;
    4. Verification: compilation, unit tests, constraint checks, render previews;
    5. Handoff: human review and merge.
    1. # Pseudocode: task-level instrumentation
    2. timings = {}
    3. timings["plan"] = measure(agent.plan, task)
    4. timings["fetch"] = measure(agent.load_context, task)
    5. timings["infer"] = measure(agent.run, task)
    6. timings["verify"] = measure(pipeline.verify, task)
    7. timings["handoff"] = measure(review.wait, task)
    8. report(timings) # output each stage's share to locate the real bottleneck

    A practical rule of thumb: when the inference stage accounts for less than 30% of total time, optimization should focus on context construction and verification automation rather than switching to a faster model.

    5. Context Engineering: The Real Hidden Cost Center

    In long tasks, the biggest variable is context. As more files are read and history grows longer, compaction and replay counts rise. Four reusable practices:

    • Layered context. Keep stable information (interface contracts, directory structure, coding conventions) in a resident segment, and volatile information (current file fragments) in a window segment.
    • Summaries as interfaces. Each compaction round produces a structured summary with fixed fields, avoiding information drift from free-form text.
    • Retrieval instead of full reads. Use vector retrieval or symbolic indexing to locate relevant fragments, and place only necessary content in the window.
    • Idempotent replay. After compaction, tasks must be safely re-runnable to avoid duplicate writes and duplicate billing.

    6. Quotas, Metering, and Quota Governance

    When some users’ available quota is raised to 1.5x, the point that matters is not the multiplier but whether the metering basis is explainable. Record at least four dimensions: input tokens, output tokens, tool call count, and task retry count. For quota policy, set segmented budgets and circuit-breaker thresholds for long tasks; pause and request human decision once a threshold is exceeded. This avoids incidents where “one five-hour task consumes a week’s quota.”

    On the cloud, this governance can be carried by generic capabilities: object storage for deliverables and intermediate state, a message queue for task peak shaving and retries, a container platform for stateless executors, and logging plus monitoring and alerting for stage timing and threshold alerts. These are common industry categories and involve no vendor-proprietary interfaces.

    7. Scenario Fit: Which Tasks Suit a Longer Compute Path

    • Suitable: joint multi-constraint solving, cross-file refactoring, complex script generation requiring repeated self-checks, and visual tasks needing high-fidelity previews.
    • Not suitable: short Q&A, single-point rewrites, format conversion, and batch processing with clear rules.
    • Compromise: a routing layer first judges difficulty, sends simple requests to a lightweight path, and enables multi-pass deep computation only for complex requests.
    1. if task.complexity < threshold:
    2. route(light_path)
    3. else:
    4. route(deep_path_with_verification)

    8. Acceptance Checklist

    • Have you applied five-stage timing to obtain a task-level time distribution?
    • Have you written domain specifications as executable checks rather than relying on model memory?
    • Do you have layered context and structured summaries?
    • Do you have quota circuit breakers and retry limits?
    • Have you defined human review checkpoints and responsibility ownership?
    • Have you run before-and-after comparative evaluations on the same set of tasks?

    9. Conclusion

    High throughput and long delivery are not contradictory; they describe different positions along the chain. Shared-weight multi-pass computation trades compute for refinement, moving cost from memory to time. Code-centric workflows bring more industries under the same interface, and push domain constraints and delivery responsibility to the foreground. The only sound engineering path is to first build an observable task-level timing and verification system, then decide which tasks deserve a longer compute path.