TL;DR
Diffusion As Priors (DAP) unlocks the "hidden" knowledge within pre-trained diffusion models to create ultra-compact, high-quality training datasets. By using kernel-based guidance to steer the generation process toward more representative samples, DAP achieves state-of-the-art distillation performance on ImageNet-1K without requiring any additional model training.
The Challenge of Dataset Distillation
Training modern AI requires staggering amounts of data, but "Dataset Distillation" (DD) offers a shortcut: it aims to synthesize a tiny, "distilled" version of a massive dataset that can still train a model to high accuracy.
The holy grail of DD is the "trifecta": a distilled dataset that is diverse (covers all categories), generalizes well (works on different model architectures), and is representative (captures the most critical features of the original data).
While recent methods have started using Diffusion Models (DMs) to generate these datasets, they often treat the DM as a simple image factory. This overlooks a crucial fact: the internal features of a well-trained diffusion model already "know" what makes an image representative. Previous attempts to fix this required complex external constraints or expensive retraining; the authors of this paper wanted a simpler, more "native" solution.
The Diffusion As Priors (DAP) Framework
The authors introduce Diffusion As Priors (DAP), a training-free framework that treats representativeness as an optimization problem during the image generation process.
- The Bayesian Decomposition: They mathematically prove that the "score function" (the direction the diffusion model moves to create an image) can be split into two parts: one that handles diversity/generalization and a second, overlooked part that handles representativeness.
- Mercer Kernels: To quantify "representativeness," DAP measures the similarity between synthetic and real data in the diffusion model's own feature space. They use a Mercer kernel (specifically a linear or RBF kernel) to calculate an "energy function."
- Guided Sampling: During the reverse diffusion process (denoising), DAP uses the gradient of this energy function to "steer" the generation. It pushes the model to create samples that aren't just visually appealing, but are statistically central to the original dataset's distribution.
- Training-Free: Because DAP uses the features already present in pre-trained models (like Stable Diffusion or DiT), it requires zero fine-tuning or extra training cycles.
Key Insights
- The "Unused Prior": The most striking insight is that a diffusion model is essentially a "closet" classifier. Its internal feature extraction layers are incredibly potent for identifying representative data points, even if the model was only trained to generate images.
- Architecture Agnostic: Unlike traditional distillation methods that match the "gradients" of a specific model (like a ResNet), DAP distills "data-relevant" knowledge. This makes the resulting datasets much better at training any type of model, from old-school ConvNets to modern Vision Transformers.
- The "Mid-Layer" Sweet Spot: Through ablation studies, the authors found that the middle layers of a U-Net or Transformer backbone provide the best guidance. The early layers are too noisy, and the final layers are too focused on pixel-perfect reconstruction rather than semantic representativeness.
- Diversity vs. Representativeness Trade-off: There is a "Goldilocks zone" for guidance. If you steer too hard toward representativeness (the guidance scale is too high), the images become repetitive and lose the diversity needed for a model to learn broad concepts.
Key Results
DAP sets new records across several rigorous computer vision benchmarks, including ImageNet-1K, ImageNette, ImageWoof, and ImageIDC.
- SOTA on ImageNet-1K: At 10 images per class (IPC10), DAP achieved 49.1% Top-1 accuracy, outperforming the previous best method (IGD) by 3.5%.
- Scaling Up: When increased to 50 images per class, accuracy jumped to 62.7%, showing that the method scales effectively with more data.
- Cross-Architecture Mastery: A dataset distilled using a ResNet-18 as a guide usually fails when training a Swin Transformer. However, DAP-distilled data maintained high accuracy across ResNet-101, MobileNet-V2, and Vision Transformers, proving its superior generalization.
- Hard-Label Success: Most DD methods rely on "soft labels" (complex probability scores) to work. DAP is robust enough to achieve high performance even with simple "hard" (one-hot) labels.
Limitations and Future Work
- Sampling Overhead: While DAP avoids the cost of training, it does add time to the sampling process. Because the model has to extract features from real data at every denoising step to calculate guidance, it is slower than "vanilla" diffusion sampling.
- Hyperparameter Sensitivity: The guidance scale requires careful tuning for different datasets to maintain the balance between looking "real" and being "useful" for training.
- Beyond Vision: The current work is focused on images. The authors suggest that future work could extend these diffusion priors to other modalities like video, language, or multimodal datasets.
Summary updated