MGD3 : Mode-Guided Dataset Distillation using Diffusion Models

Jeffrey A. Chan-Santiago, Praveen Tirupattur, Gaurav Kumar Nayak, Gaowen Liu, Mubarak Shah

Introduction

Training modern AI models requires gargantuan datasets, which is both expensive and computationally slow. Dataset Distillation (DD) aims to solve this bottleneck by creating a tiny, "distilled" version of a dataset (e.g., just 10 images per class). When a model is trained on this miniature dataset, it can reach nearly the same performance as if it had been trained on the full original set.

MGD³ (Mode-Guided Dataset Distillation) is a novel, training-free framework that uses pre-trained diffusion models to compress massive datasets into a handful of highly informative synthetic images. By "steering" the diffusion process toward specific data clusters (modes) and knowing exactly when to stop that steering, MGD³ achieves state-of-the-art accuracy across major benchmarks while drastically slashing computational costs.

The Challenge of Dataset Distillation

Current dataset distillation methods generally fall into two camps:

  1. Optimization-based: These methods try to match the gradients or features of the original data. However, they are computationally heavy and often produce "out-of-distribution" images that look like pure noise to human observers.
  2. Generative-based: These use models like GANs or Diffusion to "hallucinate" the dataset. Unfortunately, these models frequently suffer from mode collapse—they might keep generating the same "average" looking dog or car, missing the crucial diversity (different poses, colors, backgrounds) needed for robust training.

To fix mode collapse, previous generative methods required expensive fine-tuning of the generative models themselves. MGD³ bypasses this entirely.

Comparison of diffusion sampling strategies. Standard DiT suffers from low diversity, while MinMax Diffusion requires expensive fine-tuning. MGD³ achieves high diversity without any fine-tuning by guiding the denoising process toward specific modes.

The MGD³ Methodology

MGD³ avoids fine-tuning by leveraging the rich internal knowledge already present in pre-trained diffusion models (like DiT or Latent Diffusion Models). The approach operates in three distinct stages:

  1. Mode Discovery: Instead of analyzing raw pixels, the authors project the original dataset into the latent space of a Variational Autoencoder (VAE). They use clustering algorithms like K-Means or Gaussian Mixture Models (GMM) to find "modes"—clusters representing distinct visual versions of a class (e.g., a "tench" fish being held by a person versus a "tench" swimming in water).
  2. Mode Guidance: During the image generation (denoising) process, a guidance signal is applied. This signal acts like a compass, nudging the diffusion model to generate an image that specifically matches one of the discovered modes. This guarantees that if you request 10 images, you get 10 distinctly different types of images.
  3. Stop Guidance: This is the framework's "secret sauce." The authors discovered that guiding the model all the way to the final pixel creates artifacts and degrades image quality. By stopping the guidance halfway through the process (the "refinement stage"), they allow the diffusion model’s natural priors to take over, resulting in high-fidelity, realistic images.
The MGD³ pipeline. The original dataset is encoded into a latent space to discover modes. During the reverse diffusion process, mode guidance steers the generation toward these specific clusters, but guidance is intentionally stopped early to preserve image realism.

Key Insights

  • Guidance over Fine-tuning: The most significant insight is that pre-trained diffusion models already "know" the entire data distribution. We don't need to retrain them; we just need better "sampling instructions" to extract the diversity hidden inside them.
  • The "Stop" is as Important as the "Go": Guidance is essential for setting the semantics (the pose and composition) of an image in the early stages of diffusion. However, for texture and fine details, continuous guidance becomes a hindrance. Stopping at a specific timestep ($t_{stop}$) is the key to balancing diversity with realism.
  • Latent Space is Better for Clustering: By clustering in the VAE latent space rather than pixel space, the method identifies modes based on high-level semantic content rather than superficial features like lighting or background color.

Datasets and Results

The researchers evaluated MGD³ on several high-resolution (256x256) benchmarks, which are traditionally difficult for dataset distillation, including ImageNette, ImageWoof, ImageIDC, ImageNet-100, and the massive ImageNet-1K.

MGD³ consistently outperformed existing state-of-the-art (SOTA) methods while being significantly faster:

  • Accuracy Gains: On ImageNette, it achieved a 4.4% accuracy boost over previous methods. On the gold-standard ImageNet-1K, it saw a 1.6% improvement.
  • Efficiency: Generating a distilled dataset for ImageNet-100 took only 0.42 hours, compared to 10+ hours for optimization-based methods like MinMaxDiff.
  • Scalability: Unlike many previous methods that struggle as the "Images Per Class" (IPC) count increases, MGD³ scales gracefully, maintaining high diversity even when generating 50 or 100 images per class.

Limitations and Future Work

While MGD³ removes the need for fine-tuning the diffusion model, it still relies on having a high-quality pre-trained model to begin with. If the base model hasn't seen enough of a specific niche domain, MGD³ won't be able to "guide" its way to a good distilled set.

The authors also note that the choice of the $t_{stop}$ parameter is crucial. While they found a "sweet spot" (around the 50% mark of the denoising process), this might vary depending on the specific dataset or model architecture. Future work could involve automating the discovery of the optimal stopping point or applying this mode-guided logic to non-image data modalities like text or audio.

Summary updated

BibTeX
@inproceedings{chansantiago2025mgd,
  author = {Jeffrey A. Chan-Santiago and Praveen Tirupattur and Gaurav Kumar Nayak and Gaowen Liu and Mubarak Shah},
  title = {{MGD3 : Mode-Guided Dataset Distillation using Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
}
Figure