DREAM+: Efficient Dataset Distillation by Bidirectional Representative Matching

Yanqing Liu, Jianyang Gu, Kai Wang, Zheng Zhu, Kaipeng Zhang, Wei Jiang, Yang YouarXiv 2023

TL;DR

Dataset distillation compresses massive training sets into tiny, highly informative synthetic subsets, but the process is notoriously slow. DREAM+ dramatically accelerates this by replacing naive random sampling with a clustering-based selection strategy and introducing "bidirectional matching" (fusing feature and gradient alignment). The result is a massive 15x to 40x speedup in training efficiency while achieving state-of-the-art accuracy across multiple benchmarks.

What Problem Does This Paper Address?

Deep learning thrives on massive datasets, but storing, maintaining, and training models on millions of images is incredibly resource-intensive. Dataset Distillation (DD) offers a solution: it synthesizes a tiny fraction of synthetic images (e.g., just 10 or 50 images per class) designed to yield similar model performance as the full dataset.

However, existing dataset distillation methods suffer from a glaring bottleneck: training efficiency. Distilling a dataset like CIFAR-10 can take upwards of 20 hours. The authors identify two primary culprits:

  1. Naive Random Sampling: Standard methods randomly sample mini-batches from the original dataset to match against the synthetic data. This ignores the underlying data distribution, leading to high-variance, noisy, or biased matching targets.
  2. Single-Dimensional Matching: Most frameworks align either only the gradients or only the embedding features of the synthetic and real data, failing to fully exploit the available structural information.

Methods

DREAM+ introduces two core innovations to stabilize and accelerate the distillation pipeline:

  1. Clustering-Based Representative Selection: Instead of random sampling, DREAM+ periodically applies K-Means clustering within each class to partition the feature space into distinct sub-clusters. It then selects the samples closest to each sub-cluster center to form the target mini-batch. This ensures uniform coverage and diversity, significantly reducing gradient variance.
  2. Bidirectional Matching: Rather than relying on a single optimization objective, DREAM+ integrates both forward features (embedding distribution matching) and backward gradients (gradient matching) into a unified distance metric ($D$). This bidirectional approach provides a more robust optimization trajectory.

Additionally, the method uses these cluster centers to initialize the synthetic images, giving the optimization process a massive head start.

Visualizing how DREAM+ selects representative samples and stabilizes synthetic image migration compared to random sampling.

Datasets

The authors validated DREAM+ across six widely used image classification benchmarks:

  • MNIST & FashionMNIST
  • SVHN (Street View House Numbers)
  • CIFAR-10 & CIFAR-100
  • TinyImageNet

Key Insights and Ideas

  • The Boundary Sample Problem: In random sampling, images lying on class decision boundaries yield massive gradients. When these images randomly dominate a mini-batch, they hijack the gradient matching process, causing the synthetic images to optimize erratically. By focusing on cluster centers, DREAM+ provides stable, representative targets.
  • Mutual Constraints via Bidirectional Matching: Aligning features ensures the synthetic data matches the overall distribution geometry, while aligning gradients ensures the synthetic data captures the directional dynamics of model learning. Fusing them prevents the synthetic images from overfitting to a single dimension.
  • Smoother Feature Migration: Visualizing the Euclidean distance of synthetic images between training iterations reveals that DREAM+ converges rapidly to an optimal position and undergoes minimal, stable adjustments thereafter, whereas random sampling remains highly chaotic throughout.
DREAM+ achieves lower Maximum Mean Discrepancy (MMD) and superior convergence stability compared to random sampling.

Key Results

  • Massive Speedups: DREAM+ reduces the required distillation iterations by more than 15 times for gradient-matching frameworks and more than 40 times for distribution-matching frameworks, all without sacrificing final test accuracy.
  • State-of-the-Art Accuracy: When allowed to run for the same number of iterations as baseline methods, DREAM+ sets new performance benchmarks. For instance, on CIFAR-100 with 10 images per class (IPC), it outperforms the strong IDC baseline by 2.3%.
  • Cross-Architecture Generalization: Synthetic datasets generated by DREAM+ using a standard 3-layer ConvNet generalize remarkably well to unseen architectures like ResNet-10 and DenseNet-121, proving that the distilled images capture genuine, architecture-agnostic features.

Limitations and Future Work

Despite the impressive speedups, the authors note that the computational overhead remains substantial when scaling to very large datasets (like full ImageNet) or when attempting to scale up the number of images per class (IPC). They suggest that future work should explore even more computationally efficient distance measures or look into integrating core-set selection methods to enhance scalability.

Summary updated

BibTeX
@misc{liu2023dream,
  author = {Yanqing Liu and Jianyang Gu and Kai Wang and Zheng Zhu and Kaipeng Zhang and Wei Jiang and Yang You},
  title = {{DREAM+: Efficient Dataset Distillation by Bidirectional Representative Matching}},
  year = {2023},
  eprint = {2310.15052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.15052},
}
Figure