Transformers need glasses! Information over-squashing in language tasks
Summary
We study how information propagates in decoder-only Transformers, which are the architectural backbone of most existing frontier large language models (LLMs). We rely on a theoretical signal propagation analysis -- specifically, we analyse the representations of the last token in the final layer of the Transformer, as …
- Venue
- arXiv 2406.04267
- Publisher
- arXiv 2406.04267
- Source
- arxiv
- Access
- open arXiv PDF/abs
- Purpose
- Transformers need glasses! Information over-squashing in language tasks
- Domain
- LLM research
- Used for
- LLM research reference
- Time period
- arXiv 2024/06/06; Discord LinkedIn mid harvested 2026-09-15
- Author type
- academic/industry (see abs)
- Added
- Sep 15, 2026
- Verified
- Sep 15, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Jun 6, 2024
- Last revised
- Oct 24, 2024
- arXiv categories
- cs.CL, cs.LG
- Citations
- 103 (15 influential)
- References
- 37
- Published in
- Neural Information Processing Systems
Abstract (from arXiv)
We study how information propagates in decoder-only Transformers, which are the architectural backbone of most existing frontier large language models (LLMs). We rely on a theoretical signal propagation analysis -- specifically, we analyse the representations of the last token in the final layer of the Transformer, as this is the representation used for next-token prediction. Our analysis reveals a representational collapse phenomenon: we prove that certain distinct sequences of inputs to the Transformer can yield arbitrarily close representations in the final token. This effect is exacerbated by the low-precision floating-point formats frequently used in modern LLMs. As a result, the model is provably unable to respond to these sequences in different ways -- leading to errors in, e.g., tasks involving counting or copying. Further, we show that decoder-only Transformer language models can lose sensitivity to specific tokens in the input, which relates to the well-known phenomenon of over-squashing in graph neural networks. We provide empirical evidence supporting our claims on contemporary LLMs. Our theory also points to simple solutions towards ameliorating these issues.
Tags
Topics
LLM research
Research notes
- From LinkedIn thread (Discord mid 1362796014683160646). Primary: https://www.linkedin.com/posts/pierre-carl-langlais-b0105b10_what-if-your-llm-is-a-graph-a-few-days-activity-7318210982483263488-CtH9?utm_source=share&utm_medium=member_desktop.
Cites, within this collection
Cited by, within this collection
Similar entries
- Paper AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
- Paper MEDIC: Comprehensive Evaluation of Leading Indicators for LLM Safety and Utility in Clinical Applications
- Paper TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
- Paper Pretraining Large Language Models with NVFP4
- Paper Scalable In-context Ranking with Generative Models
- Paper Token-Efficient RL for LLM Reasoning