mlsanityData to 7 Oct 2026

On the Expressive Power of Transformers for Contextual Relations

arXiv 2603.25860 ↗First posted 26 Mar 2026stat.ML cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers have revolutionized machine learning by making attention a central mechanism for modeling interactions within a context. Despite the central role of attention, the theoretical capabilities of Transformers for representing contextual relations remain unclear. In this work, we address this question by developing a mathematical framework based on probability and optimal transport. We view a text as a distribution of its representations and attention as a probabilistic relation between them. This perspective reveals a connection between attention normalization and optimal transport: standard softmax normalization produces conditional relations, while Sinkhorn normalization produces joint relations with prescribed marginals. Thus, both mechanisms provide structured probabilistic relations from attention scores. Under mild conditions, we establish universal approximation results for both settings. We show that Transformer architectures with Sinkhorn normalization can approximate arbitrary contextual relations represented as joint probabilities, while standard softmax Transformers can approximate arbitrary contextual relations represented as conditional probabilities. These results provide a mathematical characterization of the expressive power of Transformers for contextual relations and show how the choice of normalization determines the probabilistic structure of the relations represented by attention.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 20 references that are in the map. First posted on arXiv 26 Mar 2026.

Builds on

14 of 20 references.

References · 14

  1. 2017Attention Is All You Needcited by 59,932
  2. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  3. 2018Computational Optimal Transportcited by 765
  4. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  5. 2020Sparse Sinkhorn Attentioncited by 250
  6. 2015Learning with a Wasserstein Losscited by 194
  7. 2016Stochastic Optimization for Large-scale Optimal Transportcited by 188
  8. 2018Learning Latent Permutations with Gumbel-Sinkhorn Networkscited by 172
  9. 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
  10. 2024Transformers are Universal In-context Learnerscited by 42
  11. 2024Measure-to-measure interpolation using Transformerscited by 28
  12. 2021Quantitative Stability of Regularized Optimal Transport and Convergence of Sinkhorn's Algorithmcited by 21
2 more
  1. 2022Stability of Schr"odinger Potentials and Convergence of Sinkhorn's Algorithmcited by 13
  2. 2025Scaled-Dot-Product Attention as One-Sided Entropic Optimal Transportcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.