Improving Diffusion-Based Generative Models via Approximated Optimal Transport

Daegyu Kim, Jooyoung Choi, Chaehun Shin, Uiwon Hwang, Sungroh YoonarXiv 2024 · DOI

Abstract

Diffusion models have become the state-of-the-art for image generation but suffer from slow sampling speeds due to highly curved ODE trajectories. This paper introduces Approximated Optimal Transport (AOT), a training scheme that "straightens" these paths by intelligently pairing noise and data. By reducing information entropy during training, AOT enables high-quality image generation with significantly fewer sampling steps, achieving new state-of-the-art results on standard benchmarks.

The Curvature Bottleneck in Diffusion Models

To generate an image, diffusion models solve an Ordinary Differential Equation (ODE) that transforms Gaussian noise into structured data. Standard training typically pairs images with noise vectors at random. This high-entropy approach forces the model to learn a mapping where a single noisy point could correspond to many different clean images. Consequently, the model learns to "average" these possibilities at high noise levels, leading to highly curved ODE trajectories.

In numerical solvers, curvature necessitates small step sizes (high Number of Function Evaluations, or NFEs) to maintain accuracy. Large steps on curved paths introduce truncation errors, resulting in blurry or distorted outputs.

Methodology: Approximated Optimal Transport (AOT)

The authors propose AOT to linearize these trajectories by treating noise-data pairing as an assignment problem rather than a random process.

  1. Batch-level Matching: During training, a batch of $N$ images is paired with $N$ random noise vectors.
  2. Hungarian Algorithm: The specific permutation of noise vectors that minimizes the total Euclidean distance to the target images is found using the Hungarian algorithm.
  3. Entropy Reduction: By pairing "similar" noise to "similar" images, the training target becomes more deterministic, reducing the information entropy of the learned mapping.
  4. Path Straightening: The resulting ODE trajectories are significantly straighter, allowing for more efficient sampling.

The method is further enhanced by Discriminator Guidance (DG), which uses a separate discriminator trained on AOT-paired samples to refine the generation process.

Key Insights: Visualizing the Straightened Path

The primary advantage of AOT is the directness of the generation path. This is most evident when comparing single-step generation. While standard models like EDM produce blurry, "averaged" images when forced to use a single-step Euler method, EDM-AOT produces sharp and recognizable images, proving the path is much more direct.

Single-step generation comparison: (a) Ground truth, (b) standard EDM 1-step, and (c) EDM-AOT 1-step. AOT produces significantly sharper results in a single step.

Furthermore, AOT-equipped models exhibit high robustness to the sampling "stride" (controlled by hyperparameter $\rho$). While standard models often see performance collapse as step sizes increase at high noise levels, AOT remains stable, permitting more aggressive sampling schedules.

Experimental Results

The researchers evaluated AOT on the CIFAR-10 dataset for both unconditional and class-conditional generation, achieving impressive gains in both efficiency and quality.

  • Efficiency Gains: EDM-AOT achieved an FID of 1.88 with only 27 NFEs, outperforming the baseline EDM which requires 35 NFEs to reach a higher FID of 1.97.
  • State-of-the-Art Performance: Combining EDM-AOT with Discriminator Guidance established new SOTA FID scores for CIFAR-10: 1.68 (unconditional) and 1.58 (conditional), both achieved with only 29 NFEs.
FID vs. NFE comparison across various models. EDM-AOT (purple) achieves lower FID scores with fewer function evaluations compared to baselines.

Limitations and Future Outlook

While AOT significantly improves efficiency, it introduces a marginal computational overhead during training (2% to 15%) due to the Hungarian algorithm. Future research is needed to explore how AOT scales to high-resolution datasets (e.g., ImageNet 512x512) and how the quality of the transport approximation varies with batch size and hardware constraints. Nevertheless, AOT offers a powerful, "plug-and-play" strategy for enhancing existing diffusion frameworks without requiring architectural changes.

Summary updated

BibTeX
@misc{kim2024improving,
  author = {Daegyu Kim and Jooyoung Choi and Chaehun Shin and Uiwon Hwang and Sungroh Yoon},
  title = {{Improving Diffusion-Based Generative Models via Approximated Optimal Transport}},
  year = {2024},
  eprint = {2403.05069},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.05069},
}
Figure