Linearizing Transformer with Key-Value Memory
Not on the map. Why?
Abstract (arXiv)
Efficient transformer variants with linear time complexity have been developed to mitigate the quadratic computational overhead of the vanilla transformer. Among them are low-rank projection methods such as Linformer and kernel-based Transformers. Despite their unique merits, they usually suffer from a performance drop comparing with the vanilla transformer on many sequence generation tasks, and often fail to obtain computation gain when the generation is short. We propose MemSizer, an approach towards closing the performance gap while improving the efficiency even with short generation. It projects the source sequences into lower dimension representations like Linformer, while enjoying efficient recurrent-style incremental computation similar to kernel-based transformers. This yields linear computation time and constant memory complexity at inference time. MemSizer also employs a lightweight multi-head mechanism which renders the computation as light as a single-head model. We demonstrate that MemSizer provides an improved balance between efficiency and accuracy over the vanilla transformer and other efficient transformer variants in three typical sequence generation tasks, including machine translation, abstractive text summarization, and language modeling.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 55 of its 65 references that are in the map. First posted on arXiv 23 Mar 2022.
Builds on
55 of 65 references.
References · 55
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2016Layer Normalizationcited by 5,579
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
38 more
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2020Efficient Transformers: A Surveycited by 784
- 2018Image Transformercited by 770
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2014Neural Turing Machinescited by 630
- 2019Green AIcited by 620
- 2018Universal Transformerscited by 613
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2021Random Feature Attentioncited by 350
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2016Using the Output Embedding to Improve Language Modelscited by 266
- 2020Sparse Sinkhorn Attentioncited by 250
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2018Scaling Neural Machine Translationcited by 204
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Adaptive Attention Span in Transformerscited by 148
- 2019Large Memory Layers with Product Keyscited by 120
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2021Luna: Linear Unified Nested Attentioncited by 96
- 2021Finetuning Pretrained Transformers into RNNscited by 94
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 1; 2026: 1.
4 papers.
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025FA-INR: Adaptive Implicit Neural Representations for Interpretable Exploration of Simulation Ensemblescited by 1
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Controlcited by 0
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Control21 Sep 2026
- 2025FA-INR: Adaptive Implicit Neural Representations for Interpretable Exploration of Simulation Ensembles7 Jun 2025
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modeling11 Sep 2024
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec 2023