mlsanityData to 7 Oct 2026

Theory, Analysis, and Best Practices for Sigmoid Self-Attention

arXiv 2409.04431 ↗First posted 6 Sep 2024cs.LGcited by 62

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 22; 2026: 34.

62 papers.

Sort:

By area:

  1. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
  2. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
  3. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
  4. 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
  5. 2025Systematic Outliers in Large Language Modelscited by 32
  6. 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
  7. 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 23
  8. 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 21
  9. 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
  10. 2024Attention layers provably solve single-location regressioncited by 15
  11. 2025Always Skip Attentioncited by 12
  12. 2024Analog In-Memory Computing Attention Mechanism for Fast and Energy-Efficient Large Language Modelscited by 11
38 more
  1. 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformerscited by 7
  2. 2025RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contextscited by 4
  3. 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapsecited by 4
  4. 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 4
  5. 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
  6. 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMscited by 3
  7. 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspectivecited by 3
  8. 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approachcited by 3
  9. 2025Self-Adjust Softmaxcited by 3
  10. 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalizationcited by 3
  11. 2025Scaling Context Requires Rethinking Attentioncited by 3
  12. 2025Your Attention Matters: to Improve Model Robustness to Noise and Spurious Correlationscited by 3
  13. 2025PRISMA: Improving the Accuracy-Latency Frontier of Diffusion-based PDE Solvers Using Physics-Informed Spectral Attentioncited by 2
  14. 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sortingcited by 2
  15. 2026Attention Needs to Focus: A Unified Perspective on Attention Allocationcited by 2
  16. 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Modelscited by 2
  17. 2026Legible-by-Construction: Attention and End-to-End Transformerscited by 2
  18. 2025Smarter Together: Combining Large Language Models and Small Models for Physiological Signals Visual Inspectioncited by 1
  19. 2025Intra-DP: A High Performance Collaborative Inference System for Mobile Edge Computingcited by 1
  20. 2025ENSI: Efficient Non-Interactive Secure Inference for Large Language Modelscited by 1
  21. 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecastingcited by 1
  22. 2026A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Expertscited by 1
  23. 2026Screening Is Enoughcited by 1
  24. 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
  25. 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 0
  26. 2025Dynamic Injection of Entity Knowledge into Dense Retrieverscited by 0
  27. 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
  28. 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 0
  29. 2026From Global to Local: Learning Context-Aware Graph Representations for Document Classification and Summarizationcited by 0
  30. 2026Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutionscited by 0
  31. 2026Integrated electro-optic attention nonlinearities for transformerscited by 0
  32. 2026Enhancing Continual Learning of Vision-Language Models via Dynamic Prefix Weightingcited by 0
  33. 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Modelscited by 0
  34. 2026Cubit: Token Mixer with Kernel Ridge Regressioncited by 0
  35. 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparitycited by 0
  36. 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flowscited by 0
  37. 2026Forget Attention: Importance-Aware Attention Is All You Needcited by 0
  38. 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0

50 most cited of 62 All 62 (JSON)