arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.02834cs.CVcs.LG
收藏

基于学习权值统计的深度卷积神经网络的广义Zero-Shot Quantization

A Generalized Zero-Shot Quantization of Deep Convolutional Neural Networks via Learned Weights Statistics

Samsung R&D Institute India- Bangalore(三星印度班加罗尔研发中心);Indian Institute of Technology Guwahati(印度理工学院古瓦哈提分校);TensorTour Inc.(TensorTour公司)

Prasen Kumar Sharma, Arun Abraham, Vikram Nelvoy Rajendiran

摘要:

将深度卷积神经网络的浮点权重和激活量化为定点表示可以减少内存占用和推理时间。最近,人们正在努力实现不需要给定任务的原始未标记训练样本的zero-shot量化。这些最好的出版作品严重依赖于学习的批量归一化(BN)参数来推断量化的激活范围。特别是,这些方法建立在经验估计框架或数据蒸馏方法的基础上,用于计算激活的范围。然而,当呈现不容纳BN层的网络时,这种方案的性能严重降低。在这种思路下,我们提出了一个广义zero-shot量化(GSQQ)框架,既不需要原始数据,也不依赖于BN层统计。我们利用数据蒸馏方法,仅利用模型的预训练权重来估计用于激活范围校准的丰富数据。据我们所知,这是第一个利用预训练权重的分布来辅助zero-shot量化过程的工作。所提出的方案明显优于现有的zero-shot作品,例如,MobileNetV2和其他几个无BN层的模型的分类准确性提高了约33%,适用于各种任务。我们还在多个开源量化框架中证明了所提出的工作的有效性。重要的是,我们的工作是对未来非规范化深度神经网络的训练后zero-shot量化的第一次尝试。

英文摘要:

Quantizing the floating-point weights and activations of deep convolutional neural networks to fixed-point representation yields reduced memory footprints and inference time. Recently, efforts have been afoot towards zero-shot quantization that does not require original unlabelled training samples of a given task. These best-published works heavily rely on the learned batch normalization (BN) parameters to infer the range of the activations for quantization. In particular, these methods are built upon either empirical estimation framework or the data distillation approach, for computing the range of the activations. However, the performance of such schemes severely degrades when presented with a network that does not accommodate BN layers. In this line of thought, we propose a generalized zero-shot quantization (GZSQ) framework that neither requires original data nor relies on BN layer statistics. We have utilized the data distillation approach and leveraged only the pre-trained weights of the model to estimate enriched data for range calibration of the activations. To the best of our knowledge, this is the first work that utilizes the distribution of the pretrained weights to assist the process of zero-shot quantization. The proposed scheme has significantly outperformed the existing zero-shot works, e.g., an improvement of ~ 33% in classification accuracy for MobileNetV2 and several other models that are w & w/o BN layers, for a variety of tasks. We have also demonstrated the efficacy of the proposed work across multiple open-source quantization frameworks. Importantly, our work is the first attempt towards the post-training zero-shot quantization of futuristic unnormalized deep neural networks.

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

↑