arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.13826cs.CV
收藏

硬样品在Zero-Shot Quantization中非常重要

Hard Sample Matters a Lot in Zero-Shot Quantization

South China University of Technology(华南理工大学);Changsha Hisense Intelligent System Research Institute Co., Ltd(长沙海信智能系统研究院有限公司);Hong Kong Baptist University(香港浸会大学);Peking University Shenzhen Graduate School(北京大学深圳研究生院);Key Laboratory of Big Data and Intelligent Robot, Ministry of Education(教育部大数据与智能机器人重点实验室);PengCheng Laboratory(鹏城实验室);Information Technology R&D Innovation Center of Peking University(北京大学信息技术研发创新中心)

Huantong Li, Xiangmiao Wu, Fanbing Lv, Daihai Liao, Thomas H. Li, Yonggang Zhang, Bo Han, Mingkui Tan

摘要:

当训练全精度模型的数据不可访问时,零拍量化(Zero-shot quantization,简称ZEQ)有望用于压缩和加速深度神经网络。在ARQ中,使用合成样本执行网络量化,因此,量化模型的性能在很大程度上取决于合成样本的质量。尽管如此,我们发现,在现有的合成样本构造的方法可以很容易地拟合模型。因此,通过这些方法获得的量化模型在硬样本上遭受显著的性能降级。为了解决这个问题,我们提出了HARD样本合成和训练(HAST)。具体来说,HAST在合成样本时更加关注硬样本,并在训练量化模型时使合成样本难以拟合。HAST将全精度和量化模型提取的特征对齐,以确保这两种模型提取的特征之间的相似性。大量的实验表明,HAST显着优于现有的SQREQ方法,实现的性能与真实数据量化的模型相当。

英文摘要:

Zero-shot quantization (ZSQ) is promising for compressing and accelerating deep neural networks when the data for training full-precision models are inaccessible. In ZSQ, network quantization is performed using synthetic samples, thus, the performance of quantized models depends heavily on the quality of synthetic samples. Nonetheless, we find that the synthetic samples constructed in existing ZSQ methods can be easily fitted by models. Accordingly, quantized models obtained by these methods suffer from significant performance degradation on hard samples. To address this issue, we propose HArd sample Synthesizing and Training (HAST). Specifically, HAST pays more attention to hard samples when synthesizing samples and makes synthetic samples hard to fit when training quantized models. HAST aligns features extracted by full-precision and quantized models to ensure the similarity between features extracted by these two models. Extensive experiments show that HAST significantly outperforms existing ZSQ methods, achieving performance comparable to models that are quantized with real data.

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

↑