Efficient Neural Network Approaches for Conditional Optimal Transport with Applications in Bayesian Inference
Zheyu Oliver Wang, Ricardo Baptista, Youssef Marzouk, Lars Ruthotto, Deepanshu Verma
TL;DR
This work tackles conditional sampling and density estimation in Bayesian inference when the likelihood is intractable, by developing two neural network-based conditional optimal transport (COT) approaches. PCP-Map provides a static, Brenier-map-inspired Transport via the gradient of a partially input convex neural network, trained with maximum likelihood, while COT-Flow offers a dynamic transport via a neural ODE with OT-regularized velocity fields. The methods are demonstrated on six UCI datasets, stochastic Lotka–Volterra inference, and high-dimensional shallow water equations, showing competitive accuracy and favorable computational trade-offs compared to state-of-the-art baselines, with PCP-Map delivering faster training and COT-Flow enabling rapid sampling after training. The work contributes reproducible, scalable techniques for amortized posterior sampling in likelihood-free settings and lays groundwork for statistical and computational analyses of learned COT maps.
Abstract
We present two neural network approaches that approximate the solutions of static and dynamic $\unicode{x1D450}\unicode{x1D45C}\unicode{x1D45B}\unicode{x1D451}\unicode{x1D456}\unicode{x1D461}\unicode{x1D456}\unicode{x1D45C}\unicode{x1D45B}\unicode{x1D44E}\unicode{x1D459}\unicode{x0020}\unicode{x1D45C}\unicode{x1D45D}\unicode{x1D461}\unicode{x1D456}\unicode{x1D45A}\unicode{x1D44E}\unicode{x1D459}\unicode{x0020}\unicode{x1D461}\unicode{x1D45F}\unicode{x1D44E}\unicode{x1D45B}\unicode{x1D460}\unicode{x1D45D}\unicode{x1D45C}\unicode{x1D45F}\unicode{x1D461}$ (COT) problems. Both approaches enable conditional sampling and conditional density estimation, which are core tasks in Bayesian inference$\unicode{x2013}$particularly in the simulation-based ($\unicode{x201C}$likelihood-free$\unicode{x201D}$) setting. Our methods represent the target conditional distribution as a transformation of a tractable reference distribution. Obtaining such a transformation, chosen here to be an approximation of the COT map, is computationally challenging even in moderate dimensions. To improve scalability, our numerical algorithms use neural networks to parameterize candidate maps and further exploit the structure of the COT problem. Our static approach approximates the map as the gradient of a partially input-convex neural network. It uses a novel numerical implementation to increase computational efficiency compared to state-of-the-art alternatives. Our dynamic approach approximates the conditional optimal transport via the flow map of a regularized neural ODE; compared to the static approach, it is slower to train but offers more modeling choices and can lead to faster sampling. We demonstrate both algorithms numerically, comparing them with competing state-of-the-art approaches, using benchmark datasets and simulation-based Bayesian inverse problems.
