DPM-OT: A New Diffusion Probabilistic Model Based on Optimal Transport

Zezeng Li, ShengHao Li, Zhanpeng Wang, Na Lei, Zhongxuan Luo, Xianfeng Gu

TL;DR

DPM-OT is a novel sampling framework that slashes the time needed to generate high-quality images from diffusion models by replacing hundreds of denoising steps with a mathematical "expressway" based on Optimal Transport. By leveraging the discontinuous nature of optimal transport maps, it effectively eliminates "mode mixture"—the common problem where fast samplers generate nonsensical hybrid images (like a bird-horse)—producing clean results in as few as 5 to 10 steps.

What Problem Does This Paper Address?

Diffusion Probabilistic Models (DPMs) have become the gold standard for image generation, but they have a major Achilles' heel: they are incredibly slow. Standard models require iterating through thousands of tiny denoising steps to transform random noise into a clear image.

While researchers have developed "fast samplers" to skip steps, these often come with a hidden cost. When you take large jumps through the diffusion process, models often suffer from mode mixture. Because the underlying data manifold (the "shape" of the data distribution) is often discontinuous at class boundaries, continuous neural networks struggle to jump between these points. The result is often a blurry mess or a "monster" image that blends features from different categories, limiting the practical use of high-speed diffusion.

Methods

The authors introduce DPM-OT, which treats the inverse diffusion process as an Optimal Transport (OT) problem. Instead of slowly walking down a long path of thousands of steps, DPM-OT builds a direct "expressway" from the initial noise to an intermediate latent state.

Key components include:

  • Semi-Discrete Optimal Transport (SDOT): The model calculates a map between the continuous prior (white noise) and the discrete data latents.
  • Brenier Potentials: The OT map is represented as the gradient of a Brenier potential. Crucially, these maps are naturally discontinuous at "singular sets" (boundaries). This mathematical property allows the model to respect the sharp boundaries between different data classes, preventing them from bleeding into each other.
  • The Expressway Sampler: The process starts with a single-step OT jump from noise ($x_T$) to an intermediate latent ($x_M$). From there, it only needs a handful (around 5-10) of standard reverse diffusion steps to reach the final high-quality image ($x_0$).
Figure 1. The framework of the proposed DPM-OT. The red curve indicates the Optimal Trajectory, which is induced by the SDOT map g (·) between xT and xM. Correspondingly, the blue line indicates the first T-M steps inverse diffusion of the vanilla DPM.

Datasets

The authors evaluated DPM-OT on three standard benchmarks:

  • CIFAR-10: A dataset of small images across 10 categories (airplane, bird, horse, etc.), used specifically to test for mode mixture.
  • CelebA ($64 \times 64$): A dataset of celebrity faces.
  • FFHQ ($256 \times 256$): A high-resolution dataset of human faces.

Key Insights and Ideas

  • Discontinuity is a Feature: Most machine learning models strive for continuity, but the authors argue that for separating distinct data classes, discontinuity is essential. The OT map's ability to be discontinuous at class boundaries is exactly what prevents mode mixture.
  • Plug-and-Play Efficiency: DPM-OT doesn't require training a new diffusion model from scratch. It can be wrapped around existing pre-trained models (like NCSNv2) to accelerate them.
  • Theoretical Guarantees: The paper provides a formal error bound, proving that the DPM-OT sampler is theoretically robust and can fit the target distribution at least as well as vanilla DPMs.

Key Results

DPM-OT demonstrates a superior trade-off between speed and quality:

  • Speed: It achieves high-quality results in just 5 to 10 function evaluations (NFE), whereas original models might need over 1,000.
  • Quality (FID): On CIFAR-10, DPM-OT achieved an FID score of 3.61 at 10 steps, outperforming other popular fast samplers like DPM-Solver (3.72 at 20 steps) and DDIM (4.60 at 100 steps).
  • Mode Mixture Alleviation: The authors proposed a "Mode Mixture Ratio" (MMR) metric. On CIFAR-10, DPM-OT had a mixture ratio of only 1.40% at 5 steps, compared to a staggering 17.75% for the baseline NCSNv2 model.
Figure 2. The visual comparison on CIFAR-10 dataset.

Limitations and Future Work

  • Storage Requirements: One drawback is that the noisy training samples ($x_M$) need to be stored for use during sampling, which increases memory demands. The authors have developed batch-processing algorithms to mitigate this, but it remains a factor.
  • Unconditional Generation: The current study focuses on unconditional generation (creating random images). The authors note that extending this framework to conditional synthesis (e.g., text-to-image) is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{li2023dpm,
  author = {Zezeng Li and ShengHao Li and Zhanpeng Wang and Na Lei and Zhongxuan Luo and Xianfeng Gu},
  title = {{DPM-OT: A New Diffusion Probabilistic Model Based on Optimal Transport}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.02068},
}
Figure