Abstract
Minimizing functionals in the space of probability distributions can be done with Wasserstein gradient flows. To solve them numerically, a possible approach is to rely on the Jordan–Kinderlehrer–Otto (JKO) scheme which is analogous to the proximal scheme in Euclidean spaces. However, it requires solving a nested optimization problem at each iteration, and is known for its computational challenges, especially in high dimension. To alleviate it, very recent works propose to approximate the JKO scheme leveraging Brenier’s theorem, and using gradients of Input Convex Neural Networks to parameterize the density (JKO-ICNN). However, this method comes with a high computational cost and stability issues. Instead, this work proposes to use gradient flows in the space of probability measures endowed with the sliced-Wasserstein (SW) distance. We argue that this method is more flexible than JKO-ICNN, since SW enjoys a closed-form differentiable approximation. Thus, the density at each step can be parameterized by any generative model which alleviates the computational burden and makes it tractable in higher dimensions.
Introduction
In machine learning, finding a probability distribution that minimizes a specific functional is a core task in generative modeling and Bayesian inference. The standard approach, Wasserstein Gradient Flow (WGF), utilizes the JKO scheme to iteratively move a distribution toward a minimum. However, the JKO scheme faces significant hurdles: high computational costs due to nested optimization, poor scaling in high dimensions, and architectural constraints (e.g., the requirement for Input Convex Neural Networks in JKO-ICNN).
This paper explores whether replacing the standard Wasserstein distance with the Sliced-Wasserstein (SW) distance can maintain the benefits of gradient flows while dramatically reducing computational complexity.
Methodology: The SW-JKO Scheme
The authors propose the SW-JKO scheme, which substitutes the $W_2$ distance with the Sliced-Wasserstein (SW) distance. The SW distance operates by projecting high-dimensional distributions onto random 1D lines (slices). Because the Wasserstein distance has a simple, closed-form solution in one dimension, averaging these projections provides a differentiable approximation that is significantly faster to compute ($O(N \log N)$ vs. $O(N^3 \log N)$).
Practical Implementations
The paper details three primary methods for solving the SW-JKO scheme:
- Discretized Grid: Learning weights on a fixed grid, suitable for low-dimensional tasks.
- Particle Scheme: Moving discrete points, similar to particle filters.
- Generative Models: Utilizing Normalizing Flows (e.g., RealNVP) to parameterize density. This allows for explicit density estimation and handling high-dimensional data like images without the constraints of ICNNs.
Key Insights: The Dilation Conjecture
A pivotal finding of this work is the "Dilation Conjecture." In many cases, SW gradient flows follow the exact same path as standard Wasserstein gradient flows, merely at a different speed. For Gaussian distributions, the SW flow is a "dilated" version of the WGF, scaled by the dimension $d$. This suggests that SWGF can serve as a computationally efficient proxy for WGF without sacrificing the quality of the optimization path.
Experimental Results
The authors evaluated the SW-JKO scheme across several domains:
- Efficiency: In aggregation equation tasks, the SW-based approach reached solutions in 20 minutes that required 5 hours for the state-of-the-art JKO-ICNN.
- Stability in Bayesian Inference: On 9 standard datasets for Bayesian Logistic Regression (e.g., covtype, german), SW-JKO achieved comparable accuracy to JKO-ICNN while being orders of magnitude faster (e.g., 103s vs. 33,702s for covtype).
- High-Dimensional Scaling: The method successfully generated realistic images on MNIST, FashionMNIST, and CelebA, demonstrating that JKO-style flows can scale to complex manifolds.
- Accuracy: In Gaussian Fokker-Planck experiments, SW-JKO consistently outperformed particle-based methods like the Unadjusted Langevin Algorithm in dimensions greater than 2.
Discussion and Limitations
While promising, the method has limitations. Normalizing Flows, being continuous bijections, struggle with distributions containing "holes" (topological changes) because they cannot easily transform a starting Gaussian into a ring-like structure. Furthermore, while the "dilation by $d$" holds for specific cases, a general theoretical proof remains an open question. Future work may explore higher-order schemes or variants like Max-Sliced Wasserstein to further enhance stability and accuracy in extremely high dimensions.
Summary updated