Learnable Sparsity for Vision Generative Models

Yang Zhang, Er Jin, Wenzhong Liang, Yanfei Dong, Ashkan Khakzar +3 more
12/3/2024
cs.CV

No official code found. Best implementation: YaNgZhAnG-V5/EcoDiff (13 stars, MIT, last commit 2026-03-03).

Abstract

Diffusion models have achieved impressive advancements in various vision tasks. However, these gains often rely on increasing model size, which escalates computational complexity and memory demands, complicating deployment, raising inference costs, and causing environmental impact. While some studies have explored pruning techniques to improve the memory efficiency of diffusion models, most existing methods require extensive retraining to retain the model performance. Retraining a modern large diffusion model is extremely costly and resource-intensive, which limits the practicality of these methods. In this work, we achieve low-cost diffusion pruning without retraining by proposing a model-agnostic structural pruning framework for diffusion models that learns a differentiable mask to sparsify the model. To ensure effective pruning that preserves the quality of the final denoised latent, we design a novel end-to-end pruning objective that spans the entire diffusion process. As end-to-end pruning is memory-intensive, we further propose time step gradient checkpointing, a technique that significantly reduces memory usage during optimization, enabling end-to-end pruning within a limited memory budget. Results on state-of-the-art U-Net diffusion models SDXL and diffusion transformers (FLUX) demonstrate that our method can effectively prune up to 20% parameters with minimal perceptible performance degradation, and notably, without the need for model retraining. We also showcase that our method can still prune on top of time step distilled diffusion models.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR2026] Learnable Sparsity for Vision Generative Models

131Shell, PythonNov 23, 20247 months agoMIT
efficientmlpruning

Similar Papers

Cite this paper

@article{zhang2024learnable,
  title  = {Learnable Sparsity for Vision Generative Models},
  author = {Yang Zhang and Er Jin and Wenzhong Liang and Yanfei Dong and Ashkan Khakzar and Philip Torr and Johannes Stegmaier and Kenji Kawaguchi},
  year   = {2024},
  eprint = {2412.02852},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.02852v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.02852.svg)](https://codeofpaper.com/paper/2412.02852)

Discussion