Three Surprises and One Unexpected Finding from Large-Scale LLM Testing

    This article reports findings from a multi-million-token evaluation of LLM agents, covering three surprises—usable long-horizon autonomous execution, amplified gains from combining structured reasoning with tool use, and a changed cost structure driven by prompt caching—plus one unexpected issue: overthinking and model-tier mismatch on simple tasks. It includes practical guardrails, code examples, a task-to-tier selection table, and a three-layer evaluation framework.

    1. Why a Multi-Million-Token Test Is Worth Running

    The fatal flaw of small-sample evaluation is variance. A win rate produced from a few dozen tasks mostly reflects sampling randomness and fails to expose behavioral drift over long workflows. Pushing consumption into the multi-million-token range trades cost for statistical confidence: only by repeating the same task enough times, and by covering the context-length distribution of real engineering work, can you observe low-frequency but highly disruptive failures such as occasional infinite loops and overthinking.

    This article abstracts the observations into three surprises and one unexpected finding, along with the corresponding engineering responses. Note that these conclusions come from a specific test set and a specific time window; they are empirical observations and not absolute judgments about any particular model version.

    2. Surprise 1: Long-Horizon Autonomous Execution Is Becoming Usable

    The most visible progress showed up in agentic coding scenarios. The tested models could work autonomously for over an hour without human intervention, completing multi-step engineering tasks such as database schema design, API layer construction, and building a mobile simulation environment.

    What matters is not the quality of any single step, but the coupling of three capabilities:

    • Long-horizon planning: decomposing “build a module” into dozens of verifiable sub-goals and keeping them from being lost;
    • Self-correction: after a failed run, reading the error, locating the cause, and rolling back or rewriting, instead of repeating the same broken code;
    • Tool use: reading and writing files, executing commands, and fetching dependencies on demand to close the loop.

    Engineering practice suggests wrapping this capability in guardrails so long runs do not go off the rails:

    1. # Pseudocode: budget and guardrails for long-horizon tasks
    2. budget = {"max_steps": 120, "max_tokens": 800_000, "deadline_min": 60}
    3. for step in range(budget["max_steps"]):
    4. if tokens_used > budget["max_tokens"] or time_left() < 0:
    5. return checkpoint_and_report() # persist state and hand back control
    6. action = model.plan(context, tools)
    7. result = run_tool(action) # execute inside a sandbox
    8. if result.repeated_failure >= 3:
    9. return escalate_to_human(result) # escalate after three same-cause failures
    10. context = compress(context, result) # compress context to control growth

    The accompanying essentials are sandbox isolation, checkpoint persistence, and the hard rule of escalating to a human after three failures with the same cause. Missing any one of them means the stronger the long-horizon capability, the higher the cost of an incident.

    3. Surprise 2: Clear Marginal Gains from Combining Structured Reasoning with Tool Use

    On logic problems that require cross-checking information from multiple roles, the models performed consistently and proactively listed assumptions and ruled out contradictions. This indicates that reasoning gains do not happen in isolation but are amplified by tool use: a model can write intermediate conclusions to external storage and retrieve them in the next step, effectively gaining a scalable “working memory.”

    A reusable approach is to externalize the reasoning process:

    1. assumption set -> label each one (holds / contradicts / to verify) -> conflict detection -> converged conclusion

    When the context approaches the window limit, persisting confirmed conclusions to a structured file and bringing only a summary back into the conversation significantly reduces the error-rate increase caused by attention dilution.

    4. Surprise 3 (Cost Side): Caching Reshapes the Bill

    A higher unit price does not necessarily raise total spending proportionally. In long tasks, prefixes such as system prompts, tool definitions, and code repository snippets are highly repetitive; once cached, that portion of the input is no longer billed at the original rate, so the bill grows noticeably less than the unit price increase.

    The key to a higher hit rate is splitting content into a stable zone and a volatile zone, with stable content placed first:

    1. [stable prefix] system instructions + tool schema + project conventions + reference code
    2. [semi-stable zone] summaries of completed tasks
    3. [volatile tail] current user request and latest execution results

    Once you put timestamps, random IDs, or user nicknames into the system prompt, the prefix hash changes every time and the cache is fully invalidated. This is the most common and most easily overlooked cost leak in practice.

    5. The Unexpected Finding: Overthinking and Tier Mismatch on Lightweight Tasks

    On extremely simple questions, the more capable version sometimes returned the wrong answer: it introduced unnecessary assumptions, questioned itself repeatedly, and ultimately drifted from the obvious conclusion; the lightweight version answered directly, with higher accuracy and lower latency. Another failure mode is unstable reasoning, where the model fell into repeated derivation on hard math problems and produced near-looping text.

    The conclusion is not that “strong models are unreliable,” but that tasks and tiers must match:

    Task type Recommended tier Key controls
    Simple Q&A, format conversion, classification and extraction Lightweight tier Low temperature, few steps, no chain of thought
    Medium-complexity business logic Mid tier Structured output constraints, single-pass validation
    Long-horizon engineering and hard reasoning High-capability tier Step/budget limits, loop detection, checkpoints

    Loop detection can be implemented at very low cost:

    1. seen, window = set(), []
    2. for chunk in stream:
    3. key = normalize(chunk) # fingerprint after stripping whitespace and punctuation
    4. window.append(key)
    5. if len(window) > 8:
    6. seen.add(window.pop(0))
    7. if len(window) == len(seen): # fully repeated within the window
    8. abort_and_replan() # abort and retry with a different strategy

    6. Turning the Conclusions into an Actionable Evaluation System

    Teams are advised to build a three-layer evaluation: a unit layer that verifies format and tool-call correctness; a scenario layer that runs end to end with real repositories and real tickets; and a stress layer that uses long contexts and repeated sampling to surface low-frequency failures. Each layer should record token consumption, cache hit rate, number of human takeovers, and failure-cause categories, forming a baseline that supports continuous comparison.

    The final criterion is simple: not how impressive a model looks in a demo, but whether the cost per unit of effective output drops on your task distribution and whether the human takeover rate stays controllable. Get the four things right—budget, guardrails, tier selection, and caching—and the long-horizon capability of the new generation of models will genuinely translate into delivery efficiency.