Chain and Causal Attention for Efficient Entity Tracking
Not on the map. Why?
Abstract (arXiv)
This paper investigates the limitations of transformers for entity-tracking tasks in large language models. We identify a theoretical constraint, showing that transformers require at least log2 (n+1) layers to handle entity tracking with n state changes. To address this issue, we propose an efficient and frugal enhancement to the standard attention mechanism, enabling it to manage long-term dependencies more efficiently. By considering attention as an adjacency matrix, our model can track entity states with a single layer. Empirical results demonstrate significant improvements in entity tracking datasets while keeping competitive performance on standard natural language modeling. Our modified attention allows us to achieve the same performance with drastically fewer layers. Additionally, our enhanced mechanism reveals structured internal representations of attention. Extensive experiments on both toy and complex datasets validate our approach. Our contributions include theoretical insights, an improved attention mechanism, and empirical validation.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 27 of its 37 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
27 of 37 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
15 more
- 2019Deep Equilibrium Modelscited by 603
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 264
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 179
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 140
- 2019WIQA: A dataset for "What if..." reasoning over procedural textcited by 71
- 2021Chess as a Testbed for Language Model State Trackingcited by 69
- 2020Multi-hop Attention Graph Neural Networkcited by 53
- 2019The Materials Science Procedural Text Corpus: Annotating Materials Synthesis Procedures with Shallow Semantic Structurescited by 48
- 2021Subformer: Exploring Weight Sharing for Parameter Efficiency in Generative Transformerscited by 42
- 2016Simpler Context-Dependent Logical Forms via Model Projectionscited by 33
- 2024Code Pretraining Improves Entity Tracking Abilities of Language Modelscited by 31
- 2023Causal Reasoning of Entities and Events in Procedural Textscited by 23
- 2023OpenPI2.0: An Improved Dataset for Entity Tracking in Textscited by 8
- 2023ResidualTransformer: Residual Low-Rank Learning with Weight-Sharing for Transformer Layerscited by 4
Built on by
Citing papers per year: 2025: 5; 2026: 3.
8 papers.
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 32
- 2025Understanding Transformer from the Perspective of Associative Memorycited by 31
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globallycited by 9
- 2026The Topological Trouble With Transformerscited by 3
- 2025KisMATH: Do LLMs Have Knowledge of Implicit Structures in Mathematical Reasoning?cited by 2
- 2025MET-Bench: Multimodal Entity Tracking for Evaluating the Limitations of Vision-Language and Reasoning Modelscited by 1
- 2026Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexitycited by 1
- 2026Trading Complexity for Expressivity Through Structured Generalized Linear Token Mixingcited by 0
- 2026Trading Complexity for Expressivity Through Structured Generalized Linear Token Mixing29 May 2026
- 2026Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexity21 May 2026
- 2026The Topological Trouble With Transformers18 Apr 2026
- 2025KisMATH: Do LLMs Have Knowledge of Implicit Structures in Mathematical Reasoning?15 Jul 2025
- 2025Understanding Transformer from the Perspective of Associative Memory26 May 2025
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformations22 May 2025
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globally13 May 2025
- 2025MET-Bench: Multimodal Entity Tracking for Evaluating the Limitations of Vision-Language and Reasoning Models15 Feb 2025