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$.
IRNN: Innovation-driven Recurrent Neural Network for Time-Series Data Modeling and Prediction
The Department of Automation, Tsinghua University(自动化系,清华大学);Beijing National Research Center for Information Science and Technology, Tsinghua University(北京信息科学与技术国家研究中心,清华大学)
On Orthogonal Recurrent Neural Networks Quantization
Institut de Mathématiques de Toulouse(图卢兹数学研究所);Université de Toulouse(图卢兹大学);CNRS(法国国家科学研究中心);UPS IMT;Institut de Recherche Technologique Saint Exupéry(圣埃克苏佩里技术研究院)
Resampling Filter Design for Multirate Neural Audio Effect Processing
Acoustics and Audio, University of Edinburgh(声学与音频,爱丁堡大学);Acoustics Lab, Department of Information and Communications Engineering, Aalto University(声学实验室,信息与通信工程系,阿尔托大学);Scottish Graduate School of Arts and Humanities (SGSAH)(苏格兰艺术与人文研究生学院)