Abstract
Wasserstein gradient flow has emerged as a promising approach to solve optimization problems over the space of probability distributions. A recent trend is to use the well-known JKO scheme in combination with input convex neural networks to numerically implement the proximal step. The most challenging step, in this setup, is to evaluate functions involving density explicitly, such as entropy, in terms of samples. This paper builds on the recent works with a slight but crucial difference: we propose to utilize a variational formulation of the objective function formulated as maximization over a parametric class of functions. Theoretically, the proposed variational formulation allows the construction of gradient flows directly for empirical distributions with a well-defined and meaningful objective function. Computationally, this approach replaces the computationally expensive step in existing methods, to handle objective functions involving density, with inner loop updates that only require a small batch of samples and scale well with the dimension. The performance and scalability of the proposed method are illustrated with the aid of several numerical experiments involving high-dimensional synthetic and real datasets.
Introduction
Wasserstein gradient flows (WGF) provide a powerful framework for describing the evolution of probability measures toward the minimizer of a functional. They are central to various fields, including optimal transport, statistical physics, and machine learning. However, implementing WGF in high-dimensional spaces is computationally demanding. Traditional methods rely on grid-based discretizations, which suffer from the "curse of dimensionality."
Recent advancements have integrated the Jordan-Kinderlehrer-Otto (JKO) time-discretization scheme with Input Convex Neural Networks (ICNNs). While promising, these methods typically require explicit density evaluation or the calculation of the log-determinant of the Hessian of the transport map. This calculation scales cubically with the data dimension, creating a significant computational bottleneck for high-dimensional applications like image generation or complex Bayesian inference.
Methodology: The Variational JKO Scheme
The proposed method addresses the computational bottleneck by reformulating the JKO proximal step. In the standard JKO scheme, the distribution at the next time step is found by minimizing a functional that includes an energy term and a Wasserstein distance term.
The core innovation is the use of a variational formulation for $f$-divergences. Instead of explicitly computing the density of pushed-forward particles to compute the objective (e.g., Kullback-Leibler divergence), the authors introduce a secondary "dual" neural network to estimate the divergence. This transforms the proximal step into a minimax optimization problem:
- A transport network (ICNN) learns the map to push particles toward the target distribution.
- A dual network estimates the objective functional using only samples from the distributions.
This sample-based approach completely eliminates the need for Hessian log-determinant calculations. Consequently, the computational complexity of a training step depends only on the batch size and the neural network size, making it practically independent of the data dimension $n$.
Experimental Evaluation
The effectiveness of the variational Wasserstein gradient flow was tested across various synthetic and real-world datasets, including Gaussian Mixture Models (GMM), Bayesian Logistic Regression on tabular data, and image generation on MNIST and CIFAR10.
As shown in the figure above, the proposed method maintains a low Kernelized Stein Discrepancy (KSD) as the dimension increases, whereas baseline JKO-ICNN methods show significant performance degradation. Furthermore, the objective functional converges stably over the JKO steps. In the GMM sampling task, as the data dimension scaled from 2 to 32, the proposed method's training time remained flat at roughly 22 seconds per step, while the baseline's time ballooned from 25 seconds to over 100 seconds.
In high-dimensional settings ($n=128$), the method accurately captures the structure of complex stationary measures, as visualized above. For image generation, the "JKO-Flow" model achieved a competitive FID score of 23.1 on CIFAR10, demonstrating its viability in pixel-space applications where traditional WGF methods fail due to dimensionality.
Conclusion
This work introduces a scalable algorithm for Wasserstein gradient flows by leveraging variational $f$-divergences. By bypassing explicit density estimation, the method achieves dimension-independent training costs per step and superior accuracy in high-dimensional regimes. While minimax optimization presents stability challenges similar to GAN training, the theoretical grounding and empirical results suggest that variational formulations are a robust path forward for high-dimensional optimal transport problems.
Summary updated