Training state-of-the-art deep learning models requires massive datasets, which in turn demand enormous computational resources. Dataset Distillation (DD) offers a solution: condense a giant dataset into a tiny synthetic one that retains the original's "essence." A new paper, Dataset Distillation via the Wasserstein Metric, introduces a method called WMDD that leverages optimal transport theory to achieve record-breaking results on high-resolution benchmarks like ImageNet-1K.
TL;DR
WMDD uses the Wasserstein metric to distill large datasets into compact synthetic sets by matching the geometric "barycenters" of class features. By combining this with class-specific batch normalization, it achieves state-of-the-art accuracy on ImageNet-1K while remaining efficient enough for practical use.
What Problem Does This Paper Address?
The goal of dataset distillation is to create a small set of synthetic images (e.g., just 10 or 50 images per class) that can train a model to nearly the same accuracy as the full dataset.
Existing methods generally fall into two camps:
- Optimization-based: These match the training trajectories or gradients of models. They are accurate but computationally expensive, often failing to scale to high-resolution datasets like ImageNet.
- Distribution Matching (DM): These try to make the synthetic data "look" like the real data in a feature space. While efficient, they often use metrics like Maximum Mean Discrepancy (MMD) that only match simple statistics (like the mean), missing the complex geometric structure of the data.
The authors identify a performance gap in DM methods caused by these simplistic metrics and propose a more geometrically aware alternative.
Methods
WMDD introduces two key innovations to the distribution matching pipeline:
-
Wasserstein Barycenters: Instead of just matching the average feature, WMDD treats each class as a distribution and finds its Wasserstein barycenter—a geometric "center of mass" in the feature space of a pretrained teacher model. Unlike other metrics, the Wasserstein distance (or Earth Mover's Distance) accounts for the underlying geometry of the data.
Comparison of distribution metrics: Wasserstein barycenters preserve the structural characteristics (like circles and crosses) of the original data, whereas KL and MMD produce blurry mix-ups. -
Per-Class BatchNorm (PCBN): Standard distillation methods often use global BatchNorm statistics to regularize synthetic images. WMDD argues that global stats can't capture the unique variations within individual classes. PCBN regularizes synthetic images using class-specific mean and variance, ensuring that the distilled samples preserve intra-class diversity.
The overall workflow involves embedding real images into a feature space, calculating the class barycenters, and then iteratively optimizing synthetic images to match those barycenters and PCBN statistics.
Datasets
The researchers evaluated WMDD on three high-resolution benchmarks:
- ImageNette: A 10-class subset of ImageNet used for rapid prototyping.
- Tiny ImageNet: 200 classes at 64x64 resolution.
- ImageNet-1K: The standard large-scale benchmark with 1,000 classes.
They tested various "budgets," ranging from 1 to 100 images per class (IPC).
Key Insights and Ideas
- Geometry is King: The core "aha moment" is that the Wasserstein metric provides a much richer signal for distillation than MMD. By minimizing the "work" needed to transform one distribution into another, it forces synthetic images to capture the actual structure of the class (e.g., the shape of a bird or the texture of hay).
- Avoiding "Mode Collapse": In feature space visualizations (t-SNE), synthetic data from previous methods often collapses into tight, unrepresentative clusters. WMDD samples spread out to better cover the real data distribution, maintaining both intra-class diversity and inter-class relationships.
- Scalability without Sacrifice: Because WMDD avoids the second-order derivatives required by optimization-based methods, it is nearly as fast as the simplest distribution matching techniques while being significantly more accurate.
Key Results
WMDD consistently outperforms previous state-of-the-art methods across all tested datasets:
- ImageNet-1K Performance: At 100 IPC, WMDD achieved 60.7% top-1 accuracy on ResNet-18. For context, the model trained on the full dataset (over 1.2 million images) reaches 63.1%. WMDD achieves this using a tiny fraction of the data.
- Cross-Architecture Generalization: Synthetic data generated using a ResNet-18 teacher generalizes well to other architectures. For example, on ImageNet-1K (50 IPC), data distilled on ResNet-18 achieved 62.57% accuracy when evaluated on a ResNet-101.
- Visual Quality: The distilled images are semantically clear and recognizable to humans, capturing essential features like the silhouette of a shark or the texture of broccoli.
Limitations and Future Work
- Bias Inheritance: The authors acknowledge that WMDD inherently reflects any biases present in the source datasets, which could lead to unfair automated decisions if not addressed.
- Vision Transformer (ViT) Gap: While WMDD shows strong results on CNNs, the performance on ViTs is relatively lower. The authors attribute this to the "data-hungry" nature of transformers, suggesting that further work is needed to bridge this gap.
- Generative Integration: Future research could explore combining Wasserstein metrics with generative models (like Diffusion models) to create even more realistic and diverse synthetic datasets.
Summary updated