Simple Distillation for One-Step Diffusion Models

Siyuan Xu (The Pennsylvania State University) · Hangfan Zhang (Pennsylvania State University) · Huaisheng Zhu (Pennsylvania State University) · Teng Xiao (Allen Institute for AI (AI2) & University of Washington) · Shijie Zhou (State University of New York at Buffalo) · Zhimeng Guo (Pennsylvania State University) · Vasant Honavar (Penn State University)
auxiliary score modelcontrastive energy distillationdiffusion modelsdistillation methodsimage generationiterative denoisingiterative trainingkl divergencememory efficiencymultistep teacher modelnoise contrastive estimationone-step generatorsperformance degradationsampling speedsunnormalized joint energy-based model

Diffusion models have established themselves as leading techniques for image generation. However, their reliance on an iterative denoising process results in slow sampling speeds, which limits their applicability to interactive and creative applications. An approach to overcoming this limitation involves distilling multistep diffusion models into efficient one-step generators. However, existing distillation methods typically suffer performance degradation or require complex iterative training procedures which increase their complexity and computational cost. In this paper, we propose Contrastive Energy Distillation (CED), a simple yet effective approach to distill multistep diffusion models into effective one-step generators. Our key innovation is the introduction of an unnormalized joint energy-based model (EBM) that represents the generator and an auxiliary score model. CED optimizes a Noise Contrastive Estimation (NCE) objective to efficiently transfers knowledge from a multistep teacher diffusion model without additional modules or iterative training complexity. We further show that CED implicitly optimizes the KL divergence between the distributions modeled by the multistep diffusion model and the one-step generator. We present results of experiments which demonstrate that CED achieves competitive performance with the representative baselines for distilling multistep diffusion models while maintaining excellent memory efficiency.