Skip to main content
QUICK REVIEW

[Paper Review] A model of errors in transformers

Suvrat Raju, Praneeth Netrapalli|arXiv (Cornell University)|Jan 20, 2026
Cognitive and developmental aspects of mathematical skillsMathematics0 citations
TL;DR

The paper proposes a two-parameter error model for LLMs on deterministic token-based tasks, linking accuracy to task complexity via an effective-field-theory-inspired framework and validating it across multiple models and tasks.

ABSTRACT

We study the error rate of LLMs on tasks like arithmetic that require a deterministic output, and repetitive processing of tokens drawn from a small set of alternatives. We argue that incorrect predictions arise when small errors in the attention mechanism accumulate to cross a threshold, and use this insight to derive a quantitative two-parameter relationship between the accuracy and the complexity of the task. The two parameters vary with the prompt and the model; they can be interpreted in terms of an elementary noise rate, and the number of plausible erroneous tokens that can be predicted. Our analysis is inspired by an ``effective field theory'' perspective: the LLM's many raw parameters can be reorganized into just two parameters that govern the error rate. We perform extensive empirical tests, using Gemini 2.5 Flash, Gemini 2.5 Pro and DeepSeek R1, and find excellent agreement between the predicted and observed accuracy for a variety of tasks, although we also identify deviations in some cases. Our model provides an alternative to suggestions that errors made by LLMs on long repetitive tasks indicate the ``collapse of reasoning'', or an inability to express ``compositional'' functions. Finally, we show how to construct prompts to reduce the error rate.

Motivation & Objective

  • Motivate understanding and prevention of errors in LLMs on deterministic, token-based tasks.
  • Propose an effective two-parameter model that reduces the complexity of LLM behavior to r (noise rate per token) and q (number of error directions).
  • Derive a quantitative relation between accuracy and task complexity and interpret it via an effective field theory lens.
  • Empirically verify the model across multiple tasks and models and analyze where it succeeds or fails.
  • Propose practical prompts to reduce error rates and discuss avenues for architectural improvements.

Proposed method

  • Develop an physics-inspired error model where an effective model ${\,M}_{\text{eff}}$ shares architecture with an idealized model but with perturbed parameters.
  • Define complexity c as the minimal token processing required to solve a task and assume accuracy a follows a two-parameter formula involving r and q (and an incomplete gamma function).
  • Assume error decomposition with q plausible directions and Gaussian-distributed coefficients with variance scaling as v ~ c^{2α}, setting α=1 based on empirical fits.
  • Derive a final expression a = (1/Γ(q/2)) γ(q/2, q/(2 r c^{2α})) and justify it with scaling arguments and attention-layer dynamics.
  • Test the formula across 8 tasks, 3 models, and 0.2 million prompts, analyzing when and why deviations occur.
  • Explore a prompt design that tags tokens to reduce attention noise and improve accuracy.
Figure 1 : Accuracy of Flash and Pro on multiplication using different prompts.
Figure 1 : Accuracy of Flash and Pro on multiplication using different prompts.

Experimental results

Research questions

  • RQ1Can a two-parameter model (r and q) capture the error rate of LLMs on deterministic, token-based tasks?
  • RQ2How does task complexity c influence accuracy, and can the incomplete gamma-based formula predict it across models and prompts?
  • RQ3Do effective-field-theory-inspired abstractions of LLMs align with empirical observations across diverse arithmetic and algorithmic tasks?
  • RQ4What prompt design strategies can reduce attention-related errors in practice?
  • RQ5Under which conditions does the model fail, and what do such failures reveal about the assumptions (e.g., A1)?

Key findings

  • The proposed formula a = (1/Γ(q/2)) γ(q/2, q/(2 r c^{2α})) fits accuracy data across 8 tasks, 3 models, and 0.2 million prompts with q of order 1.
  • Empirical tests show good agreement for many cases, with deviations in some scenarios highlighting additional effects beyond the model.
  • In one noted case (vanilla addition with Gemini Pro), the formula fails, motivating investigation into algorithm consistency across input lengths.
  • Forcing models to follow specific algorithms restores agreement with the formula, supporting the interpretation that errors arise from noise accumulation in attention (rather than a fundamental reasoning collapse).
  • A practical prompt design that tags tokens with polynomial representations can improve accuracy, illustrating a path to reduce error rates.
(a) Flash
(a) Flash

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.