Solving a Million-Step LLM Task with Zero Errors

Elliot Meyerson, Giuseppe Paolo, Roberto Dailey, Hormoz Shahrzad, Olivier Francon, Conor F. Hayes, Xin Qiu, Babak Hodjat, Risto MiikkulainenarXiv 2025 · DOI

Introduction: The Reliability Wall

Current Large Language Models (LLMs) are remarkably capable at short-horizon reasoning but struggle significantly as task complexity grows. Even with a 99% success rate per step, an LLM is statistically certain to fail a task requiring 1,000 dependent steps. This reliability gap prevents the deployment of AI in high-stakes, long-horizon processes like supply chain management or large-scale software engineering. To date, most benchmarks evaluate short-horizon tasks; when tested on long-horizon execution, even state-of-the-art models derail after a few hundred steps.

The MAKER Framework

To overcome this, the authors introduce Massively Decomposed Agentic Processes (MDAPs), implemented through the MAKER system (Maximal Agentic decomposition, first-to-ahead-by-K Error correction, and Red-flagging).

Algorithm overview of the MAKER framework, showing solution generation, voting logic, and individual vote sampling.

The framework rests on three core pillars:

  1. Maximal Agentic Decomposition (MAD): Tasks are broken into the smallest possible atomic steps. Each agent handles exactly one step with minimal necessary context, reducing the cognitive load on the base model.
  2. First-to-ahead-by-$k$ Voting: To correct inherent randomness, multiple responses are sampled for each step. Sampling continues until one answer leads by a margin of $k$ votes over any competitor, a method rooted in sequential probability ratio tests.
  3. Red-Flagging: The system identifies and discards outputs that exhibit common failure patterns (e.g., improper formatting or excessive length). By forcing a clean resample instead of attempting to parse bad data, MAKER avoids the "correlated errors" that often cause LLMs to spiral.

Experimental Results: A Million-Step Milestone

The primary testbed for MAKER was a 20-disk Towers of Hanoi problem, which requires exactly 1,048,575 dependent steps. This task is an ideal benchmark because the optimal path is mathematically known, allowing for precise error tracking over a massive horizon.

Comparison of MAKER against base LLMs, showing its ability to maintain error-free execution over a million steps at a lower cost per token.

While standard state-of-the-art models like o3-mini or haiku-4.5 fail within a few thousand steps, MAKER successfully completed the entire million-step sequence without a single error. Most steps were resolved with the minimum $k=3$ votes, though the most difficult step required 18 rounds of sampling. Beyond Towers of Hanoi, a recursive version of MAKER achieved 100% accuracy on 5x5 digit multiplication and over 95% on 6x6 multiplication—tasks that typically baffle standard transformer architectures.

Key Insights

  • Process Scaling vs. Model Scaling: Reliability can be achieved by scaling the process (decomposition and voting) rather than just the model size. Small, efficient models (e.g., 20B parameters) become highly reliable when deployed within an MDAP, offering a cost-effective alternative to massive reasoning models.
  • The Math of Reliability: The authors mathematically demonstrate that the cost of maintaining reliability scales log-linearly ($\Theta(s \ln s)$) with the number of steps $s$. Attempting to have agents handle multiple steps simultaneously leads to an exponential explosion in the cost required for the same reliability.
  • Breaking Correlated Errors: Red-flagging is essential. By discarding "confused" outputs, the system prevents streaks of identical errors from poisoning the voting pool, which is the primary threat to long-horizon stability.

Limitations and Future Outlook

While MAKER excels at execution, it currently relies on a pre-defined decomposition strategy. It remains to be seen which real-world tasks resist this kind of extreme decomposition. Future work aims to automate this process, allowing agents to recursively break down novel, unstructured tasks before solving them. Additionally, while red-flagging mitigates correlated errors, further techniques like prompt paraphrasing or noise injection may be needed for more subjective domains.

Summary updated

BibTeX
@misc{meyerson2025solving,
  author = {Elliot Meyerson and Giuseppe Paolo and Roberto Dailey and Hormoz Shahrzad and Olivier Francon and Conor F. Hayes and Xin Qiu and Babak Hodjat and Risto Miikkulainen},
  title = {{Solving a Million-Step LLM Task with Zero Errors}},
  year = {2025},
  eprint = {2511.09030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.09030},
}
Figure