用截断高斯近似同时优化三值神经网络的权值和量化器
Simultaneously Optimizing Weight and Quantizer of Ternary Neural Network using Truncated Gaussian Approximation
摘要:
在过去的几年里,深度卷积神经网络在许多人工智能应用中取得了巨大的成功。然而,其庞大的模型规模和庞大的计算成本已经成为部署这种强大的算法在低功耗和资源有限的移动系统的主要障碍。作为该问题的对策,已经广泛探索了具有三值化权重(即,-1,0,+1)的深度神经网络,以极大地减小模型大小和计算成本,并且精度降低有限。在这项工作中,我们提出了一种新的三端化的神经网络训练方法,同时优化的权重和量化器在训练过程中,区别于以往的作品。而不是固定和统一的权重三进制化,我们是第一个将权重三进制化的阈值纳入一个封闭的形式表示使用截断高斯近似,使权重和量化器的同时优化,通过反向传播训练。在第一层和最后一层都被三进制化的情况下,ImageNet分类任务的实验表明,与全精度对应物相比,我们三进制化的ResNet-18/34/50的准确率仅下降了3.9/2.52/2.16%。
英文摘要:
In the past years, Deep convolution neural network has achieved great success in many artificial intelligence applications. However, its enormous model size and massive computation cost have become the main obstacle for deployment of such powerful algorithm in the low power and resource-limited mobile systems. As the countermeasure to this problem, deep neural networks with ternarized weights (i.e. -1, 0, +1) have been widely explored to greatly reduce the model size and computational cost, with limited accuracy degradation. In this work, we propose a novel ternarized neural network training method which simultaneously optimizes both weights and quantizer during training, differentiating from prior works. Instead of fixed and uniform weight ternarization, we are the first to incorporate the thresholds of weight ternarization into a closed-form representation using the truncated Gaussian approximation, enabling simultaneous optimization of weights and quantizer through back-propagation training. With both of the first and last layer ternarized, the experiments on the ImageNet classification task show that our ternarized ResNet-18/34/50 only has 3.9/2.52/2.16% accuracy degradation in comparison to the full-precision counterparts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。