Manuscript Offprint
arXiv:2609.35483Universal Approximation of Measure-to-Measure Operators by Pushforwards
ABSTRACT
Many learning tasks map an input distribution to an output distribution. A natural way to model such an operator is to transform each input sample using a continuous function that may depend on the entire input distribution, and then take the distribution of the transformed samples. This defines a measure-dependent pushforward model and includes measure-theoretic formulations of transformers. We ask when such models can approximate arbitrary continuous operators between spaces of probability measures. We first show that universal approximation fails when atomic inputs are allowed: some continuous measure-to-measure operators that split or redistribute atomic mass cannot be approximated arbitrarily well by deterministic pushforward models. We then introduce the uniform level set condition, which requires a continuous measure-dependent scalarization whose shrinking level set neighborhoods carry uniformly vanishing mass over the input family. This condition is satisfied, in particular, by compact families of absolutely continuous measures. On every compact family satisfying this condition, we prove that any continuous measure-to-measure operator with outputs of finite p-th moment can be uniformly approximated, in the p-Wasserstein distance, by continuous measure-dependent pushforwards. Combining our theorem with existing approximation results for measure-dependent in-context maps yields universal approximation by measure-theoretic transformers. We also extend the framework to continuously-varying source measures, yielding a corresponding universality result for a class of pushforward models that are closely aligned with cross-attention architectures.
1 INTRODUCTION
Many scientific and learning problems involving distributions can naturally be formulated as maps between spaces of probability measures. Given an input distribution, one would like to produce another distribution that depends continuously on the input. Examples include the prior-to-posterior map in Bayesian inference (Sprungk, 2020; Stuart, 2010), proximal maps on Wasserstein spaces (Ambrosio et al., 2008), and solution maps of McKean–Vlasov dynamics (Kolokoltsov, 2010).
A particularly important class of measure-to-measure maps is given by pushforward models. In such models, each sample from the input distribution is transformed by a map that may itself depend on the entire input distribution, and the collection of transformed samples determines the output distribution. This structure appears naturally in measure-theoretic formulations of transformers and attention mechanisms (Castin et al., 2025; Furuya et al., 2025b; Geshkovski et al., 2025; Rigollet, 2026; Sander et al., 2022; Vuckovic et al., 2020). Closely related pushforward constructions also arise in generative modeling, including flow matching (Lipman et al., 2023) and conditional normalizing flows (Winkler et al., 2019). This leads to the following fundamental approximation question:
To what extent can an arbitrary continuous operator between spaces of probability measures be approximated by continuous pushforward models whose transformation is allowed to depend on the input measure?
In this paper, we first show that universal approximation by continuous pushforward models fails in general when atomic input measures are allowed. We provide counterexamples induced by continuous measure-to-measure operators that split or redistribute atomic mass, which cannot in general be approximated by deterministic pushforward models.
We then identify a sufficient geometric-measure-theoretic condition on a compact family of input measures, which we call the uniform level set condition. Roughly speaking, this condition requires the existence of a continuous measure-dependent scalarization whose shrinking level set neighborhoods carry uniformly vanishing mass across the entire family of input measures. Under this condition, we prove that every continuous measure-to-measure operator with finite p-th moment outputs can be uniformly approximated in the p-Wasserstein distance by continuous pushforward models.
The uniform level set condition is substantially more flexible than absolute continuity with respect to the Lebesgue measure. In particular, it is automatically satisfied by compact families of non-atomic measures in one dimension, as well as by compact families dominated by a common non-atomic reference measure in higher dimensions. It also applies to certain families of singular measures supported on continuously-varying lower-dimensional structures, such as normalized arclength measures on a compact family of injective curves. At the same time, it necessarily excludes atomic measures, which is consistent with the obstruction described previously.
Our results have direct implications for the expressive power of transformers. Measure-theoretic transformers act on an input distribution through a measure-dependent transformation of its tokens and therefore induce a pushforward map at the level of probability measures. Combining our main approximation theorem with existing universality results for in-context maps, we establish universal approximation of continuous measure-to-measure operators by measure-theoretic transformers on compact families satisfying the uniform level set condition. Last, we extend the pushforward approximation framework to continuously-varying source measures, which relates to cross-attention.
Related work. The universal approximation properties of transformers have been extensively studied in the classical sequence-to-sequence setting (Vaswani et al., 2017). Early results established universality for transformers and their sparse variants (Yun et al., 2020a;b), followed by extensions concerning constrained architectures, prompting, approximation rates, and more refined descriptions of the expressive power of attention (Calvello et al., 2025; Chen et al., 2025; Cheng et al., 2026; Havrilla & Liao, 2024; Jiang & Li, 2024; Jiao et al., 2026; Kratsios et al., 2022; Liu et al., 2026; Petrov et al., 2024; Shen et al., 2026; Takakura & Suzuki, 2023; Wang & E, 2024).
A complementary line of work studies transformers in a measure-theoretic formulation, where a collection of tokens is represented by its empirical measure and attention is extended to probability measures. This viewpoint has led to mathematical descriptions of attention and transformer dynamics (Bach et al., 2025; 2026; Burger et al., 2025; Castin et al., 2025; Geshkovski et al., 2025; Rigollet, 2026; Sander et al., 2022; Vuckovic et al., 2020), as well as approximation results for functions whose inputs involve probability measures (Biswal et al., 2025; Cole et al., 2026b; Fraiman, 2026; Furuya et al., 2025b; 2026; Geshkovski et al., 2026) and characterizations of the smoothness of attention layers acting on probability measures (Castin et al., 2024; Kim et al., 2021; Vuckovic et al., 2021).
More closely related to the present work are approximation and exact representation results in which both the input and output are probability measures. In work of Furuya et al. (2025a), transformer-induced measure-to-measure maps are studied through the lens of support-preserving transformations. Related exact transport map representations of continuous measure-to-measure transformations are investigated by Lavenant & Savaré (2026). These works naturally lead to structural conditions under which the output does not split the mass carried by individual input particles. Such conditions are particularly well suited to empirical measures, since an empirical input is then transformed into another empirical measure with compatible particle structure.
The question studied in the present paper is different. We ask under what conditions on a family of input measures can an arbitrary continuous measure-to-measure operator be approximated by deterministic pushforward models without imposing a support-preserving or non-splitting condition on the target map. This distinction is essential: natural maps such as Bayesian updating or joint measure conditioning may continuously change the weights of atoms and hence fall outside exact deterministic pushforward representations. Our results characterize a regime in which this obstruction disappears at the level of uniform approximation and thereby connect general continuous measure-to-measure operators with transformer-induced pushforward models.
Contributions. The main contributions of this work are summarized as follows.
(C1) An obstruction caused by atomic measures. We show that continuous measure-dependent pushforward models are not universal on general compact subsets of probability measures (Proposition 2.2). In particular, deterministic pushforwards cannot split atomic mass or freely modify atomic weights. This yields explicit continuous measure-to-measure operators that remain separated from every deterministic pushforward model by a strictly positive 1-Wasserstein distance (Examples 2.3 and 2.4).
(C2) Universal approximation under a uniform level set condition. We introduce the uniform level set condition for compact families of input measures (Assumption 3.1). We prove that, under this condition, every continuous measure-to-measure operator with outputs of finite p-th moment can be uniformly approximated in the p-Wasserstein distance by continuous measure-dependent pushforward maps (Theorem 3.6). The condition necessarily excludes atomic measures, but is satisfied by compact families of non-atomic measures in one dimension, compact families dominated by a common non-atomic reference measure, and certain families of singular measures supported on continuously-varying lower-dimensional structures (Examples 3.3, 3.4, and 3.5).
(C3) Consequences for transformer architectures. By combining our main approximation theorem with existing universality results for measure-theoretic in-context maps, we establish universal approximation of continuous measure-to-measure operators by measure-theoretic transformers on compact families satisfying the uniform level set condition (Theorem 4.4). We further extend the pushforward approximation framework to continuously-varying source measures, which has applications to cross-attention (Corollary 4.6).
Notation. Let denote the Euclidean norm. We denote by the set of all Borel probability measures on and, for , by the set of probability measures with finite -th moment. The subset of non-atomic or atomless probability measures is
We equip with the topology of weak convergence of probability measures. Whenever is considered, it is equipped with the -Wasserstein metric given by
where is the set of couplings of and . For a measurable map and , the pushforward measure is defined by for all Borel. For topological spaces and , we denote by the space of continuous maps from to ; the topology on spaces of probability measures is always understood as above.
2.1 THE MEASURE-TO-MEASURE APPROXIMATION PROBLEM
In what follows, let , , and . We investigate whether for every compact set with respect to , every , and every , there exists a continuous map such that
In other words, we ask whether continuous measure-to-measure operators can be uniformly approximated by continuous measure-dependent pushforward models. Pushforward models are especially attractive from a computational perspective (Marzouk et al., 2017). This approximation problem arises naturally in several settings. We illustrate it with an example.
Example 2.1 (Prior-to-posterior map in Bayesian inference). In Bayesian inverse problems, updating a prior probability measure using observed data modeled by a likelihood naturally defines a map from prior to posterior measures (Nelsen & Yang, 2026; Stuart, 2010). Let denote the negative log-likelihood associated with the observed data. For a prior measure , the corresponding posterior measure is defined by
Thus, Bayesian inference defines the prior-to-posterior map . If is continuous and bounded from below, then is well-defined and -continuous (Sprungk, 2020, Lemma 16). Notice that generally changes the weights of the input measure while preserving its null sets. In particular, for an atomic prior , the posterior is
Hence, although the support is unchanged, the weights are in general different. Consequently, cannot in general be represented as a deterministic pushforward of the form . This provides a natural example of a continuous measure-to-measure operator that lies beyond exact deterministic pushforward representations on atomic and nonatomic measures, while still falling within the approximation problem considered in this work.
See Appendix A.1 for a further example based on proximal maps between Wasserstein spaces.
2.2 OBSTRUCTIONS CAUSED BY ATOMIC MEASURES
In general, the answer to the approximation question posed in Section 2.1 is negative when atomic input measures are allowed. More precisely, the following holds.
Proposition 2.2. There exist a compact set in , a continuous map , and such that there is no continuous map satisfying
The obstruction already appears in the simplest possible examples.
Example 2.3 (Different support cardinalities). Let and define
Since is a singleton, is continuous. For any continuous , we have . Therefore,
by the triangle inequality. Hence
Thus, a deterministic pushforward cannot approximate a map that splits a single input atom into two.
The preceding example changes the number of atoms. However, this is not the essential issue: an obstruction remains even when the input and output measures have the same support cardinality.
Example 2.4 (Same support cardinality, different weights). Let and define
Again, is continuous. For any continuous map , it holds that
Proposition A.2 delivers the lower bound
Consequently,
Thus, even when the input and output distributions have the same number of atoms, a deterministic pushforward cannot in general modify their weights.
3 UNIVERSAL APPROXIMATION BY CONTINUOUS PUSHFORWARD MODELS
This section establishes our main universal approximation result for continuous measure-dependent pushforward models.
3.1 UNIFORM LEVEL SET CONDITION
We introduce a sufficient condition on the family K of input measures under which universal approximation holds.
Assumption 3.1. Let be -compact. There exists such that
We call (3.1) the uniform level set condition. Intuitively, Assumption 3.1 requires the existence of a continuous scalarization whose level sets carry uniformly vanishing mass over the family . In particular, the condition is satisfied when all measures in are absolutely continuous with respect to Lebesgue measure: one may take, for example, any linear projection in nonzero direction independently of . More generally, as shown below, absolute continuity with respect to Lebesgue measure is far from necessary. The importance of Assumption 3.1 is that it enables us to represent the one-dimensional uniform distribution Unif[0, 1] exactly by a continuous pushforward model. This is a key ingredient in the proof of Theorem 3.6, our main approximation result.
The uniform level set condition is closely related to the atomless property (1.1).
Remark 3.2 (Uniform level set condition implies non-atomic family). If is such that Assumption 3.1 holds, then . Indeed, fix and , and set . Then
for any . Hence
as by (3.1). Since was arbitrary, is non-atomic as asserted.
Moreover, the uniform level set condition (3.1) corresponding to and is equivalent to the family of scalar pushforwards being non-atomic; see Remark A.3.
To better understand Assumption 3.1, we present several examples of compact families that satisfy it.
Example 3.3 (One-dimensional case). Let be compact with respect to . Then the identity function given by satisfies
In particular, every compact family of non-atomic probability measures on satisfies the uniform level set condition (3.1). See Appendix B.1 for the proof.
Remark 3.2 shows that if a compact subset satisfies Assumption 3.1, then every element of is atomless. Example 3.3 establishes the converse when ; this gives a complete characterization of subsets satisfying Assumption 3.1 in the one-dimensional setting.
Example 3.4 (Families dominated by a common non-atomic measure). Let and let
be compact with respect to . Then there exists a continuous function such that
See Appendix B.2 for the proof. By taking to be the Lebesgue measure, Example 3.4 implies that Assumption 3.1 is satisfied by any -compact family of densities. Importantly, the only requirement in Example 3.4 is that be non-atomic. In particular, Example 3.4 applies to compact families of probability measures that are supported on a low-dimensional manifold and admit a density with respect to some fixed atomless reference measure on , e.g., a uniform measure on . Such families of measures arise naturally under the manifold hypothesis in machine learning.
Example 3.5 (Measures supported on a compact family of curves). Let be compact and let be compact. Assume that there exists such that
and that every is injective. For each , define the normalized arclength measure
Then there exists a continuous function such that for and , and
Assume, in addition, that the curves in are uniquely determined by their images, that is,
Then the family satisfies the uniform level set condition (3.1).
See Appendix B.3 for the proof. Example 3.5 illustrates that the uniform level set condition can accommodate singular measures whose supports themselves vary continuously. Such families naturally arise when data distributions are concentrated near evolving or parameter-dependent low-dimensional structures, rather than on a single fixed reference manifold.
3.2 MAIN RESULT
We are now ready to state our main universal approximation theorem. The key idea is to use the uniform level set condition to find a continuous in-context map that exactly pushes forward each input measure to a common uniform distribution on .
Theorem 3.6. Let satisfy Assumption 3.1. Then for any and any , there exists a continuous map such that
Sketch of proof. The full proof is given in Appendix B.4. Here we describe the construction together with the estimates used below. For , let
where is the metric projection onto the closed ball of radius R. Define
By Lemma B.2, as and
Next, for , choose an -net and a continuous partition of unity subordinate to the corresponding cover. The covering number may be chosen so that
where depends only on . This yields continuous weights such that
Writing and , the discontinuous interval map
pushes Unif[0, 1] exactly onto . We smooth the transition points of on intervals of width to obtain a bounded continuous map whose contribution to errors in the transition regions is bounded by . Under Assumption 3.1, the construction in Lemma B.3 delivers the existence of such that
Combining this exact continuous uniformizer with the preceding arguments and defining
the triangle inequality gives the asserted approximation after successively choosing , , and appropriately as functions of .
For a fixed , it is known that the set of deterministic Monge couplings (id, )_# induced by continuous transport maps with source measure is dense in the set of all joint distributions in with first marginal (Beiglböck & Lacker, 2018, Prop. 2.2). Theorem 3.6 can then be interpreted as the operator analog of this “diagonal approximation” result in which is no longer fixed, but is instead allowed to vary uniformly over the compact set .
Remark 3.7 (Quantitative error bound). The preceding proof actually yields the upper bound
Moreover, the construction gives the uniform bound .
4 APPLICATIONS TO TRANSFORMER ARCHITECTURES
We now apply our main approximation theorem to measure-theoretic transformer architectures.
4.1 MEASURE-THEORETIC TRANSFORMERS
We first recall the measure-theoretic formulation of transformers.
Definition 4.1 (Measure-theoretic in-context attention maps). For , a measure-theoretic in-context multi-head attention map is defined by
where , and , and are the head, query, key, and value matrices, respectively. See Remark 4.5 for a note about finiteness of (4.1).
In (4.1), acts on a distinguished token while depending on the input probability measure , and can therefore be viewed as an in-context map. The standard discrete attention mechanism is recovered when is an empirical measure associated with tokens . In this case, the integral in the definition of reduces to the usual finite sum over the tokens. The measure-theoretic formulation removes the need to fix the number of tokens in advance and provides a unified description of attention for arbitrary probability measures, including non-atomic measures. For further details on measure-theoretic formulations of attention and in-context maps, see, e.g., the work of Castin et al. (2024; 2025); Furuya et al. (2025a;b); Geshkovski et al. (2023; 2025; 2026).
Definition 4.2 (Composition of measure-theoretic in-context maps). Let
Their composition is defined by
Definition 4.3 (Measure-theoretic transformer). Let be measure-theoretic in-context attention maps as in (4.1) and be context-free multilayer perceptron (MLP) maps. The associated deep transformer in-context map is defined by
The corresponding measure-theoretic transformer is the measure-to-measure operator defined by
Furuya et al. (2025b) show that transformer in-context maps of the form (4.2) are universal approximators for general continuous in-context mappings defined on compact token domains; the crucial difficulty is that the present paper works on the whole of , not a compact domain. Nevertheless, combining modifications of this universality result (Proposition A.7) with Theorem 3.6 yields the following universal approximation result for measure-to-measure operators.
Theorem 4.4. Let be a -compact set satisfying Assumption 3.1. Then for any and any , there exists a deep transformer in-context map of the form (4.2) such that
See Appendix C.1 for the proof. Theorem 4.4 proves that the measure-to-measure operators defined by transformers are universal approximators of continuous measure-to-measure operators defined on a compact set , provided that satisfies the uniform level set condition (3.1). In many practical scenarios, the transformer is not applied to directly—which is atomless by Remark 3.2—but instead to an atomic measure supported on samples from . The error analysis in this case can still be handled by first controlling the error between and uniformly over (Cole et al., 2026a) and then applying Theorem 4.4 to bound the error between and . This approach requires Assumption 3.1 and discretizes with samples. A different approach removes Assumption 3.1 on the -compact set altogether by convolving the (now possibly atomic) input measure with a standard isotropic Gaussian distribution that has a small variance to obtain a distribution ; see Corollary A.6 in Appendix A.3 for details. Given samples from , one can combine the two approaches by approximating by an empirical measure of the form , where are independent Gaussian samples with mean zero and identity covariance matrix.
Remark 4.5 (Domain of measure-theoretic attention). To be precise, the measure-theoretic attention map in (4.1) is only well-defined for inputs such that
for all . These conditions always hold when has compact support; Cole et al. (2026a) give more general conditions on based on sub-Gaussianity. Although Theorem 4.4 applies to input measures with possibly full support on , the specific construction only requires evaluating self-attention layers at compactly supported measures. This is because the transformer constructed in the proof of Theorem 4.4 utilizes an explicit initial MLP layer which truncates the input measure to a common compact set.
4.2 CONTINUOUSLY-VARYING SOURCE MEASURES AND CONNECTION TO CROSS-ATTENTION
The preceding result is an approximation theorem for measure-theoretic transformers based on self-attention, in which the source measure of the transport is the input measure itself. The next corollary generalizes the main pushforward approximation result, Theorem 3.6 from Section 3.2, to the setting in which the source measure of the pushforward is allowed to depend continuously on the input measure, but need not equal the input measure. This is particularly relevant for analyzing cross-attention architectures, where the measure carrying the query tokens may differ from the measure representing the context and may even live on a different ambient space.
Corollary 4.6. Let be -compact. Let be -continuous. Assume that there exists such that
Then for every and every , there exists such that
Typical source measures covered by Corollary 4.6 include a fixed non-atomic measure, (e.g., an isotropic Gaussian), and a smoothed input measure, , where is absolutely continuous. The proof of Corollary 4.6 follows the same construction as that of Theorem 3.6 and may be found in Appendix C.2.
Remark 4.7 (Relation to cross-attention). Cross-attention allows one collection of query tokens to attend to a distinct collection of context tokens and is a central component of encoder–decoder transformers (Vaswani et al., 2017) and related architectures such as the Perceiver (Jaegle et al., 2021). Corollary 4.6 is directly connected to architectures in which the source tokens attend to the context tokens through cross-attention and are otherwise processed token-wise, without self-attention among the source tokens. Combined with universality for measure-dependent in-context maps—see, e.g., Theorem 1 due to Furuya et al. (2025b) or Proposition A.7—it yields an analog of Theorem 4.4 for this particular cross-attention configuration. However, this argument does not by itself establish universality for more general architectures that combine both self-attention among source tokens with cross-attention among context tokens.
5 CONCLUSION
In this paper, we studied the approximation of continuous measure-to-measure operators by continuous pushforward models, a subset of mappings which are naturally motivated by transformers. We showed that atomic measures present an obstruction to universal approximation due to the inability of pushforward models to split or adjust the weights of atoms. To remove this obstruction, we identified a sufficient condition for universal approximation on a compact set , which we termed the uniform level set condition. Notably, the uniform level set condition is weaker than absolute continuity and allows for measures whose supports admit low-dimensional structure. Our main result also implies a uniform approximation theorem for measure-theoretic transformers.
This work is the first to study universal approximation properties of pushforward models under general assumptions on the target operator; however, several important questions still remain. First, while the uniform level set condition is sufficient for universal approximation, it may not be necessary. An interesting mathematical question is to identify the minimal assumptions required on a compact set to enable universal approximation of continuous operators on by pushforward models. Second, certain measure-to-measure operators of interest, such as the joint-to-conditional operator in Bayesian inference, may not be continuous (Tsimpos et al., 2026, Appendix E); approximation of such maps by pushforward models is thus beyond the scope of this paper. Last, an important problem is obtaining quantitative approximation results for measure-theoretic transformers, where the number of parameters is controlled by the smoothness of the target operator and the covering number of the domain of approximation. We leave these important directions to future work.
AI USE STATEMENT
In this work, we used generative AI tools to assist in the writing of proofs, formulating mathematical claims and refining them, providing critical ingredients for proving mathematical claims, and assist with translation. We also used generative AI tools for checking proof arguments, improving the organization, presentation, readability, and structure of the paper, language editing, brainstorming, and literature search assistance. We have not used generative AI tools to help develop theoretical models or conceptual frameworks, propose or refine hypotheses, design or provide feedback on research methodology or experiments, or interpret results. Moreover, we did not use generative AI tools to generate synthetic data sets, implement methods, clean and reformat datasets, or support qualitative and thematic data analysis; these tasks are not applicable to this theoretical work.
All mathematical statements and proofs suggested or modified with the assistance of generative AI were independently examined and verified by the authors. Relevant references and attribution were checked against the original sources, and the final mathematical arguments and wording were reviewed and revised by the authors. We take responsibility for the final content of this work, including text, claims, and other artifacts produced with the aid of generative AI.
ACKNOWLEDGMENTS
T.F. acknowledges funding from JSPS KAKENHI (grants JP24K16949 and 25H01453), JST CREST (JPMJCR24Q5), and JST ASPIRE (JPMJAP2329). The research of N.H.N. is supported by a Klarman Fellowship through Cornell University's College of Arts & Sciences and by startup funds at The University of Texas at Austin. This project arose out of the 2nd Workshop on Machine Learning in Infinite Dimensions, which was sponsored by the ETH Zürich and the ProbAI Hub on the Mathematical and Computational Foundations of AI.
REFERENCES
Luigi Ambrosio, Nicola Gigli, and Giuseppe Savaré. Gradient flows: In metric spaces and in the space of probability measures. Springer Science & Business Media, 2008.
Eviatar Bach, Ricardo Baptista, Edoardo Calvello, Bohan Chen, and Andrew M Stuart. Learning enhanced ensemble filters. Journal of Computational Physics, art. 114550, 2025.
Eviatar Bach, Ricardo Baptista, Jochen Bröcker, Bohan Chen, and Andrew M Stuart. Learning probabilistic filters with strictly proper scoring rules. preprint arXiv:2606.26497, 2026.
Mathias Beiglböck and Daniel Lacker. Denseness of adapted processes among causal couplings. preprint arXiv:1805.03185, 2018.
Shiba Biswal, Karthik Elamvazhuthi, and Rishi Sonthalia. Universal approximation of mean-field models via transformers. In International Conference on Machine Learning, pp. 4455–4470, 2025.
Martin Burger, Samira Kabri, Yury Korolev, Tim Roith, and Lukas Weigand. Analysis of mean-field models arising from self-attention dynamics in transformer architectures with layer normalization. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 383(2298):20240233, 2025.
Edoardo Calvello, Nikola B Kovachki, Matthew E Levine, and Andrew M Stuart. Continuum attention for neural operators. Journal of Machine Learning Research, 26(300):1–52, 2025.
Valérie Castin, Pierre Ablin, and Gabriel Peyré. How smooth is attention? In International Conference on Machine Learning, pp. 5817–5840. PMLR, 2024.
Valérie Castin, Pierre Ablin, José Antonio Carrillo, and Gabriel Peyré. A unified perspective on the dynamics of deep transformers. Foundations of Computational Mathematics, 2025.
Yifang Chen, Xiaoyu Li, Yingyu Liang, Zhenmei Shi, and Zhao Song. Fundamental limits of visual autoregressive transformers: Universal approximation abilities. In International Conference on Machine Learning, 2025.
Jingpu Cheng, Ting Lin, Zuowei Shen, and Qianxiao Li. A unified framework for establishing the universal approximation of transformer-type architectures. In Advances in Neural Information Processing Systems, volume 38, pp. 129131–129163, 2026.
Frank Cole, Nicholas H Nelsen, and Takashi Furuya. Stability of measure-to-measure transformers on sub-Gaussian data. In preparation, 2026a.
Frank Cole, Dixi Wang, Yineng Chen, Yulong Lu, and Rongjie Lai. In-context operator learning on the space of probability measures. preprint arXiv:2601.09979, 2026b.
James Dugundji. An extension of Tietze's theorem. Pacific Journal of Mathematics, 1(3):353–367, 1951.
Demián Fraiman. On the expressive power of contextual relations in transformers. preprint arXiv:2603.25860, 2026.
Takashi Furuya, Maarten V de Hoop, and Matti Lassas. Transformers through the lens of support-preserving maps between measures. preprint arXiv:2509.25611, 2025a.
Takashi Furuya, Maarten V de Hoop, and Gabriel Peyré. Transformers are universal in-context learners. In International Conference on Learning Representations, 2025b.
Takashi Furuya, Davide Murari, and Carola-Bibiane Schönlieb. Approximation theory for Lipschitz continuous transformers. In International Conference on Machine Learning, 2026.
Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. The emergence of clusters in self-attention dynamics. In Advances in Neural Information Processing Systems, volume 36, pp. 57026–57037, 2023.
Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. A mathematical perspective on transformers. Bulletin of the American Mathematical Society, 62(3):427–479, 2025.
Borjan Geshkovski, Philippe Rigollet, and Domènec Ruiz-Balet. Measure-to-measure interpolation using transformers. Foundations of Computational Mathematics, pp. 1–50, 2026.
Alex Havrilla and Wenjing Liao. Understanding scaling laws with statistical and approximation theory for transformer neural networks on intrinsically low-dimensional data. In Advances in Neural Information Processing Systems, volume 37, pp. 42162–42210, 2024.
Andrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals, Andrew Zisserman, and Joao Carreira. Perceiver: General perception with iterative attention. In International Conference on Machine Learning, pp. 4651–4664. PMLR, 2021.
Haotian Jiang and Qianxiao Li. Approximation rate of the transformer architecture for sequence modeling. In Advances in Neural Information Processing Systems, volume 37, pp. 68926–68955, 2024.
Yuling Jiao, Yanming Lai, Defeng Sun, Yang Wang, and Bokai Yan. Approximation bounds for transformer networks with application to regression. In International Conference on Machine Learning, 2026.
Hyunjik Kim, George Papamakarios, and Andriy Mnih. The Lipschitz constant of self-attention. In International Conference on Machine Learning, pp. 5562–5571. PMLR, 2021.
Vassili N Kolokoltsov. Nonlinear Markov processes and kinetic equations, volume 182. Cambridge University Press, 2010.
Anastasis Kratsios, Behnoosh Zamanlooy, Tianlin Liu, and Ivan Dokmanić. Universal approximation under constraints is possible with transformers. In International Conference on Learning Representations, 2022.
Hugo Lavenant and Giuseppe Savaré. Continuous transformations of probability measures and their transport representations. preprint arXiv:2604.16653, 2026.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.
Hude Liu, Jerry Yao-Chieh Hu, Zhao Song, and Han Liu. Attention mechanism, max-affine partition, and universal approximation. In Advances in Neural Information Processing Systems, volume 38, pp. 120443–120511, 2026.
Youssef Marzouk, Tarek Moselhy, Matthew Parno, and Alessio Spantini. Sampling via measure transport: An introduction. Springer Books, pp. 785–825, 2017.
Nicholas H Nelsen and Yunan Yang. Operator learning meets inverse problems: A probabilistic perspective. In Andreas Hauptmann, Bangti Jin, and Carola-Bibiane Schönlieb (eds.), Handbook of Numerical Analysis, volume 27. Elsevier, 2026.
Aleksandar Petrov, Philip Torr, and Adel Bibi. Prompting a pretrained transformer can be a universal approximator. In International Conference on Machine Learning, pp. 40523–40550. PMLR, 2024.
Philippe Rigollet. The mean-field dynamics of transformers. In International Congress of Mathematicians 2026, pp. 389–404. SIAM, 2026.
Michael E Sander, Pierre Ablin, Mathieu Blondel, and Gabriel Peyré. Sinkformers: Transformers with doubly stochastic attention. In International Conference on Artificial Intelligence and Statistics, pp. 3515–3530, 2022.
Zhaiming Shen, Alexander Hsu, Rongjie Lai, and Wenjing Liao. Understanding in-context learning on structured manifolds: Bridging attention to kernel methods. In International Conference on Learning Representations, volume 2026, pp. 42067–42103, 2026.
Björn Sprungk. On the local Lipschitz stability of Bayesian inverse problems. Inverse Problems, 36(5):055015, 2020.
Andrew M Stuart. Inverse problems: A Bayesian perspective. Acta Numerica, 19:451–559, 2010.
Shokichi Takakura and Taiji Suzuki. Approximation and estimation ability of transformers for sequence-to-sequence functions with infinite dimensional input. In International Conference on Machine Learning, pp. 33416–33447. PMLR, 2023.
Panos Tsimpos, Edoardo Calvello, Ayoub Belhadji, and Nicholas H Nelsen. One operator for many densities: Amortized approximation of conditioning by neural operators. preprint arXiv:2605.06873, 2026.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017.
James Vuckovic, Aristide Baratin, and Remi Tachet des Combes. A mathematical theory of attention. preprint arXiv:2007.02876, 2020.
James Vuckovic, Aristide Baratin, and Remi Tachet des Combes. On the regularity of attention. preprint arXiv:2102.05628, 2021.
Mingze Wang and Weinan E. Understanding the expressive power and mechanisms of transformer for sequence modeling. In Advances in Neural Information Processing Systems, volume 37, pp. 25781–25856, 2024.
Christina Winkler, Daniel Worrall, Emiel Hoogeboom, and Max Welling. Learning likelihoods with conditional normalizing flows. preprint arXiv:1912.00042, 2019.
Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J Reddi, and Sanjiv Kumar. Are transformers universal approximators of sequence-to-sequence functions? In International Conference on Learning Representations, 2020a.
Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank Reddi, and Sanjiv Kumar. connections are expressive enough: Universal approximability of sparse transformers. In Advances in Neural Information Processing Systems, volume 33, pp. 13783–13794, 2020b.
Supplementary Material for: Universal Approximation of Measure-to-Measure Operators by Pushforwards
A AUXILIARY RESULTS
This appendix contains auxiliary results and additional supporting material.
A.1 ADDITIONAL MATERIAL FOR SECTION 2
We now provide another example of a continuous measure-to-measure operator; this one is based on proximal maps. Proximal maps and minimizing-movement schemes can be defined on general metric spaces; see, e.g., the work of Ambrosio et al. (2008). Here we consider such a construction on the 1-Wasserstein space.
Example A.1 (W₁-proximal map). Let Ω ⊂ Rᵏ be compact with positive Lebesgue measure. Define the entropy functional
For and , consider the variational problem
Since is compact, and this space is compact with respect to . Moreover, Ent is lower semicontinuous and strictly convex, while
is convex. Hence, the above minimization problem admits a unique minimizer. Therefore, defines a measure-to-measure operator
We next observe that is continuous with respect to . Indeed, let in and set
By compactness of , every subsequence of has a further subsequence, still denoted by , such that
for some . For every , the minimizing property gives
Using the lower semicontinuity of Ent and the continuity of , we obtain
Since is arbitrary, is a minimizer of the variational problem associated with . By uniqueness,
Hence every convergent subsequence of has the same limit , and therefore
Thus,
This map also illustrates a limitation of exact deterministic pushforward representations on atomic measures. Suppose that and consider the input
The minimum value in the definition of is finite, since there exist absolutely continuous probability measures on with finite entropy. Consequently,
and hence
In particular, is non-atomic. On the other hand, for every deterministic map
we have
which is a Dirac measure. Therefore,
for every such G. Thus, -proximal maps provide natural examples of continuous measure-to-measure operators which, on atomic inputs, cannot in general be represented exactly by deterministic pushforward models.
To conclude this appendix, we provide the proof of the lower bound asserted in Example 2.4.
Proposition A.2. Let
where . Then
The minimum is attained at .
Proof. In one dimension, the 1-Wasserstein distance admits the quantile representation
where and denote the corresponding quantile functions. For
we have
whereas
Hence
We now minimize this expression under the constraint . If , the choice is admissible and minimizes the last term. Thus it remains to minimize
For ,
which is decreasing as u increases and therefore attains its minimum at . For ,
which is increasing and hence again attains its minimum at u = -1. Therefore,
If , then the constraint implies
Consequently,
Thus the global minimum is , attained at
as claimed.
A.2 ADDITIONAL MATERIAL FOR SECTION 3
As discussed in Section 3, the uniform level set condition (3.1) for a compact set and continuous scalarization is equivalent to the condition that is non-atomic for every . We now elaborate on the proof of this fact.
Remark A.3 (Equivalence of uniform level set condition and pointwise non-atomic family). Let be -compact. Let . The following are equivalent:
Indeed, (A.1) implies (A.2) by the argument leading to (B.5) in the proof of Theorem 3.6. To see the other direction, first define . Let (A.2) hold, which is equivalent to
Define
We claim that the map
is continuous from into with the weak topology. To this end, let in and hence in distribution. Let be any continuous and bounded function on . Then
by the weak convergence of because is bounded and continuous. On the other hand, for any , it holds that
by splitting the integral. For fixed , the first term on the right-hand side of the preceding display tends to zero as by continuity of and compactness of closed balls. Then sending , the second term converges to zero by uniform tightness of the weakly convergent sequence . An application of the triangle inequality then shows that
as , so in distribution. Thus, is compact in the weak topology. The assertion that (A.1) holds then follows by exactly the same contradiction argument used in the proof of Example 3.4.
A.3 ADDITIONAL MATERIAL FOR SECTION 4
By considering Gaussian convolutions, Theorem 4.4 can be generalized to compact sets which do not necessarily satisfy the uniform level set condition; in particular, this generalization allows discrete measures to belong to . To this end, given and , let denote the distribution of the random variable , where and are independent. That is,
For a compact set , define
We first prove that the mapping preserves -compactness.
Lemma A.4. If is -compact and , then is -compact.
Proof. It suffices to show that the mapping is -continuous. In fact, we will show that it is 1-Lipschitz continuous uniformly in . Fix and . Let be random variables such that , , and and are -optimally coupled. If , then defines a coupling of and . Therefore,
This proves the desired claim.
Moreover, uniformly approximates over K with an explicit rate.
Lemma A.5. If is -compact and , then
Proof. If , , and , then defines a coupling of and . Therefore,
This completes the proof.
Notice that for any , even if contains singular or atomic measures. Application of Theorem 4.4 to , together with the preceding lemmas, yields the following generalization to Theorem 4.4 that is valid for any -compact set ; in particular, the uniform level set condition (3.1) is not required.
Corollary A.6. Fix . Let be -continuous. Let be -compact. For any , there exists and a transformer T of the form (4.2) such that
Proof. Let . Fix to be determined. By Lemma A.4, is a -compact subset of . Thus, by Example 3.4, satisfies the uniform level set condition (3.1) from Assumption 3.1. Consequently, by Theorem 4.4, there exists a deep transformer in-context map of the form (4.2) such that
By Lemma A.5, the continuity of , and a result on uniform continuity near compact sets (Tsimpos et al., 2026, Lemma C.2), we may choose such that
Application of the triangle inequality to obtain
completes the proof.
We conclude with the following observation. The proof of Theorem 4.4—in particular the analysis leading to (C.13)—implies an independently interesting result on the universality of deep transformer in-context maps over -compact sets of probability measures supported on the whole of instead of on a compact token domain. We state this result as a proposition.
Proposition A.7. Fix . Let be compact and be -compact. Then for any and any , there exists a deep transformer in-context map of the form (4.2) such that
B PROOFS OF RESULTS IN SECTION 3
This appendix provides the remaining proofs of results from Section 3 in the main text.
B.1 PROOF OF EXAMPLE 3.3
Proof. Since , we have
Thus, it is enough to prove that
Suppose by contradiction that this fails. Then there exist
such that
Since K is compact, it is tight. Hence there exists such that
We claim that is bounded. Indeed, if were unbounded, then, after passing to a subsequence,
Since , for all sufficiently large , it holds that
Therefore
which contradicts the choice of and . Thus is bounded. Passing to a subsequence, we may assume that
for some . Since is compact, after passing to a further subsequence,
for some . Since is non-atomic,
Therefore, by continuity from above,
Hence we may choose such that
For all sufficiently large n, it holds that
Consequently,
Since is closed, the Portmanteau theorem gives
It follows that
a contradiction. Therefore,
which proves the assertion.
B.2 PROOF OF EXAMPLE 3.4
Proof. Since is non-atomic, by Lemma B.1 there exists such that
satisfies
Fix . Since , for every Borel set , it holds that
Hence
and therefore
Thus
Since is non-atomic, is also non-atomic. Define
Since is Lipschitz, the map
is continuous. Therefore is compact in . Moreover,
We claim that
Suppose by contradiction that this fails. Then there exist , , , and such that
Since L is compact, it is tight. Hence there exists R > 0 such that
Consequently, must be bounded; otherwise, for infinitely many , it would hold that
which would imply
This is a contradiction. Now passing to a subsequence,
for some . Since is compact, after passing to a further subsequence,
for some . Because is non-atomic,
Hence there exists such that
For sufficiently large n,
Therefore
Since is closed, the Portmanteau theorem yields
Hence
contradicting the choice of . Thus
as asserted.
In the preceding proof, we required the following lemma concerning the non-atomicity of almost every one-dimensional projection.
Lemma B.1. Let . Then for surface-almost every , it holds that
Proof. The case is immediate because and . We therefore assume that . Let denote the surface measure on . For , set
Let
By the definition of pushforward measures,
Integrating with respect to v and applying Tonelli's theorem gives
If , then
is a -dimensional great subsphere of and therefore has zero surface measure. If , the above set is the whole sphere. Hence
Since is non-atomic,
Therefore,
Since the integrand is nonnegative,
for almost every . Last, for any Borel probability measure on , it holds that
It follows that if and only if is non-atomic because if has an atom of mass , then
Consequently,
for almost every .
B.3 PROOF OF EXAMPLE 3.5
Proof. Define
Consider the map
The map is continuous. Indeed, convergence in implies uniform convergence, so the evaluation map is continuous. Moreover, is injective. In fact, if
then , and hence . Since is injective, we obtain . Since is compact and is Hausdorff, is a homeomorphism from onto . In particular, is compact. Define
Equivalently,
where . Hence f is continuous.
Since is a compact metric space, it is normal. By the Tietze extension theorem, there exists
such that
Therefore,
Since is compact in , there exists such that
On the other hand, by assumption,
Fix and . By the definition of and the identity , we have
Hence
The estimate is uniform in and . Therefore,
It remains to relate this parametrized statement to the uniform level set condition on a family of measures. First, the map
is continuous. Indeed, if in , then
uniformly on , and hence, for every , it holds that
Thus, weakly. Since is compact, this is equivalent to convergence in . Consequently,
is compact in .
Assume now that distinct curves in have distinct images, i.e.,
Then, is injective. Since it is a continuous bijection from the compact space onto the Hausdorff space , its inverse
is continuous. We may therefore define
This map is continuous, and the preceding estimate gives
Hence, K satisfies the uniform level set condition (3.1).
B.4 PROOF OF THEOREM 3.6
Proof. The proof proceeds in six steps.
Step 1 (Truncate the output space). For , define the truncation map
and set
Then a direct calculation shows that
Hence
where
Since is compact in by the continuity of , Lemma B.2 shows that
Step 2 (Cover the truncated output space). Fix . Since is compact, we can choose an -net
and a continuous partition of unity such that
and
for each i. Moreover, the covering may be chosen so that
by a standard volumetric bound. Next, define
Since is continuous by the 1-Lipschitz property of and each is bounded and continuous, is continuous. For each , define a probability measure on by
where denotes the (sub-probability) measure with density with respect to . Because is supported on and on , it holds that is a coupling of and . Moreover, for each , the support condition implies that if , then for -almost every . Hence
Therefore,
Step 3 (Transport to and from the uniform distribution). Since satisfies the uniform level set condition (3.1) from Assumption 3.1 by hypothesis, the construction in Lemma B.3 delivers the existence of such that
Next, define the cumulative weights
Then . Also define the discontinuous map
If , then a direct calculation shows that
In particular, (B.1) shows that
Step 4 (Regularize the discontinuous pushforward map). Let . Let be nonnegative with . Set
Extend to by setting
Define
Equivalently,
where the nonnegative continuous weights are obtained by integrating over the intervals associated with . In particular,
for all and .
Last, define our final approximation G to be
Since and are continuous, it holds that
is also continuous.
Step 5 (Bound the regularized pushforward error). We next compare with . Let
for every . Then
and outside , apart from a set of Lebesgue measure zero. Since both maps take values in , it holds that
for each and . Coupling them by the same random variable gives
Therefore,
Step 6 (Combine the estimates). Combining Steps 1–5 and using the triangle inequality, we obtain
Choose R > 0 sufficiently large such that
Next, choose sufficiently small such that
With and fixed as in the preceding displays, choose sufficiently small such that
Then (B.2) yields
This completes the proof.
The following result is a well-known property of compact sets in Wasserstein space that is used in the preceding argument; we provide a proof for the sake of completeness.
Lemma B.2 (Uniform integrability of -th moments). Let and . Let be -compact. Then
Proof. Suppose by contradiction that (B.3) fails. Then there exist , a sequence , and a sequence such that
Since K is compact with respect to , after passing to a subsequence, we may assume that
for some .
Fix . Since , there exists such that
Choose a continuous function such that
and define
Then is continuous and satisfies
as well as
Since in and is continuous with at most -th-order growth,
Moreover,
Hence, for all sufficiently large n, it holds that
Since , we also have for all sufficiently large . Therefore,
Choosing gives a contradiction.
The core of the proof of Theorem 3.6 relies on transporting to the one-dimensional uniform distribution with a jointly continuous in-context map.
Lemma B.3 (Continuous exact uniformizer). Let . Let satisfy Assumption 3.1. Then there exists
such that
Proof. Let be the continuous scalarization from Assumption 3.1. Fix . Define
Let be continuous and nondecreasing such that
Define
Clearly takes values in .
We first show that
To this end, let in as and set
Since is continuous, uniformly on every compact subset of . Moreover,
and each are continuous. Since in , in particular converges to in distribution, and the family is uniformly tight. It follows that
as by the same argument used in Remark A.3. Hence
so is continuous.
Now fix and define
Assumption 3.1 implies that is non-atomic. To see this, note that for every , it holds that
and
for every . Letting and using the uniform level set condition gives
as claimed.
Continuing, we let
be the cumulative distribution function of . Define its smoothed version by
Then
and consequently
For every , it holds that
Indeed, the functions
coincide outside the set . Hence,
Since is non-atomic, is continuous. The probability integral transform gives
Last, define
By the preceding two displays, it holds that
for all . It remains to show that is jointly continuous. To this end, let as in . For any , we estimate
by (B.4) and (B.6). The second term in the last line of the preceding display tends to zero as for fixed by continuity of . After sending , the first term tends to zero as by Assumption 3.1. Thus, is continuous as asserted.
C PROOFS OF RESULTS IN SECTION 4
This appendix provides the remaining proofs of results from Section 4 in the main text.
C.1 PROOF OF THEOREM 4.4
Proof. Fix . By Theorem 3.6 and Remark 3.7, there exists a bounded continuous map
such that
Set
We first compactify the input space. Let
and define
The map is bounded, continuous, and injective. Since it is 1-Lipschitz, the induced pushforward
is continuous with respect to . Define
Since K is compact, is also compact by continuity of . Moreover,
is a homeomorphism.
Since K is compact in , it is uniformly tight. Hence
Choose R > 0 sufficiently large such that
Set
Then is compact. Define
by
This map is well-defined and continuous because and are homeomorphisms onto their images.
Since is a closed subset of the compact metric space and is convex, the Dugundji extension theorem (Dugundji, 1951) delivers the existence of a continuous map
such that
and
Choose sufficiently small such that
By the universal approximation theorem for measure-theoretic transformer in-context maps on the compact domain (Furuya et al., 2025b, Theorem 1), there exists a measure-theoretic transformer
of the form (4.2)—also depending on R—such that
In particular, by (C.4) and the preceding display, it holds that
Since is compact, is compact. Since is continuous on (Furuya et al., 2026), it is uniformly continuous. Therefore, there exists a nondecreasing function
such that and
for every and in and and in . Now choose such that
After and have been fixed, choose sufficiently large such that
We next approximate on by a token-wise MLP. Define
and
Then Clip is exactly representable by a shallow ReLU neural network and satisfies
For any , there exists a ReLU MLP satisfying
by the universal approximation theorem for ReLU MLPs. Set
which is also a MLP. Since Clip is the metric projection onto , it is 1-Lipschitz. Thus,
Moreover,
Choose sufficiently small such that
Let be an attention layer of the form (4.1) with for every head . Then
for every . Define by
Equivalently,
The initial identity attention layer and the token-wise MLP put T in the form (4.2). The initial layer is defined for every probability measure. Then maps into . Consequently, all subsequent attention layers act on measures supported on compact subsets of Euclidean space because measure-theoretic attention operators map compactly supported probability measures to compactly supported probability measures. Thus, T is well-defined on .
We next estimate the error incurred by replacing with . Let . The probability measure is a coupling of and . Hence
by splitting the integral and invoking (C.11). Using yields
where is as in (C.10). So, for , it holds that
by (C.12) and (C.10). Then by (C.8) and (C.9), it holds that
Moreover, (C.3) and (C.6) yield
Thus, if , then
In the other hand, if , then (C.7) and a crude bound show that
Consequently,
Using the common random variable to couple and , followed by Minkowski's inequality and (C.14), we obtain the estimate
by (C.5) and (C.2). Last, the triangle inequality, (C.15), and (C.1) deliver the bound
as asserted.
30
□
C.2 PROOF OF COROLLARY 4.6
Proof. The proof follows the same construction as that of Theorem 3.6, but now with the input measure replaced by the continuously-varying source measure . Indeed, the assumption (4.3), together with the continuity of , yields, by the same argument as in Lemma B.3, a continuous map
such that
The remainder of the proof is identical to that of Theorem 3.6, except now with replaced by .