Data Pruning in Generative Diffusion Models

Rania Briq, Jiangtao Wang, Stefan KesselheimarXiv 2024 · DOI

Introduction

The rapid advancement of Generative Diffusion Models (DMs) has come at a significant cost: the requirement for massive datasets, leading to high computational and environmental overhead. While data pruning—the strategic removal of redundant or less informative samples—is well-studied in discriminative modeling, its application to generative tasks remains largely unexplored. Conventional wisdom suggests that removing data might "poke holes" in the learned probability distribution, yet recent research demonstrates that DMs are surprisingly resilient to extreme data reduction.

Pruning Strategies: Typicality vs. Hardness

The study investigates several pruning methodologies to identify which samples are essential for maintaining generative quality:

  1. Gradient-Based Heuristics: Methods like GraNd and EL2N, which prioritize "hard" samples (those with high loss or gradient norms), were adapted from classification tasks.
  2. Loss Monotonicity: Tracking the learning dynamics of individual samples during a short pre-training phase.
  3. Clustering-Based Selection: Using pre-trained embeddings (e.g., DINO or CLIP) to cluster data and selecting samples based on their proximity to cluster centers.

Surprisingly, simple clustering outperformed complex gradient-based metrics. This suggests that for generative models, "typicality"—represented by samples near the semantic center of a distribution—is a more effective proxy for importance than individual sample "hardness."

Performance and Resilience

Experiments on ImageNet1K and CelebA-HQ reveal a remarkable 90% threshold. On ImageNet, DMs can maintain high fidelity and diversity even when 90% of the training data is discarded using clustering methods.

FID scores across different pruning ratios and methods.

As shown in the FID analysis (Figure 3), while most gradient-based methods (e.g., GraNd, EL2N) lead to a sharp degradation in quality as the pruning ratio increases, clustering and random selection remain significantly more stable. This stability is attributed to the iterative nature of the diffusion process, which allows the model multiple steps to recover the underlying data manifold.

F-score stability across pruning ratios.

The F-score metrics (Figure 1) further validate this resilience. At moderate pruning ratios, strategic clustering can even outperform training on the full dataset by removing noisy or redundant samples that might otherwise distract the model from learning core features.

Implications for Fairness and Efficiency

Beyond efficiency, data pruning offers a path toward unsupervised fairness. By sampling equally from clusters in a skewed dataset, researchers can "rebalance" the model's output without requiring explicit labels for minority groups. This demonstrates that pruning is not just about saving resources, but also about refining the quality and representativeness of the learned distribution.

Conclusion

Diffusion models challenge the "more is always better" paradigm. By focusing on representative samples through simple clustering, we can drastically reduce the data requirements of state-of-the-art generative models without sacrificing performance. Future work will likely explore the optimal balance between typical and rare samples to further push the boundaries of data-efficient generative AI.

Summary updated

BibTeX
@misc{briq2024data,
  author = {Rania Briq and Jiangtao Wang and Stefan Kesselheim},
  title = {{Data Pruning in Generative Diffusion Models}},
  year = {2024},
  eprint = {2411.12523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12523},
}
Figure