Theory, Analysis, and Best Practices for Sigmoid Self-Attention
Not on the map. Why?
Abstract (arXiv)
Attention is a key part of the transformer architecture. It is a sequence-to-sequence mapping that transforms each sequence element into a weighted sum of values. The weights are typically obtained as the softmax of dot products between keys and queries. Recent work has explored alternatives to softmax attention in transformers, such as ReLU and sigmoid activations. In this work, we revisit sigmoid attention and conduct an in-depth theoretical and empirical analysis. Theoretically, we prove that transformers with sigmoid attention are universal function approximators and benefit from improved regularity compared to softmax attention. Through detailed empirical analysis, we identify stabilization of large initial attention norms during the early stages of training as a crucial factor for the successful training of models with sigmoid attention, outperforming prior attempts. We also introduce FLASHSIGMOID, a hardware-aware and memory-efficient implementation of sigmoid attention yielding a 17% inference kernel speed-up over FLASHATTENTION2 on H100 GPUs. Experiments across language, vision, and speech show that properly normalized sigmoid attention matches the strong performance of softmax attention on a wide range of domains and scales, which previous attempts at sigmoid attention were unable to fully achieve. Our work unifies prior art and establishes best practices for sigmoid attention as a drop-in softmax replacement in transformers.
Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Sep 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2024: 6; 2025: 22; 2026: 34.
62 papers.
Sort:
By area:
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2025Systematic Outliers in Large Language Modelscited by 32
- 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 23
- 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 21
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
- 2024Attention layers provably solve single-location regressioncited by 15
- 2025Always Skip Attentioncited by 12
- 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Modelscited by 11
38 more
- 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformerscited by 7
- 2025RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contextscited by 4
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapsecited by 4
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
- 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMscited by 3
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspectivecited by 3
- 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approachcited by 3
- 2025Self-Adjust Softmaxcited by 3
- 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalizationcited by 3
- 2025Scaling Context Requires Rethinking Attentioncited by 3
- 2025Your Attention Matters: to Improve Model Robustness to Noise and Spurious Correlationscited by 3
- 2025PRISMA: Improving the Accuracy-Latency Frontier of Diffusion-based PDE Solvers Using Physics-Informed Spectral Attentioncited by 2
- 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sortingcited by 2
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocationcited by 2
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Modelscited by 2
- 2026Legible-by-Construction: Attention and End-to-End Transformerscited by 2
- 2025Smarter Together: Combining Large Language Models and Small Models for Physiological Signals Visual Inspectioncited by 1
- 2025Intra-DP: A High Performance Collaborative Inference System for Mobile Edge Computingcited by 1
- 2025ENSI: Efficient Non-Interactive Secure Inference for Large Language Modelscited by 1
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecastingcited by 1
- 2026A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Expertscited by 1
- 2026Screening Is Enoughcited by 1
- 2026Most Transformer Modifications Still Do Not Transfer at 1-3B: A 2020-2026 Update to Narang et al. (2021) with Downstream Evaluation and a Noise Floorcited by 1
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 0
- 2025Dynamic Injection of Entity Knowledge into Dense Retrieverscited by 0
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 0
- 2026From Global to Local: Learning Context-Aware Graph Representations for Document Classification and Summarizationcited by 0
- 2026Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutionscited by 0
- 2026Integrated electro-optic attention nonlinearities for transformerscited by 0
- 2026Enhancing Continual Learning of Vision-Language Models via Dynamic Prefix Weightingcited by 0
- 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Modelscited by 0
- 2026Cubit: Token Mixer with Kernel Ridge Regressioncited by 0
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparitycited by 0
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flowscited by 0
- 2026Forget Attention: Importance-Aware Attention Is All You Needcited by 0
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0
50 most cited of 62 All 62 (JSON)
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measures30 Sep 2026
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contexts30 Sep 2026
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026Fast Polynomial Transcendentals for LLMs3 Sep 2026
- 2026Sigmoid Attention as a Better Substrate for Learned KV Cache Eviction24 Aug 2026
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Ask Self, Ask Others: Relation Is All You Need20 Aug 2026
- 2026Variational-Ising-Attention:Tailored Attention Matters for Science26 Jul 2026
- 2026STAR: Skeletal Token Alignment and Rearrangement for Interaction Recognition19 Jul 2026
- 2026Legible-by-Construction: Attention and End-to-End Transformers5 Jul 2026
- 2026Warranted Attention: Learning What to Pass from Attention to Prediction29 Jun 2026
- 2026Boltzmann Attention: Learnable Ising Couplings for Cooperative Attention10 Jun 2026
38 more
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026The Devil is in the Spectrum: Mitigating Representation Collapse in LLMs via Topologically Regularized Side-Path2 Jun 2026
- 2026Forget Attention: Importance-Aware Attention Is All You Need1 Jun 2026
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMs25 May 2026
- 2026Most Transformer Modifications Still Do Not Transfer at 1-3B: A 2020-2026 Update to Narang et al. (2021) with Downstream Evaluation and a Noise Floor20 May 2026
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows15 May 2026
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models8 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026Cubit: Token Mixer with Kernel Ridge Regression7 May 2026
- 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Models29 Apr 2026
- 2026Enhancing Continual Learning of Vision-Language Models via Dynamic Prefix Weighting20 Apr 2026
- 2026Integrated electro-optic attention nonlinearities for transformers10 Apr 2026
- 2026Screening Is Enough1 Apr 2026
- 2026Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutions6 Mar 2026
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks5 Mar 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026From Global to Local: Learning Context-Aware Graph Representations for Document Classification and Summarization3 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Experts1 Feb 2026
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse1 Feb 2026
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training30 Jan 2026
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocation1 Jan 2026
- 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sorting12 Dec 2025
- 2025PRISMA: Improving the Accuracy-Latency Frontier of Diffusion-based PDE Solvers Using Physics-Informed Spectral Attention1 Dec 2025
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformers10 Oct 2025
- 2025RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contexts5 Oct 2025
- 2025ENSI: Efficient Non-Interactive Secure Inference for Large Language Models11 Sep 2025
- 2025Your Attention Matters: to Improve Model Robustness to Noise and Spurious Correlations28 Jul 2025
- 2025Intra-DP: A High Performance Collaborative Inference System for Mobile Edge Computing8 Jul 2025
- 2025Scaling Context Requires Rethinking Attention6 Jul 2025
- 2025Dynamic Injection of Entity Knowledge into Dense Retrievers5 Jul 2025
- 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalization2 Jun 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2025Always Skip Attention4 May 2025
- 2025Sliding Window Attention Training for Efficient Large Language Models26 Feb 2025
- 2025Self-Adjust Softmax25 Feb 2025
50 newest of 62 All 62 (JSON)
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapsecited by 4
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspectivecited by 3
- 2026A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Expertscited by 1
- 2026A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Experts1 Feb 2026
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse1 Feb 2026
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspective1 Feb 2025
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2025Systematic Outliers in Large Language Modelscited by 32
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 23
- 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 21
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
- 2024Attention layers provably solve single-location regressioncited by 15
- 2025Always Skip Attentioncited by 12
- 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Modelscited by 11
- 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformerscited by 7
- 2025RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contextscited by 4
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
12 most cited of 51 All 51 (JSON)
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measures30 Sep 2026
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contexts30 Sep 2026
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026Fast Polynomial Transcendentals for LLMs3 Sep 2026
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Ask Self, Ask Others: Relation Is All You Need20 Aug 2026
- 2026Variational-Ising-Attention:Tailored Attention Matters for Science26 Jul 2026
- 2026STAR: Skeletal Token Alignment and Rearrangement for Interaction Recognition19 Jul 2026
- 2026Legible-by-Construction: Attention and End-to-End Transformers5 Jul 2026
- 2026Warranted Attention: Learning What to Pass from Attention to Prediction29 Jun 2026
- 2026Boltzmann Attention: Learnable Ising Couplings for Cooperative Attention10 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
12 newest of 51 All 51 (JSON)