arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1809.11086cs.LGcs.CCstat.ML
收藏

学习循环二进制/三进制权重

Learning Recurrent Binary/Ternary Weights

McGill University(麦吉尔大学)

Arash Ardakani, Zhengyun Ji, Sean C. Smithson, Brett H. Meyer, Warren J. Gross

摘要:

递归神经网络(RNN)在处理序列数据方面表现出优异的性能。然而,由于它们的递归性质,它们既复杂又占用大量内存。这些限制使得RNN很难嵌入到需要实时处理的移动设备上,而这些设备的硬件资源有限。为了解决上述问题,我们引入了一种方法,可以在训练阶段学习二进制和三进制权重,以促进RNN的硬件实现。因此,使用这种方法可以通过简单的累加来取代所有的乘法累加运算,从而在硅面积和功耗方面为定制硬件带来显着的好处。在软件方面,我们评估我们的方法使用长短期记忆(LSTM)的性能(在准确性方面)的各种序列模型,包括序列分类和语言建模。我们证明了我们的方法在运行时使用二进制/三进制权重时,在上述任务上取得了有竞争力的结果。在硬件方面,我们提出了自定义硬件,用于加速二进制/三进制权重的LSTM的递归计算。最终,我们表明,与ASIC平台上的全精度实现相比,具有二进制/三进制权重的LSTM可以实现高达12倍的内存节省和10倍的推理加速。

英文摘要:

Recurrent neural networks (RNNs) have shown excellent performance in processing sequence data. However, they are both complex and memory intensive due to their recursive nature. These limitations make RNNs difficult to embed on mobile devices requiring real-time processes with limited hardware resources. To address the above issues, we introduce a method that can learn binary and ternary weights during the training phase to facilitate hardware implementations of RNNs. As a result, using this approach replaces all multiply-accumulate operations by simple accumulations, bringing significant benefits to custom hardware in terms of silicon area and power consumption. On the software side, we evaluate the performance (in terms of accuracy) of our method using long short-term memories (LSTMs) on various sequential models including sequence classification and language modeling. We demonstrate that our method achieves competitive results on the aforementioned tasks while using binary/ternary weights during the runtime. On the hardware side, we present custom hardware for accelerating the recurrent computations of LSTMs with binary/ternary weights. Ultimately, we show that LSTMs with binary/ternary weights can achieve up to 12x memory saving and 10x inference speedup compared to the full-precision implementation on an ASIC platform.

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

↑