In-Context Operator Learning on the Space of Probability Measures
Frank Cole, Dixi Wang, Yineng Chen, Yulong Lu, Rongjie Lai
TL;DR
We introduce in-context operator learning on probability-measure spaces to approximate OT maps $T_{\rho_0\to\rho_1}$ as a single, task-agnostic operator $\mathscr{T}$ that is invoked by few-shot prompts without gradient updates at test time. The framework uses a transformer-based solution operator that maps empirical prompts $(\hat{\rho}_0,\hat{\rho}_1)$ to predictions of the OT map, with formal analysis in both nonparametric (low-intrinsic-dimension task manifolds) and parametric Gaussian settings. In the nonparametric regime, the authors derive generalization bounds that depend on the intrinsic task dimension, prompt size, and model capacity; in the parametric setting, they construct an explicit transformer that recovers the exact OT map in context and provide finite-sample excess-risk bounds. Numerical experiments on synthetic transports and high-dimensional generative-modeling benchmarks corroborate the theory, showing accurate prompt-driven transport and a scaling behavior with prompt length that aligns with the theory.
Abstract
We introduce \emph{in-context operator learning on probability measure spaces} for optimal transport (OT). The goal is to learn a single solution operator that maps a pair of distributions to the OT map, using only few-shot samples from each distribution as a prompt and \emph{without} gradient updates at inference. We parameterize the solution operator and develop scaling-law theory in two regimes. In the \emph{nonparametric} setting, when tasks concentrate on a low-intrinsic-dimension manifold of source--target pairs, we establish generalization bounds that quantify how in-context accuracy scales with prompt size, intrinsic task dimension, and model capacity. In the \emph{parametric} setting (e.g., Gaussian families), we give an explicit architecture that recovers the exact OT map in context and provide finite-sample excess-risk bounds. Our numerical experiments on synthetic transports and generative-modeling benchmarks validate the framework.
