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

用于神经网络的具有实时的性能的鲁棒性感知2位quantization

Robustness-aware 2-bit quantization with real-time performance for neural network

Beihang University(北京航空航天大学)

Xiaobin Li, Hongxu Jiang, Shuangxi Huang, Fangzheng Tian

摘要:

比特精度降低的量化神经网络(NN)是降低计算和存储资源需求的有效解决方案,在机器学习中起着至关重要的作用。然而,它仍然是具有挑战性的,以避免显着的精度下降,由于其数值近似和较低的冗余。本文在二进制神经网络和生成对抗网络(GAN)的基础上,提出了一种新的鲁棒性感知的2比特量化方案,通过丰富二进制神经网络的信息,有效地提取结构信息,并考虑量化后的神经网络的鲁棒性,提高了神经网络的性能。具体地说,在量化过程中用移位加法运算代替乘累加运算,可以有效地提高神经网络的速度。同时,提出了一种量化后的神经网络与原始神经网络之间的结构损失,以保持量化后数据的结构信息。从NN学习的结构信息不仅在提高性能方面起着重要作用,而且还允许通过将Lipschitz约束应用于结构损耗来进一步微调量化网络。此外,我们还首次考虑到量化神经网络的鲁棒性,通过引入谱范数的无关项,提出了一种非敏感扰动损失函数。实验在CIFAR-10和ImageNet数据集上进行,使用流行的NN(如MoblieNetV 2,SqueezeNet,ResNet 20等)。实验结果表明,该算法在2比特精度下比现有的量化方法具有更好的竞争力。同时,实验结果也表明,该方法在FGSM对抗样本攻击下具有较好的鲁棒性。

英文摘要:

Quantized neural network (NN) with a reduced bit precision is an effective solution to reduces the computational and memory resource requirements and plays a vital role in machine learning. However, it is still challenging to avoid the significant accuracy degradation due to its numerical approximation and lower redundancy. In this paper, a novel robustness-aware 2-bit quantization scheme is proposed for NN base on binary NN and generative adversarial network(GAN), witch improves the performance by enriching the information of binary NN, efficiently extract the structural information and considering the robustness of the quantized NN. Specifically, using shift addition operation to replace the multiply-accumulate in the quantization process witch can effectively speed the NN. Meanwhile, a structural loss between the original NN and quantized NN is proposed to such that the structural information of data is preserved after quantization. The structural information learned from NN not only plays an important role in improving the performance but also allows for further fine tuning of the quantization network by applying the Lipschitz constraint to the structural loss. In addition, we also for the first time take the robustness of the quantized NN into consideration and propose a non-sensitive perturbation loss function by introducing an extraneous term of spectral norm. The experiments are conducted on CIFAR-10 and ImageNet datasets with popular NN( such as MoblieNetV2, SqueezeNet, ResNet20, etc). The experimental results show that the proposed algorithm is more competitive under 2-bit-precision than the state-of-the-art quantization methods. Meanwhile, the experimental results also demonstrate that the proposed method is robust under the FGSM adversarial samples attack.

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

↑