Stability of Measure-to-Measure Transformers on Sub-Gaussian Data
stat.ML, cs.LG
Submitted: 2026-10-06
Updated: 2026-10-06
License: http://creativecommons.org/licenses/by/4.0/
The gist: Transformers have exhibited impressive empirical success across various domains, but their theoretical foundations remain less developed.
Terminology
Abstract
Transformers have exhibited impressive empirical success across various domains, but their theoretical foundations remain less developed. This work constitutes a mathematical study of the measure-to-measure operators defined by transformers. We show that transformers map sub-Gaussian inputs to sub-Gaussian outputs; this ensures that taking arbitrary-length compositions of the softmax operator is well-defined. We then show that transformers are Hölder continuous with respect to the 1-Wasserstein distance on appropriate spaces of sub-Gaussian inputs. This allows us to establish estimates on the error propagation along a transformer between a sub-Gaussian input and its empirical approximation. We also study a mean-field analog of the cross-attention mechanism, which is an operator from a pair of probability measures to a single probability measure. We show that cross-attention exhibits different Hölder regularity and sample-complexity in its two input arguments. Last, we apply our results to deduce approximation guarantees for measure-to-measure transformers. Together, these results provide a firm stability and finite-sample theory for transformers on sub-Gaussian data.
Sources
- GPT-4 Technical Report
- Layer Normalization
- Learning Probabilistic Filters with Strictly Proper Scoring Rules
- Scaling Limits of Long-Context Transformers
- Propagation of Chaos in Contextual Flow Maps
- Quantitative Clustering in Mean-Field Transformer Models
- In-Context Operator Learning on the Space of Probability Measures
- Distribution-Conditioned Transport
- Transformers through the lens of support-preserving maps between measures
- Universal Approximation of Measure-to-Measure Operators by Pushforwards
- Learning where to learn: Training data distribution optimization for scientific machine learning
- Attention Kernels for Learning Maps Between Heavy-Tailed Measures
- Stability of Transformers under Layer Normalization
- Continuous transformations of probability measures and their transport representations
- Wasserstein Least Squares: A Canonical Regression Method for Probability Distributions
- On the Diverse Dynamical Behaviors Arising in Deep Linear Transformers
- Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention
- One Operator for Many Densities: Amortized Approximation of Conditioning by Neural Operators
- A Mathematical Theory of Attention
- On the Regularity of Attention
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- Efficient quadratic entropy with distance sketches
- Embedding-Bias in Conditional Independence Testing
- From Log-Odds to Shapley Values: An Explanatory Geometry for the Weighted Naive Bayes Classifier