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

Pruning for Sparse Diffusion Models Based on Gradient Flow

Ben Wan, Tianyi Zheng, Zhaoyu Chen, Yuxiao Wang, Jia Wang

Abstract

Diffusion Models (DMs) have revolutionized generative AI but remain computationally intensive, hindering deployment on edge devices. While pruning offers a solution, standard "one-shot" techniques often result in a "quality crash" that is difficult to recover from. This paper introduces a novel iterative pruning framework characterized by progressive soft pruning and a gradient flow criterion. By transitioning weights through a continuous sparse space and prioritizing the health of gradient flow, the proposed method achieves superior image quality (FID) and structural consistency (SSIM) compared to traditional magnitude or Taylor-based pruning, while significantly accelerating convergence during fine-tuning.

Introduction

The high computational cost and slow inference speeds of Diffusion Models present significant barriers to real-world application. Pruning—the removal of redundant weights—is a common strategy for model compression. However, traditional pruning methods often fail to maintain the complex generative capabilities of DMs. One-shot pruning, in particular, causes a drastic drop in performance. Existing iterative methods, while more stable, often rely on expensive metrics like Fréchet Inception Distance (FID) to guide the pruning process, leading to high computational overhead.

Methodology: Progressive Soft Pruning via Gradient Flow

The authors propose a framework that treats pruning as a continuous adaptation rather than a discrete, destructive event. The approach is built on three core components:

1. Soft Pruning

Unlike conventional pruning that uses binary masks (0 or 1), this method employs a continuous mask matrix. This allows weights to be "partially" pruned, enabling them to be updated and potentially recovered during the iterative process. This prevents the sudden information loss typical of hard pruning.

2. Progressive Pruning

The model's sparsity is increased incrementally. This smooth transition allows the architecture to adapt to its thinning structure without encountering the performance "cliffs" seen in one-shot methods.

The proposed framework contrasts progressive soft pruning with conventional iterative pruning, highlighting the continuous mask matrix and gradient flow feedback.

3. Gradient Flow Pruning Criterion

The "brain" of the operation is the pruning criterion. Rather than focusing solely on weight magnitude or immediate loss preservation, the authors prioritize gradient flow. Parameters are pruned if their removal increases the gradient norm, ensuring that the remaining network maintains healthy gradients. This focus on gradient health is crucial for efficient "healing" and faster convergence during the subsequent fine-tuning phase.

Experimental Results

The method was evaluated across several benchmarks, including CIFAR-10, CelebA-HQ, and LSUN (Church and Bedroom).

Image Quality and Consistency

The proposed method consistently outperformed baselines like Magnitude Pruning, Taylor Pruning, and Diff-Pruning. On the complex LSUN-Church dataset ($256 \times 256$), the method achieved an FID of 12.5, a notable improvement over Diff-Pruning (13.9) and Taylor Pruning (19.0). Furthermore, the models maintained high structural similarity to the original dense models, achieving an SSIM of 0.940 on CIFAR-10.

Convergence Speed

A key advantage of the gradient flow criterion is the speed at which the pruned model recovers performance. As shown in the training curves, models guided by gradient flow reach lower FID scores significantly faster than those using magnitude or Taylor-based criteria.

FID scores over training iterations for various pruning criteria across CIFAR-10 and CelebA-HQ datasets, demonstrating faster convergence with gradient flow.

Conclusion

By shifting the focus from immediate loss preservation to maintaining healthy gradient flow through a progressive soft pruning process, this research provides a robust pathway for creating lightweight, high-performance Diffusion Models. Future work may involve scaling this approach to larger Latent Diffusion Models and incorporating hardware-aware constraints to further optimize inference on specific mobile and edge platforms.

Summary updated

BibTeX
@inproceedings{wan2025pruning,
  author = {Ben Wan and Tianyi Zheng and Zhaoyu Chen and Yuxiao Wang and Jia Wang},
  title = {{Pruning for Sparse Diffusion Models Based on Gradient Flow}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=iZ0imtYtQC},
}
Figure