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

后训练Quantization的细粒度数据分布对齐

Fine-grained Data Distribution Alignment for Post-Training Quantization

Tencent Youtu Lab(腾讯优图实验室);Xiamen University(厦门大学)

Yunshan Zhong, Mingbao Lin, Mengzhao Chen, Ke Li, Yunhang Shen, Fei Chao, Yongjian Wu, Rongrong Ji

摘要:

虽然后训练量化主要由于其在访问原始完整训练数据集时的逃避而受到欢迎,但其性能不佳也源于稀缺的图像。为了缓解这一限制,本文利用zero-shot量化引入的合成数据与校准数据集,并提出了一种细粒度数据分布对齐(FDDA)方法来提高训练后量化的性能。该方法基于我们在训练网络的深层中观察到的批量归一化统计(BNS)的两个重要性质,(即),类间分离和类内不凝聚。为了保持这种细粒度的分布信息:1)我们计算校准数据集的每类BNS作为每个类的BNS中心,并提出了一个BNS集中的损失,以迫使不同类的合成数据分布接近它们自己的中心。2)我们在中心加入高斯噪声来模拟不一致性,并提出了一种贝叶斯失真损失,迫使同类的合成数据分布接近失真中心。通过利用这两个细粒度的损失,我们的方法在ImageNet上表现出了最先进的性能,特别是当第一层和最后一层都量化到低位时。代码位于\url{https://github.com/zysxmu/FDDA}。

英文摘要:

While post-training quantization receives popularity mostly due to its evasion in accessing the original complete training dataset, its poor performance also stems from scarce images. To alleviate this limitation, in this paper, we leverage the synthetic data introduced by zero-shot quantization with calibration dataset and propose a fine-grained data distribution alignment (FDDA) method to boost the performance of post-training quantization. The method is based on two important properties of batch normalization statistics (BNS) we observed in deep layers of the trained network, (i.e.), inter-class separation and intra-class incohesion. To preserve this fine-grained distribution information: 1) We calculate the per-class BNS of the calibration dataset as the BNS centers of each class and propose a BNS-centralized loss to force the synthetic data distributions of different classes to be close to their own centers. 2) We add Gaussian noise into the centers to imitate the incohesion and propose a BNS-distorted loss to force the synthetic data distribution of the same class to be close to the distorted centers. By utilizing these two fine-grained losses, our method manifests the state-of-the-art performance on ImageNet, especially when both the first and last layers are quantized to the low-bit. Code is at \url{https://github.com/zysxmu/FDDA}.

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

↑