Efficient Neural Network Approaches for Conditional Optimal Transport with Applications in Bayesian Inference

Zheyu Oliver Wang, Ricardo Baptista, Youssef M. Marzouk, Lars Ruthotto, Deepanshu Verma

TL;DR

This paper introduces two novel neural network approaches, PCP-Map and COT-Flow, for efficiently learning conditional optimal transport maps. These methods enable faster and more accurate conditional sampling and density estimation, crucial for complex Bayesian inference problems, particularly in "likelihood-free" settings.

What Problem Does This Paper Address?

Bayesian inference often requires sampling from complex posterior distributions, a computationally intensive task. When the likelihood function is intractable (a common scenario in scientific and engineering applications), traditional methods like MCMC become infeasible. While "likelihood-free" inference methods offer alternatives, many rely on sample-driven measure transport, which can be ill-defined or computationally expensive. This paper tackles the challenge of learning conditional optimal transport (COT) maps, which provide a well-specified and efficient way to transform a simple reference distribution into a target conditional distribution, enabling faster sampling and density estimation for Bayesian inference.

Methods

The authors propose two neural network-based approaches for learning conditional optimal transport maps:

  • Partially Convex Potential Map (PCP-Map): This method approximates the COT map as the partial gradient of a partially input convex neural network (PICNN). This design inherently enforces the structure of conditional Brenier maps, which are known to be optimal under L2 transport cost. The network is trained using maximum likelihood estimation, leveraging the gradient of a convex potential to avoid explicit inversion during training.
  • Conditional Optimal Transport Flow (COT-Flow): This approach extends dynamic measure transport by modeling the COT map as the flow map of an ODE. The velocity field of the ODE is parameterized by a neural network, and the training objective includes an optimal transport regularization term to encourage optimality. This method offers more modeling flexibility but can be slower to train than PCP-Map.

Both methods utilize neural networks to parameterize candidate maps, improving scalability to high dimensions. They also exploit the structure of COT problems to enhance computational efficiency.

Datasets

The paper evaluates the proposed methods on several datasets:

  • UCI Tabular Datasets: Six standard tabular datasets were used for joint and conditional density estimation and sampling.
  • Stochastic Lotka-Volterra Model: This model, with an intractable likelihood, was used to test the methods on a simulation-based Bayesian inverse problem.
  • 1D Shallow Water Equations: A high-dimensional problem used to demonstrate the scalability and accuracy of the proposed approaches.

Key Insights and Ideas

  • COT Maps as a Principled Target: By focusing on conditional optimal transport (specifically conditional Brenier maps), the authors provide a well-defined target for neural network approximations, avoiding the ill-posedness of learning arbitrary transport maps.
  • PCP-Map's Efficiency: The PCP-Map's design, leveraging the gradient of a partially input convex neural network, allows for efficient training via maximum likelihood and avoids explicit inversion during training, leading to faster convergence.
  • COT-Flow's Flexibility: While slower to train, COT-Flow's dynamic approach offers greater modeling flexibility, particularly when dealing with complex dynamics or when the velocity field can be more freely designed.
  • Amortization for Efficiency: Both methods are designed to be amortized, meaning they learn a single model that can generate samples for various conditioning variables, significantly outperforming methods that require recomputation for each new observation.

Key Results

  • Competitive Accuracy: Both PCP-Map and COT-Flow achieve competitive accuracy compared to state-of-the-art methods on UCI tabular datasets, stochastic Lotka-Volterra, and shallow water equations, as measured by negative log-likelihoods and sample visualizations.
  • Faster Training for PCP-Map: PCP-Map generally trains faster than COT-Flow, especially on simpler problems, and requires less hyperparameter tuning.
  • Efficient Sampling for COT-Flow: COT-Flow offers faster sampling after training due to its nearly straight-line velocity field.
  • Outperforming Existing Methods: The proposed approaches consistently outperform existing methods like ATM and SMC-ABC, especially in terms of computational efficiency and accuracy for high-dimensional problems. For instance, PCP-Map converges in significantly less time on the shallow water equations problem compared to other methods.
  • Robustness: The methods demonstrate robustness to hyperparameter choices, with a simple heuristic for hyperparameter selection yielding good results.

Limitations and Future Work

  • PCP-Map Constraints: The PCP-Map approach requires imposing constraints to guarantee partial convexity of the potential, which adds complexity to the model design.
  • COT-Flow Complexity: Training COT-Flow is more involved due to ODE constraints and influential hyperparameters for transport cost and HJB penalties.
  • Theoretical Guarantees: While the paper focuses on empirical validation, the authors see potential in developing theoretical guarantees for approximating COT maps using their approaches, particularly in conditional sampling contexts.
  • Integration with LFI: Future work could involve integrating these conditional generators into existing likelihood-free inference (LFI) frameworks like BayesFlow for enhanced density estimation.
  • Hybrid Inference: Exploring hybrid inference approaches that combine physics-based modeling with conditional normalizing flows could improve scalability and sampling efficiency for large-scale problems.
  • Diffusion Models: The paper notes that diffusion models are gaining traction, and future work could explore their connections to COT and conditional generation.

Summary updated

BibTeX
@article{wang2023efficient,
  author = {Zheyu Oliver Wang and Ricardo Baptista and Youssef M. Marzouk and Lars Ruthotto and Deepanshu Verma},
  title = {{Efficient Neural Network Approaches for Conditional Optimal Transport with Applications in Bayesian Inference}},
  journal = {SIAM J. Sci. Comput.},
  year = {2023},
  url = {https://openreview.net/forum?id=9VE9krNxo9},
}
Figure