Generative Low-bitwidth Data Free Quantization

Shoukai Xu, Haokun Li, Bohan Zhuang, Jing Liu, Jiezhang Cao +2 more
3/7/2020
cs.CV

Official code: xushoukai/GDFQ (56 stars, last commit 2023-07-23).

Abstract

Neural network quantization is an effective way to compress deep models and improve their execution latency and energy efficiency, so that they can be deployed on mobile or embedded devices. Existing quantization methods require original data for calibration or fine-tuning to get better performance. However, in many real-world scenarios, the data may not be available due to confidential or private issues, thereby making existing quantization methods not applicable. Moreover, due to the absence of original data, the recently developed generative adversarial networks (GANs) cannot be applied to generate data. Although the full-precision model may contain rich data information, such information alone is hard to exploit for recovering the original data or generating new meaningful data. In this paper, we investigate a simple-yet-effective method called Generative Low-bitwidth Data Free Quantization (GDFQ) to remove the data dependence burden. Specifically, we propose a knowledge matching generator to produce meaningful fake data by exploiting classification boundary knowledge and distribution information in the pre-trained model. With the help of generated data, we can quantize a model by learning knowledge from the pre-trained model. Extensive experiments on three data sets demonstrate the effectiveness of our method. More critically, our method achieves much higher accuracy on 4-bit quantization than the existing data free quantization method. Code is available at https://github.com/xushoukai/GDFQ.

View on arXivView PDF

Code Implementations(1)

xushoukai/GDFQOfficial100%

official implementation of Generative Low-bitwidth Data Free Quantization(GDFQ)

5615Shell, PythonJul 10, 20203 years ago

Similar Papers

Cite this paper

@article{xu2020generative,
  title  = {Generative Low-bitwidth Data Free Quantization},
  author = {Shoukai Xu and Haokun Li and Bohan Zhuang and Jing Liu and Jiezhang Cao and Chuangrun Liang and Mingkui Tan},
  year   = {2020},
  eprint = {2003.03603},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.03603}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.03603.svg)](https://codeofpaper.com/paper/2003.03603)

Discussion