Scalable Wasserstein Gradient Flow for Generative Modeling through Unbalanced Optimal Transport

Jaemoo Choi, Jaewoong Choi, Myungjoo Kang

Generative modeling frequently involves transforming a simple, tractable distribution (like Gaussian noise) into a highly complex one (like a dataset of natural images). Wasserstein Gradient Flow (WGF) offers a mathematically elegant framework for this, describing the transformation as a "steepest descent" across a landscape of probability distributions.

To compute this continuous flow practically, researchers rely on the Jordan-Kinderlehrer-Otto (JKO) scheme, which discretizes the flow into $K$ sequential steps. However, existing JKO-based models suffer from a crippling scalability bottleneck. Because the steps are sequential, training the $k$-th step requires samples generated from the $(k-1)$-th step. Generating a sample for step 100 means passing data through all 99 previous networks. This results in a quadratic training complexity of $O(K^2)$, making it computationally prohibitive to use many steps or large neural networks for high-resolution image generation.

In a recent breakthrough, researchers have developed Semi-dual JKO (S-JKO), a novel generative modeling framework that makes WGF scalable for the first time. By leveraging a mathematical equivalence between the JKO scheme and Unbalanced Optimal Transport, S-JKO reduces training complexity from a sluggish $O(K^2)$ to a linear $O(K)$, unlocking state-of-the-art results on high-resolution datasets.

The S-JKO Methodology

The authors tackle the complexity bottleneck through three core innovations:

  1. The UOT Equivalence: They mathematically prove that a single JKO step is equivalent to a "Source-fixed" version of Unbalanced Optimal Transport (UOT). Unlike standard Optimal Transport, which rigidly matches distributions exactly, UOT allows for "mass destruction or creation." This flexibility provides better robustness against outliers and prevents "clustering at the origin" (a form of mode collapse) often seen in one-step transport models.
  2. The Semi-dual Formulation: By utilizing the semi-dual form of the UOT problem, the JKO step is transformed into an adversarial minimax objective, structurally similar to a Generative Adversarial Network (GAN). This allows the transport map and a potential function to be parameterized using standard neural networks. While the training resembles a GAN, it remains grounded in the physics-like dynamics of gradient flows, offering a more stable and structured transformation path.
  3. The Reparametrization Trick: This is the crucial mechanism for accelerating training. Instead of training an incremental map for each step—which causes the sequential bottleneck—the model is reparameterized so that each training phase learns a direct map from the initial noise distribution to the current intermediate distribution.
The proposed reparametrization trick, which learns a direct map from the initial distribution to the current step, bypassing the sequential bottleneck.

By initializing a new map with the weights of the previous one, the model "remembers" the trajectory without needing to recalculate the entire chain during every iteration. This collapses the inference chain during training, successfully reducing the computational complexity to linear $O(K)$.

Key Results and Performance

The S-JKO model was evaluated on synthetic datasets ("Two Circles" and a "25-Gaussian Mixture") to visualize distribution matching, as well as on standard image benchmarks including CIFAR-10 ($32 \times 32$) and CelebA-HQ ($256 \times 256$).

The results demonstrate a massive leap forward for WGF-based models:

  • Unprecedented Efficiency: On CIFAR-10, S-JKO (using a small backbone) trained in just 6 hours. In stark contrast, previous JKO methods required upwards of 30 to 50 hours.
  • State-of-the-Art Quality: S-JKO achieved an FID score of 2.62 on CIFAR-10, outperforming all prior WGF-based models and rivaling top-tier GANs and Diffusion models.
  • High-Resolution Generation: S-JKO is the first JKO-based model to show competitive performance on high-resolution real-world images, achieving an FID of 5.46 on CelebA-HQ-256. It successfully produces high-fidelity human faces that previous WGF methods simply could not reach due to scaling limitations.
Quantitative comparison showing S-JKO's linear complexity, drastically reduced training time, and superior FID scores compared to prior WGF models.

Limitations and Future Work

While S-JKO resolves the quadratic complexity bottleneck, the authors note a few areas for future refinement:

  • Phase-based Training: Although complexity is linear, the model still trains in discrete "phases" (one for each JKO step). Developing a method to train the entire flow continuously could yield further efficiency gains.
  • Hyperparameter Sensitivity: Ablation studies indicate sensitivity to the step size ($h$). A step size that is too large accumulates discretization errors, while one that is too small prevents the transport from moving sufficiently.
  • Theoretical Gaps: The model performs exceptionally well using the Jensen-Shannon Divergence (JSD). Interestingly, the error behavior for JSD at large step sizes is surprisingly better than the Kullback-Leibler Divergence (KLD)—an empirical observation that warrants deeper theoretical investigation.

Summary updated

BibTeX
@inproceedings{choi2024scalable,
  author = {Jaemoo Choi and Jaewoong Choi and Myungjoo Kang},
  title = {{Scalable Wasserstein Gradient Flow for Generative Modeling through Unbalanced Optimal Transport}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=dMhF96PfQi},
}
Figure