Introduction
Training modern deep neural networks requires massive datasets, which creates significant hurdles for storage, transmission, and privacy. Dataset Distillation (DD) aims to solve this by creating a tiny "synthetic" version of a dataset that allows a model trained on it to perform nearly as well as one trained on the original. However, traditional DD methods face a "scalability wall" due to the computational expense of bi-level optimization and the memory overhead of storing soft labels for high-resolution images.
Methodology: The D3M Framework
The authors introduce D3M (Dataset Distillation using Diffusion Models), a framework that treats a pre-trained foundation model as a universal data converter. Instead of storing raw pixels, D3M compresses entire categories into single optimized text prompts. The process follows four main steps:
1. Important Patch Selection and Collage Generation
Instead of using whole images, a teacher model identifies the most informative patches (e.g., foreground objects) from the training set. These patches are arranged into grids or "collages" to increase the information density per synthetic image.
2. Textual Inversion
This is the core innovation. Instead of storing the collage images directly, the system optimizes a single textual embedding (prompt) for each category. This prompt is trained so that the diffusion model generates images that capture the informative features of that specific class.
3. Soft Labeling and Inference
To introduce variability, the learned prompt is stored along with a random seed and soft labels. When training a student model, the diffusion model uses the prompt and seed to "reconstruct" training samples on the fly. By storing a 768-dimensional vector instead of thousands of high-res images, D3M achieves massive compression.
Key Insights
- Prompts as Manifolds: A single prompt represents a distribution. By changing the random seed, the diffusion model generates diverse variations of a category from a single learned embedding.
- Leveraging Priors: D3M uses the vast internal knowledge of a foundation model and simply learns the "tuning" to point that model toward specific features in the training set.
- Collage Efficiency: Packing multiple informative patches into a single generated image allows the student model to see more features in fewer training iterations.
Experimental Results
D3M sets new benchmarks, particularly in large-scale regimes:
- ImageNet-1k Performance: At 10 Images Per Category (IPC), D3M achieved 23.57% accuracy, significantly outperforming previous leaders like SRe2L (1.45%) and RDED (6.40%).
- Extreme Compression: On ImageNet-1k, D3M represents an entire category using just a single prompt (768 scalars), providing a highly efficient storage-to-accuracy trade-off.
- Cross-Architecture Generalization: Data distilled using a ResNet-18 teacher successfully trained MobileNet-v2 and DenseNet-121 models, proving the features are not overfit to one architecture.
Limitations and Future Work
D3M relies on the quality of the underlying diffusion model; biases or lack of domain-specific data (e.g., medical imagery) can hinder performance. Additionally, while storage is minimized, the student model must run diffusion inference during training, which is slower than loading raw images. Future work may involve using faster diffusion samplers to accelerate the training loop.
Summary updated