Work

Mixing Pruning and Distillation for Lighter Diffusion Models

Year: 2024
Type: dissertation
Abstract: Diffusion Models (DMs) represent the state-of-the-art in image generation tasks in terms of training stability and sample quality, but their sampling procedure is highly resource-intensive. This thesis addresses the efficiency problem of DMs by proposing a novel method combining Progressive Distillation with structured pruning, to reduce the computational and memory overhead without severely compromising image quality. \nThe Progressive Distillation method, introduced in Progressive Distillation for Fast Sampling of Diffusion Models by Salimans and Ho, reduces the number of required sampling steps by iteratively training a student DM to match the teacher model's output in half the steps. However, this method requires the student to retain the same network architecture as the teacher, limiting further compression. For this reason, we introduce a structured pruning technique during the distillation process, incorporating concepts such as pruning ratio differentiation based on the layer location and normalization-layer-lead pruning. We also introduce Flexible Group Normalization (FGN), a variation to the Group Normalization layer, to handle uneven channel groups post-pruning.\t \nWe validate our method with experiments on the CIFAR-10 dataset, conducting pruning sensitivity and weight magnitude variation analyses, and comparing different pruning scoring criteria to refine our approach. Though sacrificing some sample quality and not particularly optimized, the pruned models achieve significant reductions in computational requirements, with the best quality/compression trade-offs observed in 8-step and 4-step models. Our method provides a possible solution for DM efficiency and gives cues for further research exploring this family of combined complexity-reduction techniques.
Author: Dell'Olio, Domenico
Language: English
Open Access status: green
OpenAlex ID: W7048890007
Cites: 34
Cited by:
Related to: 10