EL-Attention: Memory Efficient Lossless Attention for Generation
Not on the map. Why?
Abstract (arXiv)
Transformer model with multi-head attention requires caching intermediate results for efficient inference in generation tasks. However, cache brings new memory-related costs and prevents leveraging larger batch size for faster speed. We propose memory-efficient lossless attention (called EL-attention) to address this issue. It avoids heavy operations for building multi-head keys and values, cache for them is not needed. EL-attention constructs an ensemble of attention results by expanding query while keeping key and value shared. It produces the same result as multi-head attention with less GPU memory and faster inference speed. We conduct extensive experiments on Transformer, BART, and GPT-2 for summarization and question generation tasks. The results show EL-attention speeds up existing models by 1.6x to 5.3x without accuracy loss.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 28 of its 36 references that are in the map. First posted on arXiv 11 May 2021.
Builds on
28 of 36 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
16 more
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2018Image Transformercited by 770
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2017Non-Autoregressive Neural Machine Translationcited by 457
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2020Sparse Sinkhorn Attentioncited by 250
- 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 194
- 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
- 2018Tensor2Tensor for Neural Machine Translationcited by 85
- 2020Pre-trained Summarization Distillationcited by 70
- 2020X-LXMERT: Paint, Caption and Answer Questions with Multi-Modal Transformerscited by 58
- 2019Benchmarking TPU, GPU, and CPU Platforms for Deep Learningcited by 51
- 2020GLGE: A New General Language Generation Evaluation Benchmarkcited by 47
- 2020BANG: Bridging Autoregressive and Non-autoregressive Generation with Large Scale Pretrainingcited by 33
- 2020Hierarchical Roofline Performance Analysis for Deep Learning Applicationscited by 11
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 1; 2024: 1; 2025: 3.
6 papers.
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
- 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generationcited by 36
- 2021FastSeq: Make Sequence Generation Fastercited by 13
- 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerializationcited by 4
- 2025Deconstructing Attention: Investigating Design Principles for Effective Language Modelingcited by 2
- 2023Pit One Against Many: Leveraging Attention-head Embeddings for Parameter-efficient Multi-head Attentioncited by 1
- 2025Deconstructing Attention: Investigating Design Principles for Effective Language Modeling13 Oct 2025
- 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerialization14 Aug 2025
- 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generation5 Feb 2025
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar 2024
- 2023Pit One Against Many: Leveraging Attention-head Embeddings for Parameter-efficient Multi-head Attention11 Oct 2023
- 2021FastSeq: Make Sequence Generation Faster8 Jun 2021