π― Distilling Dataset in an Optimization-Free manner.
π― The distillation process is Architecture-Free. (Getting over the Cross-Architecture problem.)
π― Distilling large-scale datasets (ImageNet-1K) efficiently.
π― The distilled datasets are high-quality and versatile.
Dataset distillation offers a lightweight synthetic dataset for fast network training with promising test accuracy. We advocate for designing an economical dataset distillation framework that is independent of the matching architectures. With empirical observations, we argue that constraining the consistency of the real and synthetic image spaces will enhance the cross-architecture generalization. Motivated by this, we introduce Dataset Distillation via Disentangled Diffusion Model (D4M), an efficient framework for dataset distillation. Compared to architecture-dependent methods, D4M employs latent diffusion model to guarantee consistency and incorporates label information into category prototypes. The distilled datasets are versatile, eliminating the need for repeated generation of distinct datasets for various architectures. Through comprehensive experiments, D4M demonstrates superior performance and robust generalization, surpassing the SOTA methods across most aspects.
You can install or upgrade the latest version of Diffusers library according to this page.
Step 1:
Copy the pipeline scripts (generate latents pipeline and synthesis images pipeline) into the path of Diffusers Library: diffusers/src/diffusers/pipelines/stable_diffusion
.
Step 2: Modify Diffusers source code according to scripts/README.md.
cd distillation
sh gen_prototype_imgnt.sh
cd distillation
sh gen_syn_image_imgnt.sh
Actually, if you don't need the JSON files (prototype) for exploration, you could combine the generate and synthesis processes into one, skipping the I/O steps.
cd matching
sh matching.sh
cd validate
sh train_FKD.sh
For more qualitative results, please see the supplementary in our paper.
Our code is developed based on the following codebases, thanks for sharingοΌ
If you find this work helpful, please cite:
@InProceedings{Su_2024_CVPR,
author = {Su, Duo and Hou, Junjie and Gao, Weizhi and Tian, Yingjie and Tang, Bowen},
title = {D{\textasciicircum}4M: Dataset Distillation via Disentangled Diffusion Model},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2024},
pages = {5809-5818}
}