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

H-Conv:用于高效和准确推理的完全量化卷积

FQ-Conv: Fully Quantized Convolution for Efficient and Accurate Inference

IMEC(比利时微电子研究中心);KU Leuven(鲁汶大学)

Bram-Ernst Verhoef, Nathan Laubeuf, Stefan Cosemans, Peter Debacker, Ioannis Papistas, Arindam Mallik, Diederik Verkest

摘要:

深度神经网络(DNN)可以通过降低网络权重和激活的数值精度以及提高网络对噪声的弹性来实现硬件高效。然而,这种效率的提高往往是以显著降低精度为代价的。本文提出了一种新的量化卷积神经网络的方法。由此产生的网络以低精度执行所有计算,而不需要更高精度的BN和非线性,同时仍然具有高度准确性。为了实现这一结果,我们采用了一种新的量化技术,该技术可以在训练过程中学习优化网络的权重和激活。此外,为了增强训练收敛性,我们使用了一种新的训练技术,称为渐进量化。我们利用量化函数的非线性和归一化行为来有效地从网络中去除更高精度的非线性和BN。由此产生的卷积层从输入到输出都被完全量化到低精度,非常适合边缘上的神经网络加速器。我们在不同的数据集和网络上展示了这种方法的潜力,表明具有低精度输入和输出的三重CNN的性能几乎与其全精度等价物相当。最后,我们分析了噪声对权值、激活和卷积输出(乘-累加,MAC)的影响,并提出了一种策略来提高网络在噪声条件下的性能。

英文摘要:

Deep neural networks (DNNs) can be made hardware-efficient by reducing the numerical precision of the weights and activations of the network and by improving the network's resilience to noise. However, this gain in efficiency often comes at the cost of significantly reduced accuracy. In this paper, we present a novel approach to quantizing convolutional neural network. The resulting networks perform all computations in low-precision, without requiring higher-precision BN and nonlinearities, while still being highly accurate. To achieve this result, we employ a novel quantization technique that learns to optimally quantize the weights and activations of the network during training. Additionally, to enhance training convergence we use a new training technique, called gradual quantization. We leverage the nonlinear and normalizing behavior of our quantization function to effectively remove the higher-precision nonlinearities and BN from the network. The resulting convolutional layers are fully quantized to low precision, from input to output, ideal for neural network accelerators on the edge. We demonstrate the potential of this approach on different datasets and networks, showing that ternary-weight CNNs with low-precision in- and outputs perform virtually on par with their full-precision equivalents. Finally, we analyze the influence of noise on the weights, activations and convolution outputs (multiply-accumulate, MAC) and propose a strategy to improve network performance under noisy conditions.

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

↑