Sparse-to-Sparse Training of Diffusion Models

Inês Cardoso Oliveira, Decebal Constantin Mocanu, Luis A. Leiva · Submission to ICLR 2025 · Rejected

The Computational Tax of Diffusion Models

Diffusion Models (DMs) have revolutionized generative AI, powering state-of-the-art tools for image synthesis, text generation, and temporal data modeling. However, this impressive performance comes with a massive "computational tax." DMs are notoriously slow to train, require significant memory, and carry a heavy carbon footprint.

While previous research has primarily focused on making inference (sampling) faster, the training stage remains a significant bottleneck. Most existing compression techniques, such as pruning or quantization, require a pre-trained dense model first. This paper introduces the first "sparse-to-sparse" training framework for DMs, asking a critical question: Can we skip the dense stage entirely and train a sparse model from day one?

Methods: Training Sparse from Scratch

The researchers propose three methods to implement sparse-to-sparse training, allowing models to be trained using only a fraction of their total parameters. These methods fall into two main strategies:

  1. Static Sparse Training (Static-DM): The network's connectivity is determined at initialization (using the Erdős–Rényi-Kernel strategy) and remains fixed throughout the entire training process.
  2. Dynamic Sparse Training (DST): The network starts sparse but periodically "evolves" its connections. It prunes unimportant weights and "grows" new ones to explore better configurations.
  3. RigL-DM: Prunes weights based on low magnitude and regrows them based on the highest gradients (finding where the model "wants" to learn).
  4. MagRan-DM: Prunes based on magnitude but regrows connections randomly.
Sparsified Latent Diffusion Architecture

The authors applied these methods to two distinct architectures: Latent Diffusion (for continuous pixel-level images) and ChiroDiff (for discrete, spatiotemporal sketch data). To ensure robustness, the study evaluated these methods across six diverse datasets, including LSUN-Bedrooms, CelebA-HQ, Imagenette, KanjiVG, QuickDraw, and VMNIST, as well as the full ImageNet-1k dataset.

Key Insights and Results

The "Sparsity Bonus"

Surprisingly, the study found that sparse models often achieved better FID scores (a standard measure of image quality) than their dense counterparts. This suggests that the inherent "noise" or regularization provided by sparsity helps DMs generalize better, preventing them from simply memorizing the training data.

FID scores on LSUN Bedrooms across different sparsity levels.

In almost every test case, at least one sparse configuration outperformed the dense baseline. For example, on the LSUN-Bedrooms dataset, a Static-DM with 25% sparsity achieved an FID of 28.79, compared to the dense model's 31.09 (where lower is better).

Overparameterization and Efficiency Gains

The experiments revealed that standard DM architectures are often significantly larger than necessary for many tasks. In models like ChiroDiff, researchers could remove up to 90% of the weights and still match dense performance.

This translates to massive efficiency gains. On the KanjiVG dataset, the top-performing sparse model reduced parameters and training FLOPs by approximately 30%. On QuickDraw, MagRan-DM achieved a staggering 90% reduction in FLOPs while maintaining comparable generation quality. Furthermore, training curves showed that sparse models follow the same stable convergence patterns as dense models, proving that sparsity doesn't introduce instability into the diffusion process.

Conservative Evolution is Key

For Dynamic Sparse Training in DMs, the authors discovered that a lower "prune and regrowth" rate ($p=0.05$) worked much better than the standard $p=0.5$ typically used in classification tasks. Because DMs are probabilistic and highly sensitive to noise, changing too many connections at once can destabilize the training process. Additionally, while static sparsity works well at moderate levels (25-50%), dynamic sparsity is essential for maintaining performance at extreme sparsity levels (90%+).

Limitations and Future Work

The primary hurdle identified by the authors is hardware support. Current standard GPUs are highly optimized for dense matrix multiplication. While the theoretical FLOPs are drastically lower for sparse models, actual "wall-clock" training time doesn't always decrease on standard hardware. However, as sparse-aware hardware (like the NVIDIA A100's 2:4 sparsity or Cerebras accelerators) becomes more ubiquitous, these theoretical gains will translate into massive real-world speedups.

Future directions include exploring "multi-mask" training—where different sparsity patterns are utilized for different timesteps of the diffusion process—and further tuning hyperparameters like the exploration frequency to squeeze even more efficiency out of the generative training cycle.

Summary updated

BibTeX
@misc{oliveira2025sparse,
  author = {Inês Cardoso Oliveira and Decebal Constantin Mocanu and Luis A. Leiva},
  title = {{Sparse-to-Sparse Training of Diffusion Models}},
  year = {2025},
  eprint = {2504.21380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21380},
}
Figure