TRACT: Denoising Diffusion Models with Transitive Closure Time-Distillation

David Berthelot, Arnaud Autef, Jierui Lin, Dian Ang Yap, Shuangfei Zhai, Siyuan Hu, Daniel Zheng, Walter Talbott, Eric Gu

Abstract

Denoising Diffusion models have demonstrated their proficiency for generative sampling. However, generating good samples often requires many iterations. Consequently, techniques such as binary time-distillation (BTD) have been proposed to reduce the number of network calls for a fixed architecture. In this paper, we introduce TRAnsitive Closure Time-distillation (TRACT), a new method that extends BTD. For single step diffusion, TRACT improves FID by up to 2.4x on the same architecture, and achieves new single-step Denoising Diffusion Implicit Models (DDIM) state-of-the-art FID (7.4 for ImageNet64, 3.8 for CIFAR10). Finally we tease apart the method through extended ablations. The PyTorch implementation will be released soon.

Introduction

While Denoising Diffusion Models (DDMs) produce incredible generative results, they are notoriously slow. Because they work by iteratively removing noise, they often require hundreds or thousands of neural network evaluations (steps) to produce a single image. This makes them difficult to deploy in real-time or resource-constrained environments.

Previous attempts to speed this up, such as Binary Time-Distillation (BTD), progressively "distill" a teacher model into a student that takes half as many steps. However, BTD has two major flaws: objective degeneracy due to accumulated approximation errors across many sequential phases, and generalization issues because short training phases prevent the use of aggressive Stochastic Weight Averaging (SWA).

Methodology: Transitive Closure and Self-Teaching

TRACT reimagines distillation as a "transitive closure" problem. Instead of halving the steps in many phases, TRACT allows the student to learn to "jump" across large segments of the noise schedule in just one or two phases.

The TRACT distillation process: the student $g$ learns from both the teacher $f$ and a self-teacher $\tilde{g}$ (an EMA of the student) to perform multi-step jumps.

Key technical innovations include:

  • Self-Teaching: TRACT uses a "self-teacher"—an Exponential Moving Average (EMA) of the student model itself—to provide training targets. This bootstrapping approach is inspired by semi-supervised and reinforcement learning.
  • Transitive Closure Operator: The student is trained to predict the output of a multi-step sequence of teacher calls. By using the self-teacher, the model can learn to jump from any point $t$ to a target $t_i$ without needing to run the full teacher chain every time.
  • Phase Reduction: TRACT typically uses only two phases (e.g., 1024 steps $\rightarrow$ 32 steps $\rightarrow$ 1 step). This drastically reduces error accumulation and allows for longer training windows where SWA can be effectively applied.
  • Solver Agnostic: The method works for both standard DDIM (Variance Preserving) schedules and more advanced Runge-Kutta solvers used in the EDM (Variance Exploding) framework.

Key Results and Benchmarks

TRACT sets new state-of-the-art benchmarks for single-step diffusion across standard computer vision datasets like CIFAR-10 and ImageNet 64x64.

Performance comparison on ImageNet 64x64: TRACT-96M achieves a single-step FID of 7.43, a 2.4x improvement over the BTD baseline.
  • ImageNet 64x64: Achieved a single-step FID of 7.4, a 2.4x improvement over the previous BTD baseline (17.5).
  • CIFAR-10: Achieved a single-step FID of 3.8 (using EDM teachers), significantly outperforming prior distillation methods.
  • Efficiency: TRACT-96M (a model with 96 million training samples) achieved better results than BTD models trained on ten times more data (1.2 billion samples), proving the method's sample efficiency.

Conclusion

TRACT demonstrates that reducing the number of distillation phases actually improves final 1-step quality by avoiding the "telephone game" effect of error accumulation. While BTD can still perform slightly better for 4-step or 8-step models, TRACT is the superior choice for the extreme low-step regime. Future work involves applying TRACT to newer architectures, such as Diffusion Transformers (DiT).

Summary updated

BibTeX
@misc{berthelot2023tract,
  author = {David Berthelot and Arnaud Autef and Jierui Lin and Dian Ang Yap and Shuangfei Zhai and Siyuan Hu and Daniel Zheng and Walter Talbott and Eric Gu},
  title = {{TRACT: Denoising Diffusion Models with Transitive Closure Time-Distillation}},
  year = {2023},
  eprint = {2303.04248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.04248},
}
Figure