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

多样化的样本生成:突破无生成数据Quantization的极限

Diverse Sample Generation: Pushing the Limit of Generative Data-free Quantization

Beihang University(北京航空航天大学);Zhongguancun Laboratory(中关村实验室);Tsinghua University(清华大学)

Haotong Qin, Yifu Ding, Xiangguo Zhang, Jiakai Wang, Xianglong Liu, Jiwen Lu

摘要:

生成式无数据量化作为一种实用的压缩方法出现,它将深度神经网络量化为低位宽,而无需访问真实数据。该方法利用全精度网络的批量归一化(BN)统计数据生成数据,以优化网络。然而,在实际应用中,该算法面临着精度下降的严峻挑战。我们首先给出了一个理论分析,合成样本的多样性是至关重要的无数据量化,而在现有的方法,合成数据完全约束BN统计实验表现出严重的均匀性在分布和样本水平。本文提出了一种通用的多样性样本生成(DSG)方案的生成数据的量化,以减轻有害的均匀化。我们首先放松BN层中特征的统计对齐以放松分布约束。然后,我们加强了特定BN层对不同样本的损失影响,并抑制了生成过程中样本之间的相关性,分别从统计和空间角度使样本多样化。综合实验表明,对于大规模图像分类任务,DSG在不同的神经网络结构上都能保持一致的量化性能,特别是在超低位宽的情况下。我们的DSG导致的数据多样化为各种量化感知训练和训练后量化方法带来了普遍的收益,证明了它的通用性和有效性。

英文摘要:

Generative data-free quantization emerges as a practical compression approach that quantizes deep neural networks to low bit-width without accessing the real data. This approach generates data utilizing batch normalization (BN) statistics of the full-precision networks to quantize the networks. However, it always faces the serious challenges of accuracy degradation in practice. We first give a theoretical analysis that the diversity of synthetic samples is crucial for the data-free quantization, while in existing approaches, the synthetic data completely constrained by BN statistics experimentally exhibit severe homogenization at distribution and sample levels. This paper presents a generic Diverse Sample Generation (DSG) scheme for the generative data-free quantization, to mitigate detrimental homogenization. We first slack the statistics alignment for features in the BN layer to relax the distribution constraint. Then, we strengthen the loss impact of the specific BN layers for different samples and inhibit the correlation among samples in the generation process, to diversify samples from the statistical and spatial perspectives, respectively. Comprehensive experiments show that for large-scale image classification tasks, our DSG can consistently quantization performance on different neural architectures, especially under ultra-low bit-width. And data diversification caused by our DSG brings a general gain to various quantization-aware training and post-training quantization approaches, demonstrating its generality and effectiveness.

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

↑