Sinkhorn doubly stochastic attention rank decay analysis
cs.LG, cs.AI, math.OC
Submitted: 2026-04-09
Updated: 2026-10-06
Journal ref: Transactions on Machine Learning Research (TMLR), 2026, https://openreview.net/forum?id=fGItYoS8j1
Code: https://github.com/michaelsdr/sinkformers
License: http://creativecommons.org/licenses/by/4.0/
The gist: The self-attention mechanism is central to the success of Transformer architectures.
Terminology
Abstract
The self-attention mechanism is central to the success of Transformer architectures. However, standard row-stochastic attention has been shown to suffer from significant signal degradation across layers. In particular, it can induce rank collapse, resulting in increasingly uniform token representations, as well as entropy collapse, characterized by highly concentrated attention distributions. Recent work has highlighted the benefits of doubly stochastic attention as a form of entropy regularization, promoting a more balanced attention distribution and leading to improved empirical performance. In this paper, we study rank collapse across network depth and show that doubly stochastic attention matrices normalized with Sinkhorn algorithm preserve rank more effectively than standard softmax row-stochastic ones. As previously shown for softmax, skip connections are crucial to mitigate rank collapse. We empirically validate this phenomenon on both sentiment analysis and image classification tasks. Moreover, we derive a theoretical bound for the pure self-attention rank decay when using Sinkhorn normalization and find that rank decays to one doubly exponentially with depth, a phenomenon that has already been shown for softmax.
Sources
- Temperature check: theory and practice for training models with softmax-cross-entropy losses
- Neural Machine Translation by Jointly Learning to Align and Translate
- Quantum Doubly Stochastic Transformers
- Lipschitz Networks and Distributional Robustness
- Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depth
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
- The Lipschitz Constant of Self-Attention
- OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentation
- Adam: A Method for Stochastic Optimization
- Expected Sliced Transport Plans
- Softmax is $1/2$-Lipschitz: A tight bound across all $\ell_p$ norms
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- LipsFormer: Introducing Lipschitz Continuity to Vision Transformers
- Sinkformers: Transformers with Doubly Stochastic Attention
- ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans
- Rethinking Initialization of the Sinkhorn Algorithm
- Linformer: Self-Attention with Linear Complexity
- Exploring the Impact of Temperature Scaling in Softmax for Classification and Adversarial Robustness
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks