Lossless Dataset Compression Via Dataset Quantization

Zhou Daquan, Kai Wang, Jianyang Gu, Dongze Lian, Xiangyu Peng, Yifan Zhang, Yang You, Jiashi FengOpenReview 2022 · OpenReview

Abstract

The power of state-of-the-art deep learning models heavily depends on large amounts (millions or even billions) of training data, which hinders researchers having limited resources from conducting relevant researches and causes heavy CO2 emission. Dataset distillation methods are thus developed to compress large datasets into smaller ones to reduce model training cost, by synthesizing samples to match the original ones w.r.t. certain metrics like the training loss. However, existing methods generally suffer poor scalability (not applicable to compressing large-scale datasets such as ImageNet), and limited generalizability for training other model architectures. We empirically observe the reason is that the condensed datasets have lost the sample diversity of the original datasets. Driven by this, we study dataset compression from a new perspective—what is the minimum number of pixels necessary to represent the whole dataset without losing its diversity?—and develop a new dataset quantization (DQ) framework. DQ conducts compression at two levels: the sample level and the pixel level. It introduces a sample-level quantizer to find a compact set of samples to better represent distribution of the full dataset and a pixel-level quantizer to find the minimum number of pixels to describe every single image. Combining these two quantizers, DQ achieves new state-of-the-art dataset lossless compression ratio and provides compressed datasets practical for training models with a large variety of architectures. Specifically, for image classification, it successfully removes 40% data with only 0.4% top-5 accuracy drop on ImageNet and almost zero accuracy drop on CIFAR-10. We further verify that the model weights pre-trained on the 40% compressed dataset only lose 0.2% mAP on COCO dataset for object detection and 0.3% mIoU on ADE20k for segmentation. Code will be made public.
BibTeX
@misc{daquan2022lossless,
  author = {Zhou Daquan and Kai Wang and Jianyang Gu and Dongze Lian and Xiangyu Peng and Yifan Zhang and Yang You and Jiashi Feng},
  title = {{Lossless Dataset Compression Via Dataset Quantization}},
  year = {2022},
  url = {https://openreview.net/forum?id=zRCEbtS646c},
  howpublished = {OpenReview},
}

Loading related content...

Figure