Sinkformers: Transformers with Doubly Stochastic Attention
Not on the map. Why?
Abstract (arXiv)
Attention based models such as Transformers involve pairwise interactions between data points, modeled with a learnable attention matrix. Importantly, this attention matrix is normalized with the SoftMax operator, which makes it row-wise stochastic. In this paper, we propose instead to use Sinkhorn's algorithm to make attention matrices doubly stochastic. We call the resulting model a Sinkformer. We show that the row-wise stochastic attention matrices in classical Transformers get close to doubly stochastic matrices as the number of epochs increases, justifying the use of Sinkhorn normalization as an informative prior. On the theoretical side, we show that, unlike the SoftMax operation, this normalization makes it possible to understand the iterations of self-attention modules as a discretized gradient-flow for the Wasserstein metric. We also show in the infinite number of samples limit that, when rescaling both attention matrices and depth, Sinkformers operate a heat diffusion. On the experimental side, we show that Sinkformers enhance model accuracy in vision and natural language processing tasks. In particular, on 3D shapes classification, Sinkformers lead to a significant improvement.
Key facts. Cited by 137 papers in the map (data through 13 Oct 2026). Builds on 40 of its 64 references that are in the map. First posted on arXiv 22 Oct 2021.
Builds on
40 of 64 references.
References · 40
- 2017Attention Is All You Needcited by 60,106
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,539
- 2018Neural Ordinary Differential Equationscited by 3,750
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,295
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,487
- 2020Point Transformercited by 1,465
- 2016An overview of gradient descent optimization algorithmscited by 1,028
- 2021Scaling Vision Transformerscited by 998
28 more
- 2020PCT: Point cloud transformercited by 731
- 2017Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networkscited by 707
- 2019Deep Equilibrium Modelscited by 606
- 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 465
- 2019Differentiable Convex Optimization Layerscited by 461
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 413
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2019Augmented Neural ODEscited by 396
- 2018Invertible Residual Networkscited by 364
- 2020Sparse Sinkhorn Attentioncited by 251
- 2017Large Kernel Matters -- Improve Semantic Segmentation by Global Convolutional Networkcited by 208
- 2017Beyond Finite Layer Neural Networks: Bridging Deep Architectures and Numerical Differential Equationscited by 203
- 2021Efficient and Modular Implicit Differentiationcited by 201
- 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
- 2020The Lipschitz Constant of Self-Attentioncited by 172
- 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 111
- 2020Kernel Operations on the GPU, with Autodiff, without Memory Overflowscited by 103
- 2018A Mean-Field Optimal Control Formulation of Deep Learningcited by 67
- 2018SparseMAP: Differentiable Sparse Structured Inferencecited by 62
- 2018Differential Properties of Sinkhorn Approximation for Learning with Wasserstein Distancecited by 56
- 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
- 2021Momentum Residual Neural Networkscited by 36
- 2020Spectral convergence of diffusion maps: improved error bounds and an alternative normalisationcited by 25
- 2017Manifold learning with bi-stochastic kernelscited by 19
- 2020A Functional Perspective on Learning Symmetric Functions with Neural Networkscited by 16
- 2018Stochastic Deep Networkscited by 13
- 2018Stochastic Training of Residual Networks: a Differential Equation Viewpointcited by 12
- 2021On the Regularity of Attentioncited by 10
Built on by
Citing papers per year: 2021: 1; 2022: 7; 2023: 18; 2024: 31; 2025: 38; 2026: 42.
137 papers.
Sort:
By area:
- 2023A mathematical perspective on Transformerscited by 161
- 2023The emergence of clusters in self-attention dynamicscited by 135
- 2024A Survey on LoRA of Large Language Modelscited by 67
- 2023How Smooth Is Attention?cited by 44
- 2024Transformers are Universal In-context Learnerscited by 42
- 2022Sparsity-Constrained Optimal Transportcited by 32
- 2024Clustering in Causal Attention Maskingcited by 32
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Do Residual Neural Networks discretize Neural Ordinary Differential Equations?cited by 27
- 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
- 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 26
- 2025The Mean-Field Dynamics of Transformerscited by 26
38 more
- 2023Learning Gaussian Mixtures Using the Wasserstein-Fisher-Rao Gradient Flowcited by 25
- 2025A multiscale analysis of mean-field transformers in the moderate interaction regimecited by 25
- 2023Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approachcited by 24
- 2023Image Clustering via the Principle of Rate Reduction in the Age of Pretrained Modelscited by 22
- 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
- 2024Setting the Record Straight on Transformer Oversmoothingcited by 19
- 2024How do Transformers perform In-Context Autoregressive Learning?cited by 17
- 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Modelscited by 17
- 2023Unlocking Slot Attention by Changing Optimal Transport Costscited by 16
- 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
- 2022Rethinking Initialization of the Sinkhorn Algorithmcited by 14
- 2023Unsupervised Manifold Linearizing and Clusteringcited by 12
- 2023SNEkhorn: Dimension Reduction with Symmetric Entropic Affinitiescited by 12
- 2025Neural ODE Transformers: Analyzing Internal Dynamics and Adaptive Fine-tuningcited by 12
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 2025Synchronization of mean-field models on the circlecited by 11
- 2023Non-aligned supervision for Real Image Dehazingcited by 9
- 2024OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentationcited by 9
- 2024Towards Understanding the Universality of Transformers for Next-Token Predictioncited by 9
- 2025Hierarchical Refinement: Optimal Transport to Infinity and Beyondcited by 9
- 2025Normalization in Attention Dynamicscited by 9
- 2026FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPUcited by 9
- 2023Stochastic Latent Transformer: Efficient Modelling of Stochastically Forced Zonal Jetscited by 8
- 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiencycited by 8
- 2026Perceptrons and localization of attention's mean-field landscapecited by 8
- 2023Unbalanced Low-rank Optimal Transport Solverscited by 7
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2024Elliptical Attentioncited by 7
- 2025OT-Transformer: A Continuous-time Transformer Architecture with Optimal Transport Regularizationcited by 7
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2023Doubly Stochastic Graph-based Non-autoregressive Reaction Predictioncited by 6
- 2025Quantum Doubly Stochastic Transformerscited by 6
- 2025Transformers through the lens of support-preserving maps between measurescited by 6
- 2025Multistability of Self-Attention Dynamics in Transformerscited by 6
- 2026Clustering in Deep Stochastic Transformerscited by 6
- 2024Iterated Schr"odinger bridge approximation to Wasserstein Gradient Flowscited by 5
- 2025Linear Attention with Global Context: A Multipole Attention Mechanism for Vision and Physicscited by 5
50 most cited of 137 All 137 (JSON)
- 2026Universal interpolation for deep residual self-attention networks1 Oct 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Optimal transport meets speech: a tutorial review24 Sep 2026
- 2026oHC: Orthogonal Hyper-Connections on SO(4) via Quaternions2 Sep 2026
- 2026Measuring Optimal Transport in Transformer Depth1 Sep 2026
- 2026The Depth Flow of Token Representations Is Nonlinear and Does Not Descend Its Own Density30 Aug 2026
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026Power law graph attention: exact generalization of scaled dot-product attention, empirical collapse at inference10 Aug 2026
- 2026The Geometry of Semantic Space: A Continuous Geometric Framework for the Transformer Architecture19 Jul 2026
- 2026Multi-Scale Convolution with Optimal Transport Attention Effect on Multivariate Time Series12 Jul 2026
- 2026A Unified Framework for In-Context Learning with Causal and Masked Language Models5 Jul 2026
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers15 Jun 2026
38 more
- 2026Phase transitions for the noisy transformer model in arbitrary dimension3 Jun 2026
- 2026Reachability and asymptotics of Gaussian Transformer dynamics29 May 2026
- 2026CRMA: A Spectrally-Bounded Backbone for Modular Continual Fine-Tuning of LLMs29 May 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026Analogies between Transformer Layers and Power Method25 May 2026
- 2026The physics of AI weather models22 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026L2 over Wasserstein: Statistical Analysis for Optimal Transport20 May 2026
- 2026Spacetime Optimal-Transport Attention for Visuo-Haptic Imitation Learning of Contact-Rich Manipulation19 May 2026
- 2026Training Infinitely Deep and Wide Transformers17 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows15 May 2026
- 2026Fusion-fission forecasts when AI will shift to undesirable behavior14 May 2026
- 2026ASAP: Amortized Doubly-Stochastic Attention via Sliced Dual Projection13 May 2026
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime11 May 2026
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers8 May 2026
- 2026Revisiting Transformer Layer Parameterization Through Causal Energy Minimization8 May 2026
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnostics6 May 2026
- 2026On the Expressive Power of Transformers for Contextual Relations26 Mar 2026
- 2026SympFormer: Accelerated attention blocks via Inertial Dynamics on Density Manifolds17 Mar 2026
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noise6 Mar 2026
- 2026Transport Clustering: Solving Low-Rank Optimal Transport via Clustering3 Mar 2026
- 2026Entropy-Generated Attention Beyond Softmax and Entmax: Kaniadakis and Reciprocal-Symmetric Abe Operators9 Feb 2026
- 2026FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPU3 Feb 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026Clustering in Deep Stochastic Transformers29 Jan 2026
- 2026Perceptrons and localization of attention's mean-field landscape29 Jan 2026
- 2026Deep Neural Networks as Iterated Function Systems and a Generalization Bound27 Jan 2026
- 2026Differentiable Logic Synthesis: Spectral Coefficient Selection via Sinkhorn-Constrained Composition20 Jan 2026
- 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Models19 Jan 2026
- 2025Softmax as Linear Attention in the Large-Prompt Regime: a Measure-based Perspective12 Dec 2025
- 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sorting12 Dec 2025
- 2025Token Sample Complexity of Attention11 Dec 2025
- 2025Transformers for Tabular Data: A Training Perspective of Self-Attention via Optimal Transport10 Dec 2025
- 2025LUNA: Linear Universal Neural Attention with Generalization Guarantees8 Dec 2025
- 2025Optimal and Diffusion Transports in Machine Learning7 Dec 2025
- 2025The Mean-Field Dynamics of Transformers1 Dec 2025
- 2025Multistability of Self-Attention Dynamics in Transformers14 Nov 2025
50 newest of 137 All 137 (JSON)
- 2023A mathematical perspective on Transformerscited by 161
- 2023The emergence of clusters in self-attention dynamicscited by 135
- 2024A Survey on LoRA of Large Language Modelscited by 67
- 2023How Smooth Is Attention?cited by 44
- 2024Transformers are Universal In-context Learnerscited by 42
- 2022Sparsity-Constrained Optimal Transportcited by 32
- 2024Clustering in Causal Attention Maskingcited by 32
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Do Residual Neural Networks discretize Neural Ordinary Differential Equations?cited by 27
- 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
- 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 26
- 2025The Mean-Field Dynamics of Transformerscited by 26
12 most cited of 133 All 133 (JSON)
- 2026Universal interpolation for deep residual self-attention networks1 Oct 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Optimal transport meets speech: a tutorial review24 Sep 2026
- 2026oHC: Orthogonal Hyper-Connections on SO(4) via Quaternions2 Sep 2026
- 2026Measuring Optimal Transport in Transformer Depth1 Sep 2026
- 2026The Depth Flow of Token Representations Is Nonlinear and Does Not Descend Its Own Density30 Aug 2026
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026Power law graph attention: exact generalization of scaled dot-product attention, empirical collapse at inference10 Aug 2026
- 2026The Geometry of Semantic Space: A Continuous Geometric Framework for the Transformer Architecture19 Jul 2026
- 2026Multi-Scale Convolution with Optimal Transport Attention Effect on Multivariate Time Series12 Jul 2026
- 2026A Unified Framework for In-Context Learning with Causal and Masked Language Models5 Jul 2026
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers15 Jun 2026
12 newest of 133 All 133 (JSON)