arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.06869cs.CV
收藏

自适应无数据Quantization

Adaptive Data-Free Quantization

Hefei University of Technology(合肥工业大学)

Biao Qian, Yang Wang, Richang Hong, Meng Wang

摘要:

无数据量化(DFQ)在没有原始数据的情况下恢复量化网络(Q)的性能,但是通过从全精度网络(P)学习经由生成器(G)生成假样本,然而,全精度网络(P)完全独立于Q,忽略了来自生成样本的知识的适应性,即,信息量的大小对Q的学习过程影响很大,导致泛化误差溢出。在此基础上,几个关键问题-如何衡量样本适应Q在不同的位宽的情况下?最大适应性是否最好?如何产生具有自适应能力的样本以提高Q的泛化能力?为了回答上述问题,在本文中,我们提出了一个自适应无数据量化(AdaDFQ)的方法,重新DFQ从零和博弈的角度来看,两个球员之间的样本适应性-生成器和量化网络。根据这一观点,我们进一步定义了不一致和一致的样本,以形成两个边界,其中的边缘进行优化,以自适应地调节生成的样本的适应性Q,以解决过度和不足的拟合问题。我们的AdaDFQ显示:1)最大适应性并不是最有利于Q泛化的样本生成方式; 2)生成样本的知识不应只对Q有信息,还应与P的训练数据的类别和分布信息有关。理论和实证分析验证了AdaDFQ相对于现有技术的优势。我们的代码可在https://github.com/hfutqian/AdaDFQ上获得。

英文摘要:

Data-free quantization (DFQ) recovers the performance of quantized network (Q) without the original data, but generates the fake sample via a generator (G) by learning from full-precision network (P), which, however, is totally independent of Q, overlooking the adaptability of the knowledge from generated samples, i.e., informative or not to the learning process of Q, resulting into the overflow of generalization error. Building on this, several critical questions -- how to measure the sample adaptability to Q under varied bit-width scenarios? whether the largest adaptability is the best? how to generate the samples with adaptive adaptability to improve Q's generalization? To answer the above questions, in this paper, we propose an Adaptive Data-Free Quantization (AdaDFQ) method, which revisits DFQ from a zero-sum game perspective upon the sample adaptability between two players -- a generator and a quantized network. Following this viewpoint, we further define the disagreement and agreement samples to form two boundaries, where the margin is optimized to adaptively regulate the adaptability of generated samples to Q, so as to address the over-and-under fitting issues. Our AdaDFQ reveals: 1) the largest adaptability is NOT the best for sample generation to benefit Q's generalization; 2) the knowledge of the generated sample should not be informative to Q only, but also related to the category and distribution information of the training data for P. The theoretical and empirical analysis validate the advantages of AdaDFQ over the state-of-the-arts. Our code is available at https://github.com/hfutqian/AdaDFQ.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑