Random Feature Attention
Not on the map. Why?
Abstract (arXiv)
Transformers are state-of-the-art models for a variety of sequence modeling tasks. At their core is an attention function which models pairwise interactions between the inputs at every timestep. While attention is powerful, it does not scale efficiently to long sequences due to its quadratic time and space complexity in the sequence length. We propose RFA, a linear time and space attention that uses random feature methods to approximate the softmax function, and explore its application in transformers. RFA can be used as a drop-in replacement for conventional softmax attention and offers a straightforward way of learning with recency bias through an optional gating mechanism. Experiments on language modeling and machine translation demonstrate that RFA achieves similar or better performance compared to strong transformer baselines. In the machine translation experiment, RFA decodes twice as fast as a vanilla transformer. Compared to existing efficient transformer variants, RFA is competitive in terms of both accuracy and efficiency on three long text classification datasets. Our analysis shows that RFA's efficiency gains are especially notable on long sequences, suggesting that RFA will be particularly useful in tasks that require working with large inputs, fast decoding speed, or low memory footprints.
Key facts. Cited by 350 papers in the map (data through 7 Oct 2026). Builds on 59 of its 79 references that are in the map. First posted on arXiv 3 Mar 2021.
Builds on
59 of 79 references.
References · 59
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
38 more
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 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
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2015Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)cited by 1,061
- 2020Efficient Transformers: A Surveycited by 784
- 2018Image Transformercited by 770
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2018Universal Transformerscited by 613
- 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2019Stabilizing Transformers for Reinforcement Learningcited by 262
- 2020Sparse Sinkhorn Attentioncited by 250
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2017Regularizing and Optimizing LSTM Language Modelscited by 205
- 2018Scaling Neural Machine Translationcited by 204
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2016Using Fast Weights to Attend to the Recent Pastcited by 161
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Adaptive Attention Span in Transformerscited by 148
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2020Lite Transformer with Long-Short Range Attentioncited by 127
- 2016Orthogonal Random Featurescited by 89
- 2018Document-Level Neural Machine Translation with Hierarchical Attention Networkscited by 85
- 2018Differentiable plasticity: training plastic neural networks with backpropagationcited by 83
- 2017Classical Structured Prediction Losses for Sequence to Sequence Learningcited by 55
- 2019Transformers with convolutional context for ASRcited by 44
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2021: 49; 2022: 75; 2023: 66; 2024: 67; 2025: 48; 2026: 45.
350 papers.
Sort:
By area:
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023A Survey of Large Language Modelscited by 2,537
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021A Survey of Transformerscited by 399
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021Choose a Transformer: Fourier or Galerkincited by 333
- 2023GNOT: A General Neural Operator Transformer for Operator Learningcited by 321
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
38 more
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023VeRA: Vector-based Random Matrix Adaptationcited by 294
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 229
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2022Transformer Quality in Linear Timecited by 189
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2023Efficient Large Language Models: A Surveycited by 183
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2023Spike-driven Transformercited by 141
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
- 2024Transformers are Multi-State RNNscited by 120
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2022Training Language Models with Memory Augmentationcited by 112
- 2021An Attention Free Transformercited by 111
- 2022Block-Recurrent Transformerscited by 107
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2022The Devil in Linear Transformercited by 98
- 2021Luna: Linear Unified Nested Attentioncited by 96
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86
- 2021Scalable Vision Transformers with Hierarchical Poolingcited by 84
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2022Temporal Attention Unit: Towards Efficient Spatiotemporal Predictive Learningcited by 84
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 84
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inferencecited by 75
50 most cited of 350 All 350 (JSON)
- 2026Pixel-Level Transformers in Remote Sensing: A Canopy Height Case Study29 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026L'evy Attention: Single-Pass Predictive Uncertainty for Continuous-Time Attention19 Aug 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026HSMLA: Hierarchical Softmax Multi-scale Linear Attention for Efficient Vision Transformers7 Aug 2026
- 2026A Coulomb Particle Model for Learning Kernel Attention in Transformers26 Jul 2026
- 2026ELSAA: Efficient Low-Rank and Sparse Attention Approximation for Training Transformers22 Jul 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026Generalization Analysis of Transformers in Distribution Regression28 Jun 2026
38 more
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernel26 Jun 2026
- 2026Spatial Priors via Space Filling Curves for Small and Limited Data Vision Transformers8 Jun 2026
- 2026Blurry Window Attention31 May 2026
- 2026Don't Read Everything: A Curvature-Conditioned Query for Linear Attention31 May 2026
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondences29 May 2026
- 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations27 May 2026
- 2026Universal Time Series Generation with Neural Controlled Differential Equations27 May 2026
- 2026LAPLEX: The FFT of Learnable Laplace Kernels23 May 2026
- 2026Interdomain Attention: Beyond Token-Level Key-Value Memory23 May 2026
- 2026Inference Time Context Sparsity: Illusion or Opportunity?22 May 2026
- 2026OSDN: Improving Delta Rule with Provable Online Preconditioning in Linear Attention13 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026On the global convergence of gradient flow for wide shallow models beyond homogeneous nonlinearities11 May 2026
- 2026Rethinking Random Transformers as Adaptive Sequence Smoothers for Sleep Staging11 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
- 2026FreqFormer: Hierarchical Frequency-Domain Attention with Adaptive Spectral Routing for Long-Sequence Video Diffusion Transformers14 Apr 2026
- 2026MICA: Multivariate Infini Compressive Attention for Time Series Forecasting7 Apr 2026
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillation1 Apr 2026
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling15 Mar 2026
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2026Reverso: Efficient Time Series Foundation Models for Zero-shot Forecasting19 Feb 2026
- 2026Coden: Efficient Temporal Graph Neural Networks for Continuous Prediction13 Feb 2026
- 2026HLA: Hadamard Linear Attention12 Feb 2026
- 2026Manifold Random Features3 Feb 2026
- 2026Dissecting Outlier Dynamics in LLM NVFP4 Pretraining2 Feb 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
- 2026A State-Transition Framework for Efficient LLM Reasoning1 Feb 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head12 Jan 2026
- 2026RMAAT: Astrocyte-Inspired Memory Compression and Replay for Efficient Long-Context Transformers1 Jan 2026
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models29 Dec 2025
- 2025Shallow Neural Networks Learn Low-Degree Spherical Polynomials with Feature Learning by Learnable Channel Attention23 Dec 2025
- 2025A Mathematical Theory of Top-k Sparse Attention via Total Variation Distance8 Dec 2025
- 2025GSPN-2: Efficient Parallel Sequence Modeling28 Nov 2025
- 2025Selective Rotary Position Embedding21 Nov 2025
50 newest of 350 All 350 (JSON)
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024CDMamba: Incorporating Local Clues into Mamba for Remote Sensing Image Binary Change Detectioncited by 48
- 2024Is Mamba Capable of In-Context Learning?cited by 45
- 2024Autoregressive Pretraining with Mamba in Visioncited by 21
- 2025Sequential-Parallel Duality in Prefix Scannable Modelscited by 8
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillationcited by 3
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexitycited by 1
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic Viewcited by 1
- 2025MobileViM: A Light-weight and Dimension-independent Vision Mamba for 3D Medical Image Analysiscited by 0
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillation1 Apr 2026
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2025Sequential-Parallel Duality in Prefix Scannable Models12 Jun 2025
- 2025MobileViM: A Light-weight and Dimension-independent Vision Mamba for 3D Medical Image Analysis19 Feb 2025
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity9 Oct 2024
- 2024Autoregressive Pretraining with Mamba in Vision11 Jun 2024
- 2024CDMamba: Incorporating Local Clues into Mamba for Remote Sensing Image Binary Change Detection6 Jun 2024
- 2024Is Mamba Capable of In-Context Learning?5 Feb 2024
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec 2023
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
- 2024Transformers are Multi-State RNNscited by 120
- 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inferencecited by 75
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
- 2025Efficient Large Language Model Inference with Neural Block Linearizationcited by 1
- 2026Blurry Window Attentioncited by 1
- 2026Multi-Head Low-Rank Attentioncited by 0
- 2026Blurry Window Attention31 May 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2025Efficient Large Language Model Inference with Neural Block Linearization27 May 2025
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models11 Jun 2024
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models23 May 2024
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference14 Feb 2024
- 2024Transformers are Multi-State RNNs11 Jan 2024
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2025Lethe: Layer- and Time-Adaptive KV Cache Pruning for Reasoning-Intensive LLM Servingcited by 5
- 2026A State-Transition Framework for Efficient LLM Reasoningcited by 1
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoningcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026A State-Transition Framework for Efficient LLM Reasoning1 Feb 2026
- 2025Lethe: Layer- and Time-Adaptive KV Cache Pruning for Reasoning-Intensive LLM Serving8 Nov 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun 2025
- 2022cosFormer: Rethinking Softmax in Attention17 Feb 2022
- 2023Accelerating Neural Self-Improvement via Bootstrappingcited by 1
- 2023Accelerating Neural Self-Improvement via Bootstrapping2 May 2023
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023A Survey of Large Language Modelscited by 2,537
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021A Survey of Transformerscited by 399
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021Choose a Transformer: Fourier or Galerkincited by 333
- 2023GNOT: A General Neural Operator Transformer for Operator Learningcited by 321
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
12 most cited of 322 All 322 (JSON)
- 2026Pixel-Level Transformers in Remote Sensing: A Canopy Height Case Study29 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026L'evy Attention: Single-Pass Predictive Uncertainty for Continuous-Time Attention19 Aug 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026HSMLA: Hierarchical Softmax Multi-scale Linear Attention for Efficient Vision Transformers7 Aug 2026
- 2026A Coulomb Particle Model for Learning Kernel Attention in Transformers26 Jul 2026
- 2026ELSAA: Efficient Low-Rank and Sparse Attention Approximation for Training Transformers22 Jul 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026Generalization Analysis of Transformers in Distribution Regression28 Jun 2026
12 newest of 322 All 322 (JSON)