Abstract
Sampling conditional distributions is a fundamental task for Bayesian inference and density estimation. Generative models, such as normalizing flows and generative adversarial networks, characterize conditional distributions by learning a transport map that pushes forward a simple reference (e.g., a standard Gaussian) to a target distribution. While these approaches successfully describe many non-Gaussian problems, their performance is often limited by parametric bias and the reliability of gradient-based (adversarial) optimizers to learn these transformations. This work proposes a non-parametric generative model that iteratively maps reference samples to the target. The model uses block-triangular transport maps, whose components are shown to characterize conditionals of the target distribution. These maps arise from solving an optimal transport problem with a weighted $L^2$ cost function, thereby extending the data-driven approach in [Trigila and Tabak, 2016] for conditional sampling. The proposed approach is demonstrated on a two dimensional example and on a parameter inference problem involving nonlinear ODEs.
Introduction
In Bayesian inference, the primary objective is often to sample from a posterior distribution $P(X|Y=y^*)$. While traditional methods like Markov Chain Monte Carlo (MCMC) are robust, they frequently encounter scalability issues in high-dimensional spaces or struggle with multi-modal distributions. Modern generative models, including Normalizing Flows (NFs) and Generative Adversarial Networks (GANs), provide a faster alternative by learning a transport map from a simple reference distribution to the target.
However, these parametric models face significant hurdles. First, parametric bias limits accuracy based on the chosen neural network architecture. Second, training instability is common; GANs require complex adversarial optimization, and NFs often necessitate the calculation of computationally expensive Jacobian determinants to ensure valid transformations. This paper introduces a non-parametric generative flow model rooted in Optimal Transport (OT) that bypasses these issues.
Methodology
The proposed Conditional Flow Model utilizes a data-driven approach to iteratively map reference samples to a target distribution. The core technical innovations include:
- Block-Triangular Maps: To facilitate conditional sampling, the model employs a map structure where the transformation of the observation $Y$ is independent of $X$, while the transformation of $X$ depends on both $Y$ and $X$.
- Weighted $L^2$ Cost: The model uses a cost function that penalizes movement in the conditioning dimension $Y$ more heavily than in $X$. As the penalty parameter $\lambda \to \infty$, the map converges to a conditional transport map.
- Iterative Data-Driven Flow: Instead of a single deep network, the model constructs a sequence of "elementary maps." At each step, a minimization problem is solved to find the optimal local perturbation.
- Newton’s Method Optimization: The algorithm uses a one-step Newton scheme to update potential function coefficients (parameterized by radial basis functions), capturing local curvature for faster convergence.
The iterative process, detailed in Algorithm 1, continues until the samples reach a steady state, defined by a termination threshold $\epsilon$ (typically $10^{-6}$). This approach eliminates the need for Jacobian calculations and adversarial training, turning the problem into a straightforward minimization task.
Experimental Evaluation
The model was evaluated on two benchmarks to demonstrate its flexibility and accuracy:
- 2D Banana Distribution: This synthetic problem tests the model's ability to capture non-linear, warped, and multi-modal distributions. The flow model successfully captured the true multi-modal conditional density, outperforming standard Approximate Bayesian Computation (ABC) methods which often produce inaccurate posterior estimates.
- Lotka–Volterra Dynamical System: This parameter inference problem involved nonlinear ODEs with 18-dimensional noisy observations. The generative flow produced posterior samples closely matching MCMC results using only 1,000 joint distribution samples, demonstrating high efficiency in likelihood-free scenarios.
Discussion and Future Work
The proposed generative flow offers several advantages: it is non-parametric, allowing it to adapt to complex distributions by increasing iterations rather than network capacity; it is "likelihood-free," requiring only samples from the joint distribution; and it avoids the computational bottlenecks of Jacobian determinants.
Current limitations include the reliance on radial basis functions (RBFs), which may struggle with the "curse of dimensionality" in extremely high-dimensional spaces. Future research may explore adaptive feature selection or the use of Reproducing Kernel Hilbert Spaces (RKHS) to better exploit low-dimensional structures in high-dimensional data.
Summary updated