mlsanityData to 7 Oct 2026

Chain and Causal Attention for Efficient Entity Tracking

arXiv 2410.05565 ↗First posted 7 Oct 2024cs.LG cs.CLcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  8. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  9. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  10. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  11. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  12. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
15 more
  1. 2019Deep Equilibrium Modelscited by 603
  2. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
  3. 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 264
  4. 2021Implicit Representations of Meaning in Neural Language Modelscited by 179
  5. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 140
  6. 2019WIQA: A dataset for "What if..." reasoning over procedural textcited by 71
  7. 2021Chess as a Testbed for Language Model State Trackingcited by 69
  8. 2020Multi-hop Attention Graph Neural Networkcited by 53
  9. 2019The Materials Science Procedural Text Corpus: Annotating Materials Synthesis Procedures with Shallow Semantic Structurescited by 48
  10. 2021Subformer: Exploring Weight Sharing for Parameter Efficiency in Generative Transformerscited by 42
  11. 2016Simpler Context-Dependent Logical Forms via Model Projectionscited by 33
  12. 2024Code Pretraining Improves Entity Tracking Abilities of Language Modelscited by 31
  13. 2023Causal Reasoning of Entities and Events in Procedural Textscited by 23
  14. 2023OpenPI2.0: An Improved Dataset for Entity Tracking in Textscited by 8
  15. 2023ResidualTransformer: Residual Low-Rank Learning with Weight-Sharing for Transformer Layerscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 3.

8 papers.