Distilling Diffusion Models Into Conditional GANs

Minguk Kang, Richard Zhang, Connelly Barnes, Sylvain Paris, Suha Kwak, Jaesik Park, Eli Shechtman, Jun-Yan Zhu, Taesung Park

Introduction

Diffusion models have revolutionized image synthesis, yet their iterative nature imposes a significant "speed tax," often requiring seconds to generate a single image. While Generative Adversarial Networks (GANs) offer near-instantaneous one-step inference, they traditionally struggle to scale to the massive, diverse datasets handled by diffusion models. This paper introduces Diffusion2GAN, a framework that distills high-quality diffusion models into efficient conditional GANs, achieving state-of-the-art performance in a single forward pass.

Methodology: Paired Image-to-Image Translation

The core innovation of Diffusion2GAN is reframing distillation as a paired image-to-image translation task. By solving the Ordinary Differential Equation (ODE) trajectory of a "teacher" diffusion model, the researchers create a dataset of noise-to-image pairs. The student GAN is then trained to map the initial noise directly to the final image, effectively learning the complex mapping established by the teacher.

E-LatentLPIPS

A significant bottleneck in training latent diffusion models is the computational cost of perceptual losses like LPIPS, which typically require decoding latents back into pixel space. To address this, the authors propose Ensembled-LatentLPIPS (E-LatentLPIPS).

Comparison of standard LPIPS decoding vs. the proposed E-LatentLPIPS efficiency.

As shown in the figure above, E-LatentLPIPS operates directly within the latent space. By utilizing an ensemble of random augmentations—such as shifts and cutouts—the model overcomes the "blind spots" of latent features. This approach reduces memory consumption from 15.0 GB to 0.6 GB and speeds up the process from 117ms to 12.1ms, enabling larger batch sizes and faster convergence during training.

Diffusion Discriminator

To maintain high visual realism, the framework employs a multi-scale discriminator initialized with the teacher's pre-trained weights. A "mix-and-match" augmentation strategy is used during training, swapping text prompts or noise maps to ensure the discriminator strictly penalizes misalignments between text and imagery, preventing the common GAN issue of mode collapse.

Key Results and Evaluation

Diffusion2GAN demonstrates superior performance across both quantitative and qualitative benchmarks. On the COCO dataset, it outperformed existing one-step models, including SDXL-Turbo and SDXL-Lightning.

Visual Fidelity

Qualitative analysis reveals that Diffusion2GAN preserves the composition, style, and intent of the original teacher model more effectively than previous distillation methods.

Qualitative comparison of Diffusion2GAN against SDXL Teacher and other one-step distillation methods.

As illustrated in the comparison, the model handles complex prompts—ranging from "fox astronaut" to "steampunk crow"—with higher fidelity and fewer artifacts than its competitors, maintaining a visual quality that closely mirrors the multi-step teacher model.

Quantitative Superiority

In Stable Diffusion 1.5 distillation tests, the model achieved a Frechet Inception Distance (FID) of 9.29 on COCO2014, surpassing GigaGAN (9.09) and DMD (11.49) while maintaining a significantly smaller inference footprint. This efficiency makes it ideal for real-time applications.

Conclusion

Diffusion2GAN successfully bridges the gap between the high-quality synthesis of diffusion models and the real-time efficiency of GANs. By leveraging latent space efficiency and paired translation, the framework sets a new standard for one-step generation. Future research may extend this methodology to video and 3D asset generation, where the demand for rapid inference is even more acute.

Summary updated

BibTeX
@inproceedings{kang2024distilling,
  author = {Minguk Kang and Richard Zhang and Connelly Barnes and Sylvain Paris and Suha Kwak and Jaesik Park and Eli Shechtman and Jun-Yan Zhu and Taesung Park},
  title = {{Distilling Diffusion Models Into Conditional GANs}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73390-1\_25},
}
Figure