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

iRNN:纯整数循环神经网络

iRNN: Integer-only Recurrent Neural Network

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Eyyüb Sari, Vanessa Courville, Vahid Partovi Nia

摘要:

递归神经网络(RNN)用于许多现实世界的文本和语音应用。它们包括复杂的模块,如递归、基于指数的激活、门交互、展开归一化、双向依赖和注意力。这些元素之间的交互防止在仅整数操作上运行它们而不会显著降低性能。部署包括层归一化和只关注整数运算的RNN仍然是一个悬而未决的问题。我们提出了一种量化感知训练方法,用于获得高度准确的仅整数循环神经网络(iRNN)。我们的方法支持层归一化、注意力和自适应分段线性近似激活(PWL),以在各种应用中为各种RNN提供服务。所提出的方法被证明适用于基于RNN的语言模型,并具有挑战性的自动语音识别,使AI应用程序处于边缘。我们的iRNN保持与其全精度对应物相似的性能,它们在智能手机上的部署将运行时性能提高了$2\times$,并将模型大小减少了$4\times$。

英文摘要:

Recurrent neural networks (RNN) are used in many real-world text and speech applications. They include complex modules such as recurrence, exponential-based activation, gate interaction, unfoldable normalization, bi-directional dependence, and attention. The interaction between these elements prevents running them on integer-only operations without a significant performance drop. Deploying RNNs that include layer normalization and attention on integer-only arithmetic is still an open problem. We present a quantization-aware training method for obtaining a highly accurate integer-only recurrent neural network (iRNN). Our approach supports layer normalization, attention, and an adaptive piecewise linear approximation of activations (PWL), to serve a wide range of RNNs on various applications. The proposed method is proven to work on RNN-based language models and challenging automatic speech recognition, enabling AI applications on the edge. Our iRNN maintains similar performance as its full-precision counterpart, their deployment on smartphones improves the runtime performance by $2\times$, and reduces the model size by $4\times$.

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

↑