Causal Optimal-Transport Attention: Positional Priors and Length Extrapolation
Not on the map. Why?
Abstract (arXiv)
Causal masking obstructs the column balancing used by optimal-transport (OT) attention. We study an unbalanced OT operator that uses only current and earlier rows and characterize its induced positional prior. For bounded scores and any fixed balancing strength below one, its fixed point assigns vanishing mass to every fixed window as context grows. With constant scores, the prior has an exact scale-invariant form. We classify positional encodings by whether they prevent this dilution. We also derive finite-length window-mass bounds for log-distance priors with exponents near one. Preregistered experiments use 25M- and 100M-parameter language models. The OT operator improves loss extrapolation over softmax, while exploratory comparisons favor an explicit distance bias at a fraction of the cost. Changing only the bias beyond the training length moves long-context loss in the predicted direction on all 30 tested checkpoints. During training, learned exponents approach one even when constrained above it. A margin chosen from prior calculations controls distant-mass growth in the tested setting.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 37 of its 56 references that are in the map. Submitted 1 Nov 2026.
Builds on
37 of 56 references.
References · 37
- 2017Attention Is All You Needcited by 62,125
- 2016Layer Normalizationcited by 6,002
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,392
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,357
- 2020On Layer Normalization in the Transformer Architecturecited by 971
- 2018Computational Optimal Transportcited by 808
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 441
- 2020Sparse Sinkhorn Attentioncited by 259
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 150
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 122
25 more
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 91
- 2020On Unbalanced Optimal Transport: An Analysis of Sinkhorn Algorithmcited by 62
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 60
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 60
- 2025Scalable-Softmax Is Superior for Attentioncited by 58
- 2022Unbalanced Optimal Transport, from Theory to Numericscited by 53
- 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 40
- 2025Long-Context Generalization with Sparse Attentioncited by 26
- 2022Faster Unbalanced Optimal Transport: Translation invariant Sinkhorn and 1-D Frank-Wolfecited by 23
- 2025Scaled-Dot-Product Attention as One-Sided Entropic Optimal Transportcited by 10
- 2023Exploring Transformer Extrapolationcited by 9
- 2025Limitations of Normalization in Attention Mechanismcited by 9
- 2025Scale-invariant Attentioncited by 7
- 2025Group Representational Position Encodingcited by 7
- 2026You Need Better Attention Priorscited by 6
- 2025Context-aware Biases for Length Extrapolationcited by 4
- 2025Attend or Perish: Benchmarking Attention in Algorithmic Reasoningcited by 3
- 2026Sinkhorn doubly stochastic attention rank decay analysiscited by 3
- 2022On the Convergence of Semi-Relaxed Sinkhorn with Marginal Constraint and OT Distance Gapscited by 2
- 2026Randomized YaRN Improves Length Generalization for Long-Context Reasoningcited by 2
- 2026ASAP: Amortized Doubly-Stochastic Attention via Sliced Dual Projectioncited by 1
- 2026Why Do Accumulated Transformations Extrapolate?cited by 1
- 2026Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attentioncited by 1
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodingscited by 1
- 2026First Passage Attentioncited by 1
Built on by
Not cited yet.