Post-training Model Quantization Using GANs for Synthetic Data Generation

Athanasios Masouris, Mansi Sharma, Adrian Boguszewski, Alexander Kozlov, Zhuo Wu +1 more
5/10/2023
cs.CV

No official code found. Best implementation: tmasouris/gsoc2022-openvino (9 stars, last commit 2022-09-12).

Abstract

Quantization is a widely adopted technique for deep neural networks to reduce the memory and computational resources required. However, when quantized, most models would need a suitable calibration process to keep their performance intact, which requires data from the target domain, such as a fraction of the dataset used in model training and model validation (i.e. calibration dataset). In this study, we investigate the use of synthetic data as a substitute for the calibration with real data for the quantization method. We propose a data generation method based on Generative Adversarial Networks that are trained prior to the model quantization step. We compare the performance of models quantized using data generated by StyleGAN2-ADA and our pre-trained DiStyleGAN, with quantization using real data and an alternative data generation method based on fractal images. Overall, the results of our experiments demonstrate the potential of leveraging synthetic data for calibration during the quantization process. In our experiments, the percentage of accuracy degradation of the selected models was less than 0.6%, with our best performance achieved on MobileNetV2 (0.05%). The code is available at: https://github.com/ThanosM97/gsoc2022-openvino

View on arXivView PDF

Code Implementations(1)

Development of a DL model for synthetic data generation for model optimization using OpenVINO's Post-training Optimization Toolkit.

92CSS, HTMLJul 3, 20224 years ago

Similar Papers

Cite this paper

@article{masouris2023posttraining,
  title  = {Post-training Model Quantization Using GANs for Synthetic Data Generation},
  author = {Athanasios Masouris and Mansi Sharma and Adrian Boguszewski and Alexander Kozlov and Zhuo Wu and Raymond Lo},
  year   = {2023},
  eprint = {2305.06052},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.06052v1}
}

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/2305.06052.svg)](https://codeofpaper.com/paper/2305.06052)

Discussion