A model of errors in transformers
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 44 of its 58 references that are in the map. First posted on arXiv 20 Jan 2026.
Builds on
44 of 58 references.
References · 44
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
32 more
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 797
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
- 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexitycited by 302
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 260
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2021Thinking Like Transformerscited by 184
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2023A Systematic Study and Comprehensive Evaluation of ChatGPT on Benchmark Datasetscited by 123
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
- 2024On Limitations of the Transformer Architecturecited by 63
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2025A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformerscited by 53
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 45
- 2024Theoretical limitations of multi-layer Transformercited by 45
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Rangescited by 24
- 2025Constant Bit-size Transformers Are Turing Completecited by 19
- 2025Probing for Arithmetic Errors in Language Modelscited by 18
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2025The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate Itcited by 10
- 2025Softmax Transformers are Turing-Completecited by 9
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms
- 2024Principled Understanding of Generalization for Generative Transformer Models in Arithmetic Reasoning Tasks
- 2026Shared circuits predict whether LLMs generalize across formats in arithmetic reasoning
- 2024LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems
- 2025Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmetic
- 2026Represented Is Not Computed: A Causal Test of Candidate Algorithmic Intermediates in a Transformer
- 2026Understanding LLM Failures: A Multi-Tape Turing Machine Analysis of Systematic Errors in Language Model Reasoning
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models