NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structural Pruning for Diffusion Models

Gongfan Fang, Xinyin Ma, Xinchao Wang

Abstract

Diffusion Probabilistic Models (DPMs) have emerged as a leading paradigm for high-fidelity image generation, yet their deployment is often hindered by massive computational requirements and memory footprints. This paper discusses Diff-Pruning, a novel structural pruning method designed to compress DPMs with minimal loss in generative quality. By leveraging a Taylor expansion specifically over "informative" timesteps, the method identifies and removes redundant parameters, achieving a 50% reduction in FLOPs. Crucially, Diff-Pruning requires only 10% to 20% of the original training budget for fine-tuning while maintaining high generative consistency with the original pre-trained models.

Introduction

Generative AI has been transformed by diffusion models such as Stable Diffusion and DALL-E. However, these models are notoriously resource-intensive, requiring significant compute power for both training and the iterative inference process. While existing research has focused on optimizing architectures or accelerating sampling, there remains a gap in general-purpose methods to slim down existing, well-trained models without starting from scratch.

Traditional structural pruning—which removes entire components like channels—is often difficult to apply to diffusion models. These models are highly sensitive to small perturbations because their output is generated through a sequence of many iterative steps. Diff-Pruning addresses this challenge by introducing a principled way to identify redundant structures while preserving the "soul" of the generative process.

Methodology

Structural Pruning vs. Unstructured Pruning

Unlike unstructured pruning, which sets individual weights to zero, structural pruning physically removes entire sub-structures (e.g., channels or layers). This leads to actual hardware speedups and reduced memory usage, making it more practical for real-world deployment on edge devices or resource-constrained servers.

Importance Estimation via Taylor Expansion

To determine which weights are expendable, Diff-Pruning utilizes a Taylor expansion to estimate the change in loss resulting from the removal of specific weights. This provides a mathematical proxy for the "importance" of each parameter.

The Informative Timestep Selection

A key innovation of this research is the observation that not all diffusion steps ($t=0$ to $T$) contribute equally to the gradient information used for pruning. Late steps ($t \to T$) generally focus on high-level content and structure, while early steps ($t \to 0$) handle fine details. The researchers discovered that "noisy" steps—where the loss has already converged—provide uninformative or even harmful gradients for importance estimation.

To solve this, they introduced a noise threshold ($\mathcal{T}$) to filter out these converged steps. By focusing only on the most informative gradients, the importance scores become significantly more accurate, allowing for more aggressive pruning without sacrificing model integrity.

One-Shot Pruning and Fine-tuning

The model is pruned in a one-shot fashion. Following the removal of parameters, a brief fine-tuning phase is conducted to recover any lost quality. This process is remarkably efficient compared to training a smaller model from scratch.

Experiments and Results

Datasets and Benchmarks

The effectiveness of Diff-Pruning was validated across several standard benchmarks, including CIFAR-10, CelebA-HQ (64x64), LSUN Church and Bedroom (256x256), and ImageNet-1K (256x256) using Latent Diffusion Models (LDMs).

Efficiency and Performance

  • Computational Reduction: The method consistently achieves approximately a 50% reduction in FLOPs (Floating Point Operations).
  • Low Training Overhead: The fine-tuning process is highly efficient, requiring only 10% to 20% of the original training expenditure. For example, on LSUN Church, the pruned model required only 0.5 million steps compared to the 4.4 million steps used for the original model.
  • Quality Preservation: On the CelebA-HQ dataset, the pruned model actually surpassed the original pre-trained model's FID score (6.24 vs. 6.48) after only 100k optimization steps.

Generative Consistency

One of the most compelling findings is the high level of generative consistency. Using the Structural Similarity (SSIM) metric, the researchers showed that if a pruned model is given the same starting noise as the original model, the resulting output remains structurally similar. This suggests that the pruning process successfully retains the learned priors of the original large-scale model.

Discussion and Limitations

While Diff-Pruning represents a significant step forward, it is not without limitations. The researchers noted that diffusion models are inherently more sensitive to pruning than standard classification CNNs; even a 16% pruning ratio can cause a noticeable shift in FID scores before the fine-tuning phase begins. Additionally, on highly complex datasets like CIFAR-10, some performance degradation was observed compared to more uniform datasets like CelebA-HQ.

Conclusion

Diff-Pruning provides a robust framework for compressing diffusion models, making them leaner and faster without the need for massive re-training. By focusing on informative timesteps for importance estimation, the method achieves a balance between computational efficiency and generative high-fidelity. Future work may explore dynamic pruning ratios across different layers or the integration of this method with other acceleration techniques like knowledge distillation.

Summary updated

BibTeX
@inproceedings{fang2023structural,
  author = {Gongfan Fang and Xinyin Ma and Xinchao Wang},
  title = {{Structural Pruning for Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=d4f40zJJIS},
}
Figure