Extended Mind Transformers
Not on the map. Why?
Abstract (arXiv)
Pre-trained language models demonstrate general intelligence and common sense, but long inputs quickly become a bottleneck for memorizing information at inference time. We resurface a simple method, Memorizing Transformers (Wu et al., 2022), that gives the model access to a bank of pre-computed memories. We show that it is possible to fix many of the shortcomings of the original method, such as the need for fine-tuning, by critically assessing how positional encodings should be updated for the keys and values retrieved. This intuitive method uses the model's own key/query system to select and attend to the most relevant memories at each generation step, rather than using external embeddings. We demonstrate the importance of external information being retrieved in a majority of decoder layers, contrary to previous work. We open source a new counterfactual long-range retrieval benchmark, and show that Extended Mind Transformers outperform today's state of the art by 6% on average.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 17 of its 25 references that are in the map. First posted on arXiv 4 Jun 2024.
Builds on
17 of 25 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2019Attention is not Explanationcited by 916
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
5 more
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2014Neural Turing Machinescited by 630
- 2022Memorizing Transformerscited by 219
- 2021Memory-efficient Transformers via Top-k Attentioncited by 59
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
Built on by
Citing papers per year: 2024: 1.
1 paper.