Towards Consistent and Efficient Dataset Distillation via Diffusion-Driven Selection

Xinhao Zhong, Shuoyang Sun, Zhaoyang Xu, Xulin Gu, Bin Chen, Min Zhang, Yaowei WangarXiv 2024

TL;DR

Instead of using diffusion models to generate synthetic images for dataset distillation, this paper proposes DDDS, a framework that uses diffusion priors to select the most informative patches from real images. This approach eliminates distribution shifts, enables a highly efficient one-step distillation process, and sets new state-of-the-art performance on large-scale benchmarks like ImageNet-1K.

What Problem Does This Paper Address?

Training deep learning models on massive datasets like ImageNet-1K is computationally expensive. Dataset Distillation (DD) aims to solve this by creating a tiny synthetic dataset (e.g., just 10 or 50 images per class) that allows a model to achieve performance similar to one trained on the full original data.

However, existing DD methods face two major hurdles:

  1. Scalability: Traditional pixel-level optimization methods struggle with high-resolution, large-scale datasets.
  2. Distribution Shift: Recent methods use generative models (like GANs or Diffusion) to create synthetic data. Unfortunately, these "fake" images often don't perfectly match the distribution of the real data, leading to poor generalization. Furthermore, these methods often require expensive re-distillation every time you change the target size of your distilled set (Images Per Class, or IPC).

Methods

The authors introduce a two-stage framework called Diffusion-Driven Selection (DDDS). Rather than asking a diffusion model to create a new image, they ask it to point to the most important parts of existing real images.

Fig. 1: Comparison of diffusion-based distilla- tion methods. (a) Fine-tuning a diffusion model pre-trained on ImageNet-1K to directly gen- erate images. (b) Fine-tuning the prototypes of the original images to generate images. (c) Identifying the most representative regions in the real images. The images generated by our method more effectively represent the feature distribution of the original dataset.

Stage I: Optimal Class-relevant Feature Selection

The researchers leverage a pre-trained Stable Diffusion (SD) model as a "zero-shot classifier." For a given image, they calculate the noise prediction loss twice: once with a generic prompt ("An image of .") and once with a class-specific prompt ("An image of a golden retriever."). The difference between these losses (the differential loss) highlights the regions most relevant to the specific class label. They then crop these high-scoring patches.

Stage II: Visual Elements Aggregation

To ensure the distilled set isn't just a collection of identical-looking "perfect" patches, the authors apply a clustering strategy. They use Diffusion Features (DIFT) to extract deep semantic information from the patches and then use K-means to group them. By ranking patches within and across these clusters, they ensure the final distilled set is both representative (typical of the class) and diverse (covering different visual aspects of the class).

Datasets

The authors evaluated DDDS across a wide range of benchmarks:

  • Low-Resolution: CIFAR-10, CIFAR-100, and TinyImageNet.
  • High-Resolution: ImageNet-1K and its subsets (ImageNet-100, ImageNette, and ImageWoof).

Key Insights and Ideas

  • Localization > Generation: The core "aha moment" is that diffusion models already "know" what defines a class. Using that knowledge to select real pixels is far more robust than trying to generate new ones, as it completely bypasses the "uncanny valley" of synthetic data distribution shifts.
  • One-Step Distillation: Because the method ranks patches based on inherent informativeness, you only need to run the selection process once. If you want a dataset with IPC=10, you take the top 10 patches; for IPC=50, you take the top 50. This is a massive efficiency gain over optimization-based methods that require a full re-run for every IPC setting.
  • Feature Space Coverage: Qualitative analysis using t-SNE visualizations shows that DDDS covers the feature distribution of the original dataset much more effectively than previous state-of-the-art methods like RDED or Minimax.
t-SNE visualizations showing that DDDS (d) provides a more balanced and diverse feature distribution compared to competitors.

Key Results

DDDS consistently outperforms existing training-free and generative distillation methods:

  • ImageNet-1K: At IPC=10, DDDS achieves 46.1% accuracy (a significant jump from the previous best of 42.0%). At IPC=100, it reaches 63.0%.
  • Efficiency: As shown in Figure 5, DDDS maintains a constant time cost regardless of the number of classes or images being distilled, whereas other methods see their computational requirements balloon.
  • Cross-Architecture Generalization: The distilled datasets perform well even when the "student" model architecture (e.g., ResNet-50, ViT) differs from the "teacher" model used during the evaluation phase.
The total synthesis time for DDDS remains constant across different tasks, demonstrating superior efficiency.

Limitations and Future Work

  • Teacher Dependency: While the selection is training-free, the final evaluation protocol still relies on a pre-trained teacher model to provide "soft labels" for the distilled patches to maximize performance.
  • Initial Overhead: Although it is a one-step process, the initial pass of the entire dataset through the diffusion model to calculate differential losses can be time-consuming for extremely large datasets, though the authors show that using a random subset of the original data can mitigate this with minimal performance loss.
  • Hybrid Approaches: The authors suggest that future work could explore combining their selection strategy with generative refinement to further enhance patch quality.

Summary updated

BibTeX
@misc{zhong2024towards,
  author = {Xinhao Zhong and Shuoyang Sun and Zhaoyang Xu and Xulin Gu and Bin Chen and Min Zhang and Yaowei Wang},
  title = {{Towards Consistent and Efficient Dataset Distillation via Diffusion-Driven Selection}},
  year = {2024},
  eprint = {2412.09959},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09959},
}
Figure