arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.01394cs.CVstat.ML
收藏

BiTAT:基于任务相关聚集变换的神经网络二值化

BiTAT: Neural Network Binarization with Task-dependent Aggregated Transformation

KAIST(韩国科学技术院);AITRICS;Weizmann Institute of Science(魏茨曼科学研究所)

Geon Park, Jaehong Yoon, Haiyang Zhang, Xing Zhang, Sung Ju Hwang, Yonina C. Eldar

摘要:

神经网络量化旨在将给定神经网络的高精度权重和激活转换为低精度权重/激活,以减少内存使用和计算,同时保持原始模型的性能。然而,紧凑设计的骨干架构(例如,MobileNets)通常用于边缘设备部署,导致严重的性能退化。本文提出了一种新的量化感知训练(QAT)方法,即使在极端量化的情况下,也可以有效地减轻性能退化,该方法关注每个层内和连续层之间的权重之间的权重依赖关系。为了最大限度地减少每个权重对其他权重的量化影响,我们通过训练依赖于输入的相关矩阵和重要性向量来对每一层的权重进行正交变换,从而使每个权重与其他权重分离。然后,我们根据权重的重要性对权重进行排序,以最大限度地减少原始权重/激活的信息损失。我们进一步执行从底层到顶层的逐层量化,使得每层的量化反映了先前层的权重和激活的量化分布。我们验证了我们的方法在各种基准数据集上对强神经量化基线的有效性,证明了它消除了ImageNet上的性能退化,并成功地在具有紧凑骨干网络的CIFAR-100上保持了全精度模型性能。

英文摘要:

Neural network quantization aims to transform high-precision weights and activations of a given neural network into low-precision weights/activations for reduced memory usage and computation, while preserving the performance of the original model. However, extreme quantization (1-bit weight/1-bit activations) of compactly-designed backbone architectures (e.g., MobileNets) often used for edge-device deployments results in severe performance degeneration. This paper proposes a novel Quantization-Aware Training (QAT) method that can effectively alleviate performance degeneration even with extreme quantization by focusing on the inter-weight dependencies, between the weights within each layer and across consecutive layers. To minimize the quantization impact of each weight on others, we perform an orthonormal transformation of the weights at each layer by training an input-dependent correlation matrix and importance vector, such that each weight is disentangled from the others. Then, we quantize the weights based on their importance to minimize the loss of the information from the original weights/activations. We further perform progressive layer-wise quantization from the bottom layer to the top, so that quantization at each layer reflects the quantized distributions of weights and activations at previous layers. We validate the effectiveness of our method on various benchmark datasets against strong neural quantization baselines, demonstrating that it alleviates the performance degeneration on ImageNet and successfully preserves the full-precision model performance on CIFAR-100 with compact backbone networks.

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

↑