Efficient Attention using a Fixed-Size Memory Representation
Not on the map. Why?
Abstract (arXiv)
The standard content-based attention mechanism typically used in sequence-to-sequence models is computationally expensive as it requires the comparison of large encoder and decoder states at each time step. In this work, we propose an alternative attention mechanism based on a fixed size memory representation that is more efficient. Our technique predicts a compact set of K attention contexts during encoding and lets the decoder compute an efficient lookup that does not need to consult the memory. We show that our approach performs on-par with the standard attention mechanism while yielding inference speedups of 20% for real-world translation tasks and more for tasks with longer sequences. By visualizing attention scores we demonstrate that our models learn distinct, meaningful alignments.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 1 Jul 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 2.
4 papers.
- 2023Challenges and Applications of Large Language Modelscited by 254
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
- 2023Iterated Piecewise Affine (IPA) Approximation for Language Modelingcited by 0
- 2023Challenges and Applications of Large Language Models19 Jul 2023
- 2023Iterated Piecewise Affine (IPA) Approximation for Language Modeling21 Jun 2023
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequences13 Oct 2022
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attention17 Feb 2021