Taming Diffusion for Dataset Distillation with High Representativeness

Lin Zhao, Yushu Wu, Xinru Jiang, Jianyang Gu, Yanzhi Wang, Xiaolin Xu, Pu Zhao, Xue Lin

Training modern deep learning models requires massive datasets, which are expensive to store and slow to process. Dataset Distillation (DD) aims to create a tiny "synthetic" dataset (e.g., just 10 images per class) that allows a model to reach performance comparable to training on the full dataset.

Recently, researchers have turned to Diffusion Models for this task because of their incredible generative powers. However, existing diffusion-based distillation methods suffer from critical flaws. This paper introduces a new framework called D³HR that significantly improves how we condense massive datasets into tiny, high-performance subsets using diffusion models.

The Challenge with Current Diffusion Distillation

While diffusion models generate high-quality images, using them to distill datasets presents three main challenges:

  1. Inaccurate Distribution Matching: Previous methods try to find representative samples in the VAE (Variational Autoencoder) latent space. The authors demonstrate that this space is essentially a messy, multi-modal "multi-component Gaussian mixture" that is very hard to model accurately.
  2. Noise Jitter: Standard diffusion adds random noise, which can "shift" the representative features away from their intended targets, causing distribution deviation.
  3. Separate Sampling: Most methods pick representative points one by one. However, a collection of "best" individual points doesn't necessarily form a "representative" group that captures the overall spread and variety of the original data.

The D³HR Framework

To overcome these limitations, the authors propose D³HR (Diffusion-based Dataset Distillation with High Representativeness), which utilizes a streamlined three-stage pipeline:

The D³HR pipeline illustrating DDIM inversion, distribution matching, and sampling.
  • Domain Mapping via DDIM Inversion: Instead of working in the messy VAE space, D³HR uses DDIM Inversion to map the entire dataset into a "noise" domain. Because DDIM inversion is deterministic and bijective, it preserves the structural information of the images while moving them into a space with "high normality" (closer to a standard Gaussian).
  • Distribution Matching: In this simplified noise space, the authors calculate the statistical properties of the inverted data. This allows them to define a clean Gaussian distribution that accurately represents each class.
  • Group Sampling: To solve the "separate sampling" problem, the framework generates millions of candidate subsets from the Gaussian model. It then uses a weighted statistical metric—incorporating mean, standard deviation, and skewness—to select the specific group of samples that most closely matches the original dataset's distribution.
  • Decoding: Finally, these optimal noise latents are passed back through the diffusion model (DDIM sampling) to generate the final distilled images.

Key Insights and Ideas

  • The "Gaussian Trick": The most elegant insight of D³HR is that while the data distribution in pixel or VAE space is a nightmare to model, the "noise" that generates that data (found via inversion) is remarkably simple.
Comparison of low-normality VAE space and high-normality mapped space.

By "taming" the data into a Gaussian domain, matching the distribution becomes a straightforward statistical task.

  • Moments Matter: Most distillation methods focus solely on matching the mean. D³HR demonstrates that matching higher-order moments like skewness is critical for ensuring the distilled set isn't just "average," but actually captures the asymmetry and variety of the real-world dataset.
  • Storage as Parameters: A significant secondary benefit is storage efficiency. Instead of storing the distilled images themselves, practitioners can simply store the mean and variance of the noise latents alongside the diffusion model's weights, allowing the dataset to be recreated on the fly with minimal storage overhead.

Experimental Results

The framework was evaluated on four standard benchmarks: CIFAR-10, CIFAR-100, Tiny-ImageNet, and ImageNet-1K, across various Images Per Class (IPC) settings ranging from 1 to 100. D³HR consistently outperformed previous state-of-the-art methods like SRe²L, DWA, and RDED:

  • Accuracy Gains: On CIFAR-10 (IPC 10), D³HR achieved 41.3% accuracy, a significant jump over the previous best of 37.1%. On the large-scale ImageNet-1K (IPC 10), it reached 44.3% (compared to 42.0% for RDED).
  • Cross-Architecture Generalization: A common pitfall in dataset distillation is that a dataset distilled using a specific "teacher" model (e.g., ResNet-18) performs poorly on a different "student" model (e.g., VGG or MobileNet). D³HR's datasets are highly representative, maintaining strong performance even when the model architecture changes.
  • Robustness: The method is significantly less sensitive to random seeds than previous diffusion methods, showing very tight variance across multiple experimental runs.

Limitations and Future Work

While highly effective, D³HR has a few limitations. The authors noted a "sweet spot" for the number of inversion steps (around 31). Too few steps result in a distribution that isn't Gaussian enough, while too many steps introduce noise that destroys structural details. Additionally, while the sampling phase is fast, the initial DDIM inversion of a massive dataset like ImageNet-1K still requires several hours on high-end GPUs. Finally, the current method relies on soft labels provided by a teacher model to reach peak performance; future work will explore achieving these results using only hard labels or in self-supervised settings.

Summary updated

BibTeX
@inproceedings{zhao2025taming,
  author = {Lin Zhao and Yushu Wu and Xinru Jiang and Jianyang Gu and Yanzhi Wang and Xiaolin Xu and Pu Zhao and Xue Lin},
  title = {{Taming Diffusion for Dataset Distillation with High Representativeness}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=P1RMiAn4Tr},
}
Figure