Truncated diffusion probabilistic models

Huangjie Zheng, Pengcheng He, Weizhu Chen, Mingyuan ZhouOpenReview 2022

Abstract

Employing a forward diffusion chain to gradually map the data to a noise distribution, diffusion-based generative models learn how to generate the data by inferring a reverse diffusion chain. However, this approach is slow and costly because it needs many forward and reverse steps. We propose a faster and cheaper approach that adds noise not until the data become pure random noise, but until they reach a hidden noisy data distribution that we can confidently learn. Then, we use fewer reverse steps to generate data by starting from this hidden distribution that is made similar to the noisy data. We reveal that the proposed model can be cast as an adversarial auto-encoder empowered by both the diffusion process and a learnable implicit prior. Experimental results show even with a significantly smaller number of reverse diffusion steps, the proposed truncated diffusion probabilistic models can provide consistent improvements over the non-truncated ones in terms of performance in both unconditional and text-guided image generations.

Introduction

Diffusion Probabilistic Models (DPMs) have emerged as the state-of-the-art for high-fidelity image synthesis. By simulating a forward process that gradually injects Gaussian noise into data and learning a corresponding reverse process to denoise it, these models capture complex data distributions with remarkable precision. However, a significant bottleneck remains: inference speed. To ensure the reverse steps accurately follow a Gaussian transition, the noise added at each step must be infinitesimal, necessitating hundreds or thousands of steps (Number of Function Evaluations, or NFE) to generate a single image.

While sampling accelerators like DDIM have mitigated this, a fundamental trade-off persists. Reducing steps often leads to a "distribution gap" where the model struggles to map pure Gaussian noise back to the complex, multi-modal manifold of real-world data in a few large leaps. This paper introduces Truncated Diffusion Probabilistic Models (TDPM) to bridge this gap by fundamentally rethinking where the generative process begins.

Methodology

Truncation and the Implicit Prior

The core innovation of TDPM is the Truncated Diffusion Chain. Instead of diffusing data all the way to pure white noise ($T=1000$), the process is halted at an earlier step ($T_{trunc}$). At this stage, the data is noisy but still retains structural "ghosts" of the original distribution.

The proposed TDPM framework (bottom) compared to standard diffusion (top). By stopping the diffusion early and using an implicit generator to learn the intermediate noisy distribution, TDPM reduces the number of required reverse steps.

Because the distribution at $T_{trunc}$ is no longer a simple Gaussian, it cannot be sampled analytically. To solve this, the authors introduce an implicit generative model (similar to a GAN) to learn this intermediate noisy distribution. This allows the model to "jump-start" the reverse diffusion process from a point much closer to the data manifold.

Architectural Variants

The authors propose two primary versions of the model:

  1. TDPM: This version reuses the existing denoising U-Net as the generator for the starting point, requiring no additional parameters.
  2. TDPM+: This version employs a separate, more expressive generator (such as StyleGAN2) to produce the initial noisy samples at $T_{trunc}$, offering higher quality at the cost of model size.

Theoretical analysis reveals that TDPM can be viewed as a Diffusion-based Adversarial Auto-Encoder (AAE). While standard diffusion resembles a Variational Auto-Encoder (VAE) with a fixed encoder and a simple prior, TDPM utilizes a learnable implicit prior to overcome the limitations of truncation.

Experimental Results

The effectiveness of TDPM was evaluated across standard benchmarks including CIFAR-10, LSUN, and ImageNet, as well as text-to-image tasks on MS-COCO.

Speed and Efficiency

In text-to-image generation, the Truncated Latent Diffusion Model (TLDM) achieved photo-realistic results in just 5 steps. This represents a 50x speedup over the standard Latent Diffusion Model (LDM), which typically requires 250 steps, while maintaining comparable Fréchet Inception Distance (FID) scores.

Visual Quality and Diversity

TDPM+ demonstrated superior performance at low step counts. On CIFAR-10, it achieved an FID of 2.83 with only 100 steps, outperforming the standard DDPM (FID 3.21) even when the latter used 1,000 steps. On high-resolution datasets like LSUN-Church, the model outperformed several GAN and diffusion baselines in both FID and Recall, suggesting that truncation helps the model better capture data diversity.

Qualitative results showing the diversity and fidelity of images generated by TDPM across various object categories.

Discussion and Conclusion

TDPM demonstrates a powerful synergy between GANs and Diffusion models. While GANs often suffer from mode collapse, the diffusion process "smooths" the target distribution, making it easier for the GAN-style implicit prior to learn. Conversely, the diffusion steps act as a refinement stage that corrects minor artifacts introduced by the initial generator.

Despite its success, the approach introduces new complexities, such as the need for adversarial loss tuning and increased storage requirements for the TDPM+ variant. Future work may extend this truncation logic to continuous-time score-based models (SDEs/ODEs) to further optimize the efficiency of generative AI.

Summary updated

BibTeX
@misc{zheng2022truncated,
  author = {Huangjie Zheng and Pengcheng He and Weizhu Chen and Mingyuan Zhou},
  title = {{Truncated diffusion probabilistic models}},
  year = {2022},
  eprint = {2202.09671},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.09671},
  howpublished = {OpenReview},
}
Figure