mlsanityData to 7 Oct 2026

Sparse Attention with Linear Units

arXiv 2104.07012 ↗First posted 14 Apr 2021cs.CL cs.LGcited by 41

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2016Layer Normalizationcited by 5,579
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  9. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  10. 2020Reformer: The Efficient Transformercited by 1,658
  11. 2020Rethinking Attention with Performerscited by 1,584
  12. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
24 more
  1. 2019Root Mean Square Layer Normalizationcited by 1,425
  2. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  3. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  4. 2019Attention is not Explanationcited by 916
  5. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  6. 2019Attention is not not Explanationcited by 629
  7. 2019Text Summarization with Pretrained Encoderscited by 553
  8. 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 515
  9. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  10. 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 337
  11. 2017State-of-the-art Speech Recognition With Sequence-to-Sequence Modelscited by 196
  12. 2019Sparse Sequence-to-Sequence Modelscited by 167
  13. 2019Adaptively Sparse Transformerscited by 154
  14. 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
  15. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  16. 2019Explicit Sparse Transformer: Concentrated Attention Through Explicit Selectioncited by 61
  17. 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
  18. 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 38
  19. 2020Accurate Word Alignment Induction from Neural Machine Translationcited by 32
  20. 2017What does Attention in Neural Machine Translation Pay Attention to?cited by 30
  21. 2019Adding Interpretable Attention to Neural Translation Models Improves Word Alignmentcited by 30
  22. 2019Saliency-driven Word Alignment Interpretation for Neural Machine Translationcited by 27
  23. 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
  24. 2017Confidence through Attentioncited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 5; 2023: 6; 2024: 9; 2025: 10; 2026: 9.

41 papers.

Sort:

By area:

  1. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
  2. 2022The Devil in Linear Transformercited by 98
  3. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
  4. 2023A Study on ReLU and Softmax in Transformercited by 53
  5. 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
  6. 2023Learning Transformer Programscited by 40
  7. 2024Foundation Models for Music: A Surveycited by 34
  8. 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
  9. 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
  10. 2024Mixture of Attentions For Speculative Decodingcited by 17
  11. 2021Predicting Attention Sparsity in Transformerscited by 13
  12. 2023TransRadar: Adaptive-Directional Transformer for Real-Time Multi-View Radar Semantic Segmentationcited by 9
29 more
  1. 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelitycited by 9
  2. 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODEcited by 6
  3. 2024CCDSReFormer: Traffic Flow Prediction with a Criss-Crossed Dual-Stream Enhanced Rectified Transformer Modelcited by 5
  4. 2025KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inferencecited by 5
  5. 2022Abstractive Summarization Guided by Latent Hierarchical Document Structurecited by 4
  6. 2024A Cost-Efficient FPGA Implementation of Tiny Transformer Model using Neural ODEcited by 4
  7. 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modelingcited by 4
  8. 2021Speeding Up Entmaxcited by 3
  9. 2025Neuronal Attention Circuit (NAC) for Representation Learningcited by 3
  10. 2022Leveraging commonsense for object localisation in partial scenescited by 2
  11. 2023Towards Equipping Transformer with the Ability of Systematic Compositionalitycited by 2
  12. 2025Top-Theta Attention: Sparsifying Transformers by Compensated Thresholdingcited by 2
  13. 2026HyperMLP: An Integrated Perspective for Sequence Modelingcited by 2
  14. 2023Low-latency Space-time Supersampling for Real-time Renderingcited by 1
  15. 2024AYDIV: Adaptable Yielding 3D Object Detection via Integrated Contextual Vision Transformercited by 1
  16. 2025TRA: Better Length Generalisation with Threshold Relative Attentioncited by 1
  17. 2025Exploring Superposition and Interference in State-of-the-Art Low-Parameter Vision Modelscited by 1
  18. 2023Learning Section Weights for Multi-Label Document Classificationcited by 0
  19. 2025Converting Transformers into DGNNs Formcited by 0
  20. 2025Attention Condensation via Sparsity Induced Regularized Trainingcited by 0
  21. 2025Dual Attention Residual U-Net for Accurate Brain Ultrasound Segmentation in IVH Detectioncited by 0
  22. 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
  23. 2026What Makes a Good Query? Measuring the Impact of Human-Confusing Linguistic Features on LLM Performancecited by 0
  24. 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inferencecited by 0
  25. 2026Empty SPACE: Cross-Attention Sparsity for Concept Erasure in Diffusion Modelscited by 0
  26. 2026Learning Structurally Consistent Representations for Multi-View Radar Semantic Segmentationcited by 0
  27. 2026Thresholded Cross-Attention for Reliable Intensity-Chromaticity Fusion in Low-Light Image Enhancementcited by 0
  28. 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamicscited by 0
  29. 2026Pretraining Transformers with Quantized Softmax in Attentioncited by 0