mlsanityData to 7 Oct 2026

Linearizing Transformer with Key-Value Memory

arXiv 2203.12644 ↗First posted 23 Mar 2022cs.CL cs.LGcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  7. 2016Layer Normalizationcited by 5,579
  8. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2016Pointer Sentinel Mixture Modelscited by 2,992
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
38 more
  1. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  6. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  7. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  8. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  9. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  10. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  11. 2015Teaching Machines to Read and Comprehendcited by 1,039
  12. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
  13. 2019Are Sixteen Heads Really Better than One?cited by 803
  14. 2020Efficient Transformers: A Surveycited by 784
  15. 2018Image Transformercited by 770
  16. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  17. 2014Neural Turing Machinescited by 630
  18. 2019Green AIcited by 620
  19. 2018Universal Transformerscited by 613
  20. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  21. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  22. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  23. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  24. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  25. 2021Random Feature Attentioncited by 350
  26. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  27. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  28. 2016Using the Output Embedding to Improve Language Modelscited by 266
  29. 2020Sparse Sinkhorn Attentioncited by 250
  30. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  31. 2018Scaling Neural Machine Translationcited by 204
  32. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  33. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  34. 2019Adaptive Attention Span in Transformerscited by 148
  35. 2019Large Memory Layers with Product Keyscited by 120
  36. 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
  37. 2021Luna: Linear Unified Nested Attentioncited by 96
  38. 2021Finetuning Pretrained Transformers into RNNscited by 94

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 1; 2025: 1; 2026: 1.

4 papers.