Quantum Doubly Stochastic Transformers
Not on the map. Why?
Abstract (arXiv)
At the core of the Transformer, the softmax normalizes the attention matrix to be right stochastic. Previous research has shown that this often de-stabilizes training and that enforcing the attention matrix to be doubly stochastic (through Sinkhorn's algorithm) consistently improves performance across different tasks, domains and Transformer flavors. However, Sinkhorn's algorithm is iterative, approximative, non-parametric and thus inflexible w.r.t. the obtained doubly stochastic matrix (DSM). Recently, it has been proven that DSMs can be obtained with a parametric quantum circuit, yielding a novel quantum inductive bias for DSMs with no known classical analogue. Motivated by this, we demonstrate the feasibility of a hybrid classical-quantum doubly stochastic Transformer (QDSFormer) that replaces the softmax in the self-attention layer with a variational quantum circuit. We study the expressive power of the circuit and find that it yields more diverse DSMs that better preserve information than classical operators. Across multiple small-scale object recognition tasks, we find that our QDSFormer consistently surpasses both a standard ViT and other doubly stochastic Transformers. Beyond the Sinkformer, this comparison includes a novel quantum-inspired doubly stochastic Transformer (based on QR decomposition) that can be of independent interest. Our QDSFormer also shows improved training stability and lower performance variation suggesting that it may mitigate the notoriously unstable training of ViTs on small-scale data.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 39 of its 76 references that are in the map. First posted on arXiv 22 Apr 2025.
Builds on
39 of 76 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Segment Anythingcited by 8,234
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2018Supervised learning with quantum enhanced feature spacescited by 665
- 2018Barren plateaus in quantum neural network training landscapescited by 630
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2020The power of quantum neural networkscited by 379
- 2020Power of data in quantum machine learningcited by 338
- 2020A rigorous and robust quantum speed-up in supervised machine learningcited by 271
27 more
- 2020MedMNIST Classification Decathlon: A Lightweight AutoML Benchmark for Medical Image Analysiscited by 206
- 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 161
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2023The emergence of clusters in self-attention dynamicscited by 140
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2022Regression Transformer: Concurrent sequence regression and generation for molecular language modelingcited by 50
- 2022Quantum Vision Transformerscited by 48
- 2023On quantum backpropagation, information reuse, and cheating measurement collapsecited by 32
- 2024Unraveling Molecular Structure: A Multimodal Spectroscopic Dataset for Chemistrycited by 31
- 2020A gradient descent perspective on Sinkhorncited by 24
- 2024Quantum Implicit Neural Representationscited by 16
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
- 2020Doubly Stochastic Subspace Clusteringcited by 14
- 2022Rethinking Initialization of the Sinkhorn Algorithmcited by 14
- 2023Eureka-Moments in Transformers: Multi-Step Tasks Reveal Softmax Induced Optimization Problemscited by 14
- 2024QClusformer: A Quantum Transformer-based Framework for Unsupervised Visual Clusteringcited by 11
- 2024Hybrid Quantum Vision Transformers for Event Classification in High Energy Physicscited by 10
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2024OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentationcited by 9
- 2021Best Approximate Quantum Compiling Problemscited by 8
- 2021Escaping the Gradient Vanishing: Periodic Alternatives of Softmax in Attention Mechanismcited by 7
- 2024Learning with SASQuaTCh: a Novel Variational Quantum Transformer Architecture with Kernel-Based Self-Attentioncited by 5
- 2024Quantum Theory and Application of Contextual Optimal Transportcited by 3
- 2024Towards Better Multi-head Attention via Channel-wise Sample Permutationcited by 2
- 2019Optimal Approximation of Doubly Stochastic Matricescited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transportcited by 4
- 2026Sinkhorn doubly stochastic attention rank decay analysiscited by 2
- 2026ASAP: Amortized Doubly-Stochastic Attention via Sliced Dual Projectioncited by 0
- 2026Higher-Order Token Interactions via Quantum Attentioncited by 0
- 2026QuPID: Quantum Parameter-Efficient Input-Dependent Retrieval Adaptation for Medical RAGcited by 0
- 2026SQUARE: Structured Quantum Representation Adapters as Compact Quadratic Feature Maps for Frozen Language Modelscited by 0
- 2026SQUARE: Structured Quantum Representation Adapters as Compact Quadratic Feature Maps for Frozen Language Models29 Sep 2026
- 2026QuPID: Quantum Parameter-Efficient Input-Dependent Retrieval Adaptation for Medical RAG27 Sep 2026
- 2026Higher-Order Token Interactions via Quantum Attention10 Jun 2026
- 2026ASAP: Amortized Doubly-Stochastic Attention via Sliced Dual Projection13 May 2026
- 2026Sinkhorn doubly stochastic attention rank decay analysis9 Apr 2026
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transport27 Sep 2025