Rethinking Data-Free Quantization as a Zero-Sum Game

Biao Qian, Yang Wang, Richang Hong, Meng Wang
2/19/2023
cs.CV

Official code: hfutqian/AdaSG (9 stars, Apache-2.0, last commit 2024-10-27).

Abstract

Data-free quantization (DFQ) recovers the performance of quantized network (Q) without accessing the real data, but generates the fake sample via a generator (G) by learning from full-precision network (P) instead. However, such sample generation process is totally independent of Q, specialized as failing to consider the adaptability of the generated samples, i.e., beneficial or adversarial, over the learning process of Q, resulting into non-ignorable performance loss. Building on this, several crucial questions -- how to measure and exploit the sample adaptability to Q under varied bit-width scenarios? how to generate the samples with desirable adaptability to benefit the quantized network? -- impel us to revisit DFQ. In this paper, we answer the above questions from a game-theory perspective to specialize DFQ as a zero-sum game between two players -- a generator and a quantized network, and further propose an Adaptability-aware Sample Generation (AdaSG) method. Technically, AdaSG reformulates DFQ as a dynamic maximization-vs-minimization game process anchored on the sample adaptability. The maximization process aims to generate the sample with desirable adaptability, such sample adaptability is further reduced by the minimization process after calibrating Q for performance recovery. The Balance Gap is defined to guide the stationarity of the game process to maximally benefit Q. The theoretical analysis and empirical studies verify the superiority of AdaSG over the state-of-the-arts. Our code is available at https://github.com/hfutqian/AdaSG.

View on arXivView PDF

Code Implementations(1)

hfutqian/AdaSGOfficial100%
Apache-2.0

Rethinking Data-Free Quantization as a Zero-Sum Game

92Shell, PythonNov 22, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{qian2023rethinking,
  title  = {Rethinking Data-Free Quantization as a Zero-Sum Game},
  author = {Biao Qian and Yang Wang and Richang Hong and Meng Wang},
  year   = {2023},
  eprint = {2302.09572},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.09572v1}
}

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

Discussion