Transformers through the lens of measure-to-measure operators (Frank Cole, UCLA)
Machine learning on spaces of probability measures has emerged as an important area of research, and a central problem is to identify and design mathematically principled architectures for such applications. Transformers are a promising candidate due to their ability to accept inputs of variable size, but their theoretical foundations are still under development. In this talk, we present a mathematical perspective on transformers by studying the measure-to-measure operators they define.
In the first part of the talk, we study the behavior of transformers on probability measures with unbounded support. In such settings, a technical challenge is to identify sufficient conditions under which compositions of the softmax operator remain well-defined. We address this by proving that transformers map sub-Gaussian inputs to sub-Gaussian outputs, justifying their application to unbounded token distributions. This allows us to develop quantitative stability estimates: on sub-Gaussian data, transformers are Hölder continuous with respect to the 1-Wasserstein distance and enjoy polynomial sample complexity under empirical approximation.
In the second part of the talk, we investigate whether measure-to-measure transformers are universal approximators for continuous measure-to-measure operators. The answer turns out to depend subtly on the domain of approximation, and we present both counterexamples and sufficient conditions under which the universal approximation property holds. We also prove analogous results for transformers with cross-attention layers. This is joint work with Takashi Furuya and Nicholas Nelsen.