High Quality Diffusion Distillation on a Single GPU with Relative and Absolute Position Matching
Guoqiang Zhang, Kenta Niwa, J. P. Lewis, Cedric Mesnage, W. Bastiaan Kleijn
TL;DR
This work presents RAPM, a diffusion distillation method that enables high-quality, text-to-image generation on a single GPU by aligning a student model with a teacher via relative and absolute diffusion position matching. By precomputing teacher trajectories using $M$-step DDIM over coarse time-slots and employing two discriminators for relative and absolute position losses, RAPM achieves strong distillation performance with batchsize-1 and as few as $4$ timesteps. The method demonstrates competitive FID scores on SD V1.5 and SDXL, outperforming several multi-GPU baselines while substantially reducing resource requirements. The approach introduces carefully designed losses and detach operations to maintain stability and effective trajectory alignment, advancing practical diffusion distillation for researchers with limited computational resources.
Abstract
We introduce relative and absolute position matching (RAPM), a diffusion distillation method resulting in high quality generation that can be trained efficiently on a single GPU. Recent diffusion distillation research has achieved excellent results for high-resolution text-to-image generation with methods such as phased consistency models (PCM) and improved distribution matching distillation (DMD2). However, these methods generally require many GPUs (e.g.~8-64) and significant batchsizes (e.g.~128-2048) during training, resulting in memory and compute requirements that are beyond the resources of some researchers. RAPM provides effective single-GPU diffusion distillation training with a batchsize of 1. The new method attempts to mimic the sampling trajectories of the teacher model by matching the relative and absolute positions. The design of relative positions is inspired by PCM. Two discriminators are introduced accordingly in RAPM, one for matching relative positions and the other for absolute positions. Experimental results on StableDiffusion (SD) V1.5 and SDXL indicate that RAPM with 4 timesteps produces comparable FID scores as the best method with 1 timestep under very limited computational resources.
