Sinkhorn doubly stochastic attention rank decay analysis

Michela Lapenna, Rita Fioresi, Bahman Gharesifard
4/9/2026
cs.LGcs.AImath.OC

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lapenna2026sinkhorn,
  title  = {Sinkhorn doubly stochastic attention rank decay analysis},
  author = {Michela Lapenna and Rita Fioresi and Bahman Gharesifard},
  year   = {2026},
  eprint = {2604.07925},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.07925v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.07925.svg)](https://codeofpaper.com/paper/2604.07925)

Discussion