Efficient Attention via Control Variates
Not on the map. Why?
Abstract (arXiv)
Random-feature-based attention (RFA) is an efficient approximation of softmax attention with linear runtime and space complexity. However, the approximation gap between RFA and conventional softmax attention is not well studied. Built upon previous progress of RFA, we characterize this gap through the lens of control variates and show that RFA can be decomposed into a sum of multiple control variate estimators for each element in the sequence. This new framework reveals that exact softmax attention can be recovered from RFA by manipulating each control variate. Besides, it allows us to develop a more flexible form of control variates, resulting in a novel attention mechanism that significantly reduces the approximation gap while maintaining linear complexity. Extensive experiments demonstrate that our model outperforms state-of-the-art efficient attention mechanisms on both vision and language tasks.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 83 of its 103 references that are in the map. First posted on arXiv 9 Feb 2023.
Builds on
83 of 103 references.
References · 83
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2016Layer Normalizationcited by 5,579
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
38 more
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 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
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2017Deep Setscited by 1,394
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2020Designing Network Design Spacescited by 954
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2018Image Transformercited by 770
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 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
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2021Random Feature Attentioncited by 350
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2013Black Box Variational Inferencecited by 317
- 2020Sparse Sinkhorn Attentioncited by 250
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
- 2018Scaling Neural Machine Translationcited by 204
- 2022Transformer Quality in Linear Timecited by 189
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2018Online normalizer calculation for softmaxcited by 154
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
50 most cited of 83 All 83 (JSON)
Built on by
Citing papers per year: 2023: 5; 2024: 10; 2025: 4; 2026: 4.
23 papers.
Sort:
By area:
- 2024Many-Shot In-Context Learningcited by 203
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
- 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attentioncited by 31
- 2023SARA-RT: Scaling up Robotics Transformers with Self-Adaptive Robust Attentioncited by 20
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 20
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 15
- 2024Linear Attention Sequence Parallelismcited by 8
- 2024TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmaxcited by 6
- 2023Linear Attention via Orthogonal Memorycited by 4
- 2023FLuRKA: Fast and accurate unified Low-Rank & Kernel Attentioncited by 3
11 more
- 2025Scaling Reasoning without Attentioncited by 3
- 2026Proxy Compression for Language Modelingcited by 3
- 2024FactorLLM: Factorizing Knowledge via Mixture of Experts for Large Language Modelscited by 2
- 2023Coneheads: Hierarchy Aware Attentioncited by 1
- 2024Interactive Multi-Head Self-Attention with Linear Complexitycited by 1
- 2025FlashEVA: Accelerating LLM inference via Efficient Attentioncited by 1
- 2026Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Modelscited by 1
- 2025Feature Shift Localization Networkcited by 0
- 2025Shallow Neural Networks Learn Low-Degree Spherical Polynomials with Feature Learning by Learnable Channel Attentioncited by 0
- 2026Data-Aware Random Feature Kernel for Transformerscited by 0
- 2026Temporal Preservation over Processing: Diagnosing and Designing Spatiotemporal Single-Stage Video Detectorscited by 0
- 2026Temporal Preservation over Processing: Diagnosing and Designing Spatiotemporal Single-Stage Video Detectors30 Jun 2026
- 2026Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Models10 May 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Shallow Neural Networks Learn Low-Degree Spherical Polynomials with Feature Learning by Learnable Channel Attention23 Dec 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Feature Shift Localization Network10 Jun 2025
- 2025Scaling Reasoning without Attention28 May 2025
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map16 Nov 2024
- 2024FactorLLM: Factorizing Knowledge via Mixture of Experts for Large Language Models15 Aug 2024
- 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attention27 May 2024
- 2024Many-Shot In-Context Learning17 Apr 2024
11 more
- 2024Linear Attention Sequence Parallelism3 Apr 2024
- 2024DiJiang: Efficient Large Language Models through Compact Kernelization29 Mar 2024
- 2024TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmax5 Mar 2024
- 2024Interactive Multi-Head Self-Attention with Linear Complexity27 Feb 2024
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry6 Feb 2024
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models9 Jan 2024
- 2023Linear Attention via Orthogonal Memory18 Dec 2023
- 2023SARA-RT: Scaling up Robotics Transformers with Self-Adaptive Robust Attention4 Dec 2023
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer27 Jul 2023
- 2023FLuRKA: Fast and accurate unified Low-Rank & Kernel Attention27 Jun 2023
- 2023Coneheads: Hierarchy Aware Attention1 Jun 2023
- 2025Scaling Reasoning without Attentioncited by 3
- 2025Scaling Reasoning without Attention28 May 2025
- 2024Many-Shot In-Context Learningcited by 203
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
- 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attentioncited by 31
- 2023SARA-RT: Scaling up Robotics Transformers with Self-Adaptive Robust Attentioncited by 20
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 20
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 15
- 2024Linear Attention Sequence Parallelismcited by 8
- 2024TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmaxcited by 6
- 2023Linear Attention via Orthogonal Memorycited by 4
- 2023FLuRKA: Fast and accurate unified Low-Rank & Kernel Attentioncited by 3
12 most cited of 20 All 20 (JSON)
- 2026Temporal Preservation over Processing: Diagnosing and Designing Spatiotemporal Single-Stage Video Detectors30 Jun 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Shallow Neural Networks Learn Low-Degree Spherical Polynomials with Feature Learning by Learnable Channel Attention23 Dec 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Feature Shift Localization Network10 Jun 2025
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map16 Nov 2024
- 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attention27 May 2024
- 2024Many-Shot In-Context Learning17 Apr 2024
- 2024Linear Attention Sequence Parallelism3 Apr 2024
- 2024DiJiang: Efficient Large Language Models through Compact Kernelization29 Mar 2024
- 2024TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmax5 Mar 2024
12 newest of 20 All 20 (JSON)