Do Transformers Need Deep Long-Range Memory?
By Jack W. Rae, Ali Razavi. 2020
45 citations recorded by the source corpus.
Deep attention models have advanced the modelling of sequential data across many domains. For language modelling in particular, the Transformer-XL — a Transformer augmented with a long-range memory of past activations — has been shown to be state-of-the-art across a variety of well-studied benchmarks. The Transformer-XL incorporates a long-range memory at every layer of the network, which renders its state to be thousands of times larger than RNN predecessors. However it is unclear whether this is necessary. We perform a set of interventions to show that comparable performance can be obtained with 6X fewer long range memories and better performance can be obtained by limiting the range of attention in lower layers of the network.
Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Prompting & Reasoning, Model Architectures
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Yi Tay
- Mostafa Dehghani
- Donald Metzler
- Christopher R'e
- Luke S. Zettlemoyer
- Mohit Bansal
- Quoc V. Le
- Jianfeng Gao
In Computer Vision and Pattern Recognition
- Luc Van Gool
- Yi Tay
- Mostafa Dehghani
- Christopher R'e
- Andrew Zisserman
- Dacheng Tao
- Xiaogang Wang
- Cordelia Schmid
In Prompting & Reasoning
In Model Architectures
Citations in the corpus
- Efficient Content-Based Sparse Attention with Routing Transformers (2020, background): “This is motivated by our empirical finding that long range attention is only needed in the last few layers - see also (Rae and Razavi, 2020).”
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness (2022, methodology): “For approximate attention, we compare against reference implementations of Reformer [49], Local Attention [65], Linformer Attention [81], Smyrf [18], and LongShortFormer (LSFormer) [91].”
- Long Range Arena: A Benchmark for Efficient Transformers (2020, background): “However, it has been debated how much long-range signal such tasks actually encode (Rae & Razavi, 2020).”
- The NLP Task Effectiveness of Long-Range Transformers (2022, background): “Rae and Razavi (2020) find that Transformer-XL does not necessarily need long and deep contexts.”