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

循环神经网络的有效Quantization方法

Effective Quantization Approaches for Recurrent Neural Networks

University of Dayton(代顿大学);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室)

Md Zahangir Alom, Adam T Moody, Naoya Maruyama, Brian C Van Essen, Tarek M. Taha

摘要:

深度学习,特别是循环神经网络(RNN),在包括机器翻译、语言理解和电影帧生成在内的各种任务中表现出卓越的准确性。然而,这些深度学习方法在计算方面非常昂贵。在大多数情况下,图形处理单元(GPU)用于大规模实现。同时,提出了能量高效的RNN方法,用于在包括现场编程门阵列(FPGA)和移动平台的专用硬件上部署解决方案。在本文中,我们提出了一种有效的量化方法,用于循环神经网络(RNN)技术,包括长短期记忆(LSTM),门控循环单元(GRU)和卷积长短期记忆(ConvLSTM)。我们已经实现了不同的量化方法,包括二进制连接{-1,1},三进制连接{-1,0,1},和四进制连接{-1,-0.5,0.5,1}。这些方法在不同的数据集上进行评估,用于IMDB上的情感分析和移动MNIST数据集上的视频帧预测。将实验结果与LSTM、GRU和ConvLSTM的全精度版本进行比较。它们在情感分析和视频帧预测方面都表现出了良好的效果。

英文摘要:

Deep learning, and in particular Recurrent Neural Networks (RNN) have shown superior accuracy in a large variety of tasks including machine translation, language understanding, and movie frame generation. However, these deep learning approaches are very expensive in terms of computation. In most cases, Graphic Processing Units (GPUs) are in used for large scale implementations. Meanwhile, energy efficient RNN approaches are proposed for deploying solutions on special purpose hardware including Field Programming Gate Arrays (FPGAs) and mobile platforms. In this paper, we propose an effective quantization approach for Recurrent Neural Networks (RNN) techniques including Long Short Term Memory (LSTM), Gated Recurrent Units (GRU), and Convolutional Long Short Term Memory (ConvLSTM). We have implemented different quantization methods including Binary Connect {-1, 1}, Ternary Connect {-1, 0, 1}, and Quaternary Connect {-1, -0.5, 0.5, 1}. These proposed approaches are evaluated on different datasets for sentiment analysis on IMDB and video frame predictions on the moving MNIST dataset. The experimental results are compared against the full precision versions of the LSTM, GRU, and ConvLSTM. They show promising results for both sentiment analysis and video frame prediction.

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

↑