MIV-XJTU / SPEED

PyTorch implementation of paper "Sparse Parameterization for Epitomic Dataset Distillation" in NeurIPS 2023.
20 stars 3 forks source link

SPEED

The official PyTorch implementation of our NeurIPS 2023 paper:

Sparse Parameterization for Epitomic Dataset Distillation

Xing Wei, Anjia Cao, Funing Yang, and Zhiheng Ma.

GitHub maintainer: Anjia Cao

Highlight

:bookmark:Brief Introduction

The success of deep learning relies heavily on large and diverse datasets, but the storage, preprocessing, and training of such data present significant challenges. To address these challenges, dataset distillation techniques have been proposed to obtain smaller synthetic datasets that capture the essential information of the originals. In this paper, we introduce a Sparse Parameterization for Epitomic datasEt Distillation (SPEED) framework, which leverages the concept of dictionary learning and sparse coding to distill epitomes that represent pivotal information of the dataset. SPEED prioritizes proper parameterization of the synthetic dataset and introduces techniques to capture spatial redundancy within and between synthetic images. We propose Spatial-Agnostic Epitomic Tokens (SAETs) and Sparse Coding Matrices (SCMs) to efficiently represent and select significant features. Additionally, we build a Feature-Recurrent Network (FReeNet) to generate hierarchical features with high compression and storage efficiency. Experimental results demonstrate the superiority of SPEED in handling high-resolution datasets, achieving state-of-the-art performance on multiple benchmarks and downstream applications. Our framework is compatible with a variety of dataset matching approaches, generally enhancing their performance. This work highlights the importance of proper parameterization in epitomic dataset distillation and opens avenues for efficient representation learning.

:bookmark:Distilled Images

:bookmark:Strong Performance

IPC 1 10 50
CIFAR10 63.2 $\pm$ 0.1 73.5 $\pm$ 0.2 77.7 $\pm$ 0.4
CIFAR100 40.0 $\pm$ 0.4 45.9 $\pm$ 0.3 49.1 $\pm$ 0.2
TinyImageNet 26.9 $\pm$ 0.3 28.8 $\pm$ 0.2 30.1 $\pm$ 0.3
IPC 1 10
ImageNette 66.9 $\pm$ 0.7 72.9 $\pm$ 1.5
ImageWoof 38.0 $\pm$ 0.9 44.1 $\pm$ 1.4
ImageFruit 43.4 $\pm$ 0.6 50.0 $\pm$ 0.8
ImageMeow 43.6 $\pm$ 0.7 52.0 $\pm$ 1.3
ImageSquawk 60.9 $\pm$ 1.0 71.8 $\pm$ 1.3
ImageYellow 62.6 $\pm$ 1.3 70.5 $\pm$ 1.5

Install the environment

Distilling

More hyperparameter settings are concluded at the end of networks.py. After distillation, you will obtain four components: saet, scm, freenet, and syn_lr.

Evaluation

Before evaluation, please specify the distilled components' paths: --saet_path, --scm_path, --freenet_path, --syn_lr_path.

Acknowledgement

Our work is implemented base on the following projects. We really appreciate their excellent open-source works!

Citation

If any parts of our paper and code help your research, please consider citing us and giving a star to our repository.

@inproceedings{wei2023sparse,
    title={Sparse Parameterization for Epitomic Dataset Distillation},
    author={Wei, Xing and Cao, Anjia and Yang, Funing and Ma, Zhiheng},
    booktitle={NeurIPS},
    year={2023}
}