Sparse Attention with Linear Units
Not on the map. Why?
Abstract (arXiv)
Recently, it has been argued that encoder-decoder models can be made more interpretable by replacing the softmax function in the attention with its sparse variants. In this work, we introduce a novel, simple method for achieving sparsity in attention: we replace the softmax activation with a ReLU, and show that sparsity naturally emerges from such a formulation. Training stability is achieved with layer normalization with either a specialized initialization or an additional gating function. Our model, which we call Rectified Linear Attention (ReLA), is easy to implement and more efficient than previously proposed sparse attention mechanisms. We apply ReLA to the Transformer and conduct experiments on five machine translation tasks. ReLA achieves translation performance comparable to several strong baselines, with training and decoding speed similar to that of the vanilla attention. Our analysis shows that ReLA delivers high sparsity rate and head diversity, and the induced cross attention achieves better accuracy with respect to source-target word alignment than recent sparsified softmax-based models. Intriguingly, ReLA heads also learn to attend to nothing (i.e. 'switch off') for some queries, which is not possible with sparsified softmax alternatives.
Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Builds on 36 of its 46 references that are in the map. First posted on arXiv 14 Apr 2021.
Builds on
36 of 46 references.
References · 36
- 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
- 2016Layer Normalizationcited by 5,579
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
24 more
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Attention is not not Explanationcited by 629
- 2019Text Summarization with Pretrained Encoderscited by 553
- 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 515
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 337
- 2017State-of-the-art Speech Recognition With Sequence-to-Sequence Modelscited by 196
- 2019Sparse Sequence-to-Sequence Modelscited by 167
- 2019Adaptively Sparse Transformerscited by 154
- 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
- 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
- 2019Explicit Sparse Transformer: Concentrated Attention Through Explicit Selectioncited by 61
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
- 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 38
- 2020Accurate Word Alignment Induction from Neural Machine Translationcited by 32
- 2017What does Attention in Neural Machine Translation Pay Attention to?cited by 30
- 2019Adding Interpretable Attention to Neural Translation Models Improves Word Alignmentcited by 30
- 2019Saliency-driven Word Alignment Interpretation for Neural Machine Translationcited by 27
- 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
- 2017Confidence through Attentioncited by 8
Built on by
Citing papers per year: 2021: 2; 2022: 5; 2023: 6; 2024: 9; 2025: 10; 2026: 9.
41 papers.
Sort:
By area:
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2022The Devil in Linear Transformercited by 98
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2023Learning Transformer Programscited by 40
- 2024Foundation Models for Music: A Surveycited by 34
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
- 2024Mixture of Attentions For Speculative Decodingcited by 17
- 2021Predicting Attention Sparsity in Transformerscited by 13
- 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentationcited by 9
29 more
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelitycited by 9
- 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODEcited by 6
- 2024CCDSReFormer: Traffic Flow Prediction with a Criss-Crossed Dual-Stream Enhanced Rectified Transformer Modelcited by 5
- 2025KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inferencecited by 5
- 2022Abstractive Summarization Guided by Latent Hierarchical Document Structurecited by 4
- 2024A Cost-Efficient FPGA Implementation of Tiny Transformer Model using Neural ODEcited by 4
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modelingcited by 4
- 2021Speeding Up Entmaxcited by 3
- 2025Neuronal Attention Circuit (NAC) for Representation Learningcited by 3
- 2022Leveraging commonsense for object localisation in partial scenescited by 2
- 2023Towards Equipping Transformer with the Ability of Systematic Compositionalitycited by 2
- 2025Top-Theta Attention: Sparsifying Transformers by Compensated Thresholdingcited by 2
- 2026HyperMLP: An Integrated Perspective for Sequence Modelingcited by 2
- 2023Low-latency Space-time Supersampling for Real-time Renderingcited by 1
- 2024AYDIV: Adaptable Yielding 3D Object Detection via Integrated Contextual Vision Transformercited by 1
- 2025TRA: Better Length Generalisation with Threshold Relative Attentioncited by 1
- 2025Exploring Superposition and Interference in State-of-the-Art Low-Parameter Vision Modelscited by 1
- 2023Learning Section Weights for Multi-Label Document Classificationcited by 0
- 2025Converting Transformers into DGNNs Formcited by 0
- 2025Attention Condensation via Sparsity Induced Regularized Trainingcited by 0
- 2025Dual Attention Residual U-Net for Accurate Brain Ultrasound Segmentation in IVH Detectioncited by 0
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2026What Makes a Good Query? Measuring the Impact of Human-Confusing Linguistic Features on LLM Performancecited by 0
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inferencecited by 0
- 2026Empty SPACE: Cross-Attention Sparsity for Concept Erasure in Diffusion Modelscited by 0
- 2026Learning Structurally Consistent Representations for Multi-View Radar Semantic Segmentationcited by 0
- 2026Thresholded Cross-Attention for Reliable Intensity-Chromaticity Fusion in Low-Light Image Enhancementcited by 0
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamicscited by 0
- 2026Pretraining Transformers with Quantized Softmax in Attentioncited by 0
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Thresholded Cross-Attention for Reliable Intensity-Chromaticity Fusion in Low-Light Image Enhancement15 Jul 2026
- 2026Learning Structurally Consistent Representations for Multi-View Radar Semantic Segmentation30 Jun 2026
- 2026Empty SPACE: Cross-Attention Sparsity for Concept Erasure in Diffusion Models11 May 2026
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inference2 Apr 2026
- 2026What Makes a Good Query? Measuring the Impact of Human-Confusing Linguistic Features on LLM Performance23 Feb 2026
- 2026HyperMLP: An Integrated Perspective for Sequence Modeling13 Feb 2026
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling17 Jan 2026
- 2025Neuronal Attention Circuit (NAC) for Representation Learning11 Dec 2025
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity5 Dec 2025
- 2025KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inference14 Nov 2025
29 more
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Exploring Superposition and Interference in State-of-the-Art Low-Parameter Vision Models21 Jul 2025
- 2025Dual Attention Residual U-Net for Accurate Brain Ultrasound Segmentation in IVH Detection23 May 2025
- 2025TRA: Better Length Generalisation with Threshold Relative Attention29 Mar 2025
- 2025Attention Condensation via Sparsity Induced Regularized Training3 Mar 2025
- 2025Top-Theta Attention: Sparsifying Transformers by Compensated Thresholding12 Feb 2025
- 2025Converting Transformers into DGNNs Form1 Feb 2025
- 2024Mixture of Attentions For Speculative Decoding4 Oct 2024
- 2024Foundation Models for Music: A Survey26 Aug 2024
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspective22 Jul 2024
- 2024Loki: Low-rank Keys for Efficient Sparse Attention4 Jun 2024
- 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr 2024
- 2024CCDSReFormer: Traffic Flow Prediction with a Criss-Crossed Dual-Stream Enhanced Rectified Transformer Model26 Mar 2024
- 2024AYDIV: Adaptable Yielding 3D Object Detection via Integrated Contextual Vision Transformer12 Feb 2024
- 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODE4 Feb 2024
- 2024A Cost-Efficient FPGA Implementation of Tiny Transformer Model using Neural ODE5 Jan 2024
- 2023Low-latency Space-time Supersampling for Real-time Rendering18 Dec 2023
- 2023Towards Equipping Transformer with the Ability of Systematic Compositionality12 Dec 2023
- 2023Learning Section Weights for Multi-Label Document Classification26 Nov 2023
- 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentation3 Oct 2023
- 2023Learning Transformer Programs1 Jun 2023
- 2023A Study on ReLU and Softmax in Transformer13 Feb 2023
- 2022Abstractive Summarization Guided by Latent Hierarchical Document Structure17 Nov 2022
- 2022Leveraging commonsense for object localisation in partial scenes1 Nov 2022
- 2022The Devil in Linear Transformer19 Oct 2022
- 2022Neural Architecture Search on Efficient Transformers and Beyond28 Jul 2022
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformers17 May 2022
- 2021Speeding Up Entmax12 Nov 2021
- 2021Predicting Attention Sparsity in Transformers24 Sep 2021
- 2024Foundation Models for Music: A Surveycited by 34
- 2026Empty SPACE: Cross-Attention Sparsity for Concept Erasure in Diffusion Modelscited by 0
- 2026Empty SPACE: Cross-Attention Sparsity for Concept Erasure in Diffusion Models11 May 2026
- 2024Foundation Models for Music: A Survey26 Aug 2024
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2022The Devil in Linear Transformercited by 98
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2023Learning Transformer Programscited by 40
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
- 2021Predicting Attention Sparsity in Transformerscited by 13
- 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentationcited by 9
- 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODEcited by 6
- 2024CCDSReFormer: Traffic Flow Prediction with a Criss-Crossed Dual-Stream Enhanced Rectified Transformer Modelcited by 5
12 most cited of 36 All 36 (JSON)
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Thresholded Cross-Attention for Reliable Intensity-Chromaticity Fusion in Low-Light Image Enhancement15 Jul 2026
- 2026Learning Structurally Consistent Representations for Multi-View Radar Semantic Segmentation30 Jun 2026
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inference2 Apr 2026
- 2026What Makes a Good Query? Measuring the Impact of Human-Confusing Linguistic Features on LLM Performance23 Feb 2026
- 2026HyperMLP: An Integrated Perspective for Sequence Modeling13 Feb 2026
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling17 Jan 2026
- 2025Neuronal Attention Circuit (NAC) for Representation Learning11 Dec 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Exploring Superposition and Interference in State-of-the-Art Low-Parameter Vision Models21 Jul 2025
- 2025Dual Attention Residual U-Net for Accurate Brain Ultrasound Segmentation in IVH Detection23 May 2025
12 newest of 36 All 36 (JSON)