FastGRNN:一种快速、精确、稳定的极小千字节级门控循环神经网络
FastGRNN: A Fast, Accurate, Stable and Tiny Kilobyte Sized Gated Recurrent Neural Network
摘要:
本文开发了FastRNN和FastGRNN算法,以解决RNN训练不准确和预测效率低下的双重局限性。以前的方法已经提高了精度,但代价是预测成本,使得它们对于资源受限和实时应用不可行。酉RNN通过限制状态转移矩阵奇异值的范围,在一定程度上提高了准确性,但也增加了模型的大小,因为它们需要更多的隐藏单元来弥补表达能力的损失。门控RNN通过添加额外的参数获得了最先进的精度,从而产生了更大的模型。FastRNN通过添加一个残差连接来解决这些限制,该残差连接不明确限制奇异值的范围,并且只有两个额外的标量参数。然后,FastGRNN通过重用RNN矩阵将剩余连接扩展到门,以匹配最先进的门控RNN精度,但模型较小2- 4倍。强制FastGRNN的矩阵为低秩、稀疏和量化,导致精确的模型比领先的门控和酉RNN小35倍。这使得FastGRNN能够准确地识别具有1 KB模型的“Hey Cortana”唤醒词,并部署在资源严重受限的物联网微控制器上,这些微控制器太小,无法存储其他RNN模型。FastGRNN的代码可以在https://github.com/Microsoft/EdgeML/上找到。
英文摘要:
This paper develops the FastRNN and FastGRNN algorithms to address the twin RNN limitations of inaccurate training and inefficient prediction. Previous approaches have improved accuracy at the expense of prediction costs making them infeasible for resource-constrained and real-time applications. Unitary RNNs have increased accuracy somewhat by restricting the range of the state transition matrix's singular values but have also increased the model size as they require a larger number of hidden units to make up for the loss in expressive power. Gated RNNs have obtained state-of-the-art accuracies by adding extra parameters thereby resulting in even larger models. FastRNN addresses these limitations by adding a residual connection that does not constrain the range of the singular values explicitly and has only two extra scalar parameters. FastGRNN then extends the residual connection to a gate by reusing the RNN matrices to match state-of-the-art gated RNN accuracies but with a 2-4x smaller model. Enforcing FastGRNN's matrices to be low-rank, sparse and quantized resulted in accurate models that could be up to 35x smaller than leading gated and unitary RNNs. This allowed FastGRNN to accurately recognize the "Hey Cortana" wakeword with a 1 KB model and to be deployed on severely resource-constrained IoT microcontrollers too tiny to store other RNN models. FastGRNN's code is available at https://github.com/Microsoft/EdgeML/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。