Papers
Topics
Authors
Recent
Search
2000 character limit reached

The Architecture of Errors: From Universal Impossibility to Patch-Local LLM Reliability

Published 28 May 2026 in cs.CL, cs.AI, and cs.LG | (2605.30628v1)

Abstract: Universal LLM reliability is not a finite-library problem: across all possible tasks, tools, schemas, knowledge sources, and evaluator expectations, new intervention-distinguishable failure modes can appear without bound, so no finite intervention dictionary can guarantee bounded residual error for every such mode. But deployed systems do not operate over the whole universe. They operate inside operationally bounded patches (legal review, medical RAG, code repair, customer-support agents, contract extraction) with recurring tasks, schemas, tools, and evaluator expectations. Within such patches, empirical evidence suggests failures are sparse, repetitive, and concentrated in a small recurring catalogue, so reliability becomes a local catalogue-discovery and intervention-coverage problem rather than an exponential token-length problem. We formalize this transition with two propositions and one corollary. Proposition 1 is the worst-case-mode-wise negative result: no finite intervention dictionary covers every distinguishable failure mode of an unbounded domain. Corollary 1 is the inverse-discovery implication: the logarithmic upper bound on mode discovery cannot accommodate linearly more distinct tail modes without exponentially more observed hard-failure events. Proposition 2 is the positive patch-local result: under log active-mode exposure and head-heavy coverage, a sufficient per-hard-decision intervention budget grows polylogarithmically in sequence length and becomes domain-constant once the patch catalogue saturates. The framework relocates rather than dissolves long-context difficulty: where the number of hard decisions itself grows with task length, reliability remains hard; the contribution is to identify the on-axis intervention rather than to make those regimes easy.

Summary

  • The paper demonstrates that universal LLM reliability is unattainable with a finite set of interventions, advocating a shift to patch-local reliability engineering.
  • It introduces a rigorous four-level taxonomy to map concrete errors to latent failure modes and targeted capability interventions.
  • Empirical analysis reveals a logarithmic growth in recurrent failure modes, enabling effective error mitigation within bounded deployment patches.

Essay: The Architecture of Errors—From Universal Impossibility to Patch-Local LLM Reliability ((2605.30628))

Overview and Motivation

"The Architecture of Errors: From Universal Impossibility to Patch-Local LLM Reliability" presents a formal, empirically anchored framework for understanding and engineering the reliability of LLMs. The work scrutinizes the standard exponential reliability collapse argument associated with long-context LLMs, refuting the notion that universal, sequence-level reliability is attainable via a finite set of interventions. Instead, the authors establish that, in operationally bounded deployment contexts (patches), LLM failures cluster into a sparse, recurring catalogue of failure modes, which are susceptible to systematic intervention. This reframes LLM reliability from an intractable, universal challenge to a domain-local, engineering-oriented problem centered on failure-mode discovery and targeted capability interventions.

Theoretical Framework

Failure Mode Stratification

The paper rigorously distinguishes four hierarchical levels crucial for LLM error analysis:

  1. Failure Events (L1L1): Concrete error instances observed in benchmarks.
  2. Empirical Taxonomy (L2L2): Researcher-defined categories clustering L1L1 events.
  3. Latent Failure Modes (L3L3): Underlying, unobserved clusters approximated by L2L2.
  4. Capability Interventions (L4L4): Coarser, engineering-oriented units (e.g., Python interpreter, constrained decoder).

This stratification ensures precise mapping between observations and interventions, avoiding conflation of error ontologies.

Key Propositions

Two formal propositions structure the reliability landscape:

  • Proposition 1 (No Universal Finite Intervention Dictionary): No finite intervention set can guarantee bounded residual error across all possible, intervention-distinguishable failure modes in an unbounded domain. The implication is that universal reliability for LLMs is, in principle, unattainable using finite libraries of interventions.
  • Proposition 2 (Patch-Local Sufficient Intervention Budget): Given an operationally bounded deployment patch—with a fixed tuple of input distributions, schemas, knowledge sources, and evaluation criteria—a sufficient intervention library for residual error ε\varepsilon per hard decision grows polylogarithmically with sequence length (pre-catalogue cap), and then saturates at a domain constant. This is predicated on empirical postulates about the logarithmic nature of failure mode discovery and heavy head/tail skew in failure frequency.

Logarithmic Failure Mode Growth

The salient empirical postulate is that the number of recurring failure modes discovered in a fixed deployment patch after TT hard-failure events is bounded by a logarithmic function in TT. Endpoint analyses (e.g., ErrorAtlas, HumanEval, MWPES-300K) empirically support a range σ[0.87,1.85]\sigma \in [0.87, 1.85] for the rate constant in the log-growth model, underscoring slow mode proliferation even as failures accumulate into the tens or hundreds of thousands.

Evidence Base

Failure-Mode Taxonomies and Selective Interventions

Large-scale error taxonomies (ErrorAtlas, HumanEval, MWPES) consistently show that a small number (typically L2L20–L2L21) of recurrent failure modes cover the preponderance of observed errors in practical domains. This clustering is stable both within and across models and deployment contexts.

For each major error cluster, targeted interventions can eliminate or drastically reduce residual error:

  • Execution-based arithmetic and code errors: Python and REPL loops resolve most instance-level failures in arithmetic and code logic.
  • Constrained decoding: By-construction elimination of format/schema violations.
  • Retrieval augmentation (RAG): Strong reduction or elimination of hallucinations and fabricated facts in knowledge-intensive tasks.
  • Process supervision: By carefully engineering process reward models, systematic step-level reasoning errors are mitigated.

A key structural observation is cluster selectivity: interventions designed for one failure cluster do not inadvertently fix other clusters, and vice versa. Residuals post-intervention are typically in distinct clusters, enabling reliable composition of capability axes.

Sublinear Reliability Decay with Output Length

Contrary to the notion of exponential error compounding, empirical studies demonstrate only sublinear or logarithmic decay with length when measured within fixed contexts and failure classes. Notable benchmarks (Loong, GSM-infinity, METR) show that accuracy and reliability decay either log-linearly or sigmoidal-in-length, not exponentially, provided that the number of “hard” token decisions scales sublinearly with output length. Where decay is observed to be steep, closer reanalysis (Appendix, re-audits) consistently finds that the decay pertains to complexity measures orthogonal to raw sequence length (e.g., compositional graph size, number of supporting facts).

Practical and Theoretical Implications

From Universal to Patch-Local Reliability

The impossibility of universal finite-dictionary reliability reframes the central engineering question: system designers should not anticipate a globally exhaustive list of interventions covering all LLM errors. Instead, operational reliability demands:

  • Patch-local catalogue discovery: Systematic logging and taxonomy of failures within bounded operation contexts.
  • Targeted capability library assembly: Interventions addressing the observed local mode catalogue.
  • Empirical budgeting: Intervention budget scales with the logarithmic rate of active mode discovery, achieving rapid head-mass coverage with a modest (order tens) library size in the most domains.

Domain shifts and patch changes necessitate recalibration; intervention libraries valid for one patch may under-cover new failure modes after a patch shift.

Sequence-Level vs. Per-Hard-Token Reliability

Production deployments must distinguish between per-hard-token and sequence-level reliability targets. While per-hard-token reliability admits small, polylogarithmically growing intervention libraries, strict sequence-level reliability for long outputs frequently necessitates near-total catalogue coverage due to compound risks. SLA design must reflect this distinction.

Efficacy and Additivity

Intervention modules can usually be assembled in parallel, and—except for prompt-channel interference cases—compose near-additively. Capabilities operate at a coarser resolution than named failure clusters, often collapsing multiple error classes under a single intervention (e.g., Python interpreter covers various arithmetic and logic errors).

Theoretical Reflections

The framework does not dissolve the inherent difficulty of problems where the number of key hard decisions grows quickly (e.g., multi-hop graphs, adversarial compositional queries). For such tasks, reliability remains fundamentally difficult; the framework’s contribution is the redirection of engineering focus towards axis-appropriate interventions rather than mere context window expansion or undifferentiated continual scaling.

Limitations and Open Questions

  • The logarithmic failure mode growth postulate is empirically motivated but not theoretically derived; domains exhibiting Heaps' law-like mode discovery would demand adjusted scaling analysis.
  • No published work establishes discovery curves at varying sample sizes for error mode catalogues; current results rely on endpoint measurements only.
  • The granularity gap between empirical error categories and underlying latent (L3) failure modes is unmeasured.
  • Multi-turn, agentic, and ultra-long horizon deployments may bear fundamentally larger or more rapidly growing failure mode catalogues.

Future work is needed to empirically validate the rate parameters (L2L22) in emerging domains, rigorously measure per-patch discovery curves, and to formalize the process by which real production systems govern their capability scaffolds over extended deployment periods.

Conclusion

This work formalizes a shift in LLM reliability thinking: from universal, asymptotic error control (an impossibility for open domains) to practical, patch-local reliability governed by empirical discovery and targeted intervention of locally recurring failure modes. Within a fixed operational patch, a modest intervention library suffices for substantial reliability gains, with polylogarithmic or even constant scaling once the local catalogue is saturated. The prospect for future AI reliability hinges on systematic error catalogue measurement, capability library curation, and operational governance rather than on the elusive goal of universal coverage via monolithic training or ever-larger pre-trained models. The framework establishes finite, addressable targets for reliability engineering and invites further empirical scrutiny into rate constants and discovery dynamics across diverse deployment arenas.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.

HackerNews

  1. The Architecture of Errors (4 points, 0 comments)