atlas

Research map / Architectures and efficiency / Attention and transformers

Quantum Doubly Stochastic Transformers

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Replaces the softmax in ViT self-attention with a parametric variational quantum circuit (QontOT) that emits doubly stochastic matrices, plus a QR-based quantum-inspired variant, and evaluates on small image classification tasks.

Problem

Softmax attention is right-stochastic only, and doubly stochastic attention via Sinkhorn's algorithm is iterative, approximate, non-parametric and can be unstable; ViTs also train unstably on small-scale data.

Approach

Extends the QontOT variational quantum circuit (which outputs doubly stochastic matrices via U ⊙ Ū for unitary U) from scalar to matrix data injection so it can replace softmax inside self-attention, yielding a parametric doubly stochastic Transformer (QDSFormer); also proposes a QR-decomposition-based quantum-inspired DSM operator.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace softmax attention with QontOT2-layer ViT · MedMNIST mean testaccuracy: 73.0 -> 74.3Helped
Replace softmax attention with QontOT2-layer ViT · MedMNIST test datasetsaccuracyMixed
Replace softmax attention with QontOT1-layer ViT · IR spectra, 8x8 attentionMicro-F1: 81.68_{\pm 0.18} -> 81.70_{\pm 0.05}No clear effect
Replace softmax attention with QontOT1-layer ViT · IR spectra, 16x16 attentionMicro-F1: 81.55_{\pm 0.07} -> 81.06_{\pm 0.27}Hurt
Increase QontOT circuit depth from 1 to 32 layers (ablation)QDSFormer · MNIST validationaccuracy: 83.4_{\pm 0.73} -> 94.2_{\pm 0.30}Helped
Increase QontOT circuit depth from 1 to 16 layers (ablation)QDSFormer · FashionMNIST validationaccuracy: 87.7_{\pm 0.22} -> 90.0_{\pm 0.15}Helped
Increase QontOT circuit depth from 16 to 32 layers (ablation)QDSFormer · FashionMNIST validationaccuracy: 90.0_{\pm 0.15} -> 90.0_{\pm 0.13}No clear effect
Use the Simple ansatz instead of Parted (ablation)2-layer QDSFormer · FashionMNIST, 1 circuit layeraccuracy: 87.7_{\pm 0.22} -> 88.0_{\pm 0.10}No clear effect
Use the Simple ansatz instead of Trotter (ablation)2-layer QDSFormer · FashionMNIST, 8 circuit layersaccuracy: 88.4_{\pm 0.20} -> 89.9_{\pm 0.15}Helped
Jointly optimize circuit and Transformer parameters rather than use a static circuit (ablation)QDSFormer · MNIST and FashionMNISTaccuracyHurt
Optimize the circuit more frequently during mixed training (ablation)QDSFormer · MNISTaccuracyNo clear effect
Replace the Simple ansatz with other tested circuit ansatz types (ablation)QDSFormer · FashionMNISTaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: MNIST Fashion-MNIST MedMNIST (OCTMNIST, PneumoniaMNIST, TissueMNIST, OrganAMNIST, OrganCMNIST, OrganSMNIST, BreastMNIST) Compositional Eureka dataset IR spectra of molecules

Benchmarks: MNIST Fashion-MNIST MedMNIST Compositional Eureka dataset IR spectra dataset

Metrics: validation accuracy test accuracy micro-F1 Frobenius distance Shannon entropy number of unique DSMs

Baselines: Softmax ViT Sinkformer (Sinkhorn) Softmax_sigma^2 (NormSoftmax) QR decomposition attention

Builds on: Sinkformer QontOT Sinkhorn's algorithm NormSoftmax

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy