Search papers, labs, and topics across Lattice.
This paper analyzes rank collapse in self-attention mechanisms, comparing standard softmax attention with Sinkhorn-normalized doubly stochastic attention. They show that Sinkhorn normalization preserves rank more effectively across network depth than softmax, though skip connections remain crucial for mitigation. A theoretical bound is derived showing that rank decays to one doubly exponentially with depth for Sinkhorn attention, similar to softmax.
Sinkhorn attention slows rank collapse in deep transformers, but not enough to avoid the need for skip connections.
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.