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

紧凑、快速、准确的LSTM

Grow and Prune Compact, Fast, and Accurate LSTMs

Princeton University(普林斯顿大学)

Xiaoliang Dai, Hongxu Yin, Niraj K. Jha

摘要:

长短期记忆(LSTM)已被广泛用于序列数据建模。研究人员通过堆叠LSTM单元来增加LSTM深度,以提高性能。这会导致模型冗余,增加运行时延迟,并使LSTM更容易过拟合。为了解决这些问题,我们提出了一种隐藏层LSTM(H-LSTM),它将隐藏层添加到LSTM原始的一级非线性控制门中。H-LSTM提高了准确性,同时使用更少的外部堆栈层,从而显著减少了参数数量和运行时延迟。我们采用生长和修剪(GP)训练,通过基于梯度的增长和基于幅度的修剪连接迭代地调整隐藏层。这学习了H-LSTM控制门的权重和紧凑架构。我们有GP训练的H-LSTM用于图像描述和语音识别应用。对于MSCOCO数据集上的NeuralTalk架构,我们的三个模型将参数数量减少了38.7倍[浮点运算(FLOPs)减少了45.5倍],运行时延迟减少了4.5倍,并将CIDER得分提高了2.6。对于AN 4数据集上的DeepSpeech 2架构,我们的两个模型将参数数量减少了19.4倍(FLOPs减少了23.5倍),运行时延迟减少了15.7%,单词出错率从12.9%减少到8.7%。因此,GP训练的H-LSTM可以被视为紧凑、快速和准确。

英文摘要:

Long short-term memory (LSTM) has been widely used for sequential data modeling. Researchers have increased LSTM depth by stacking LSTM cells to improve performance. This incurs model redundancy, increases run-time delay, and makes the LSTMs more prone to overfitting. To address these problems, we propose a hidden-layer LSTM (H-LSTM) that adds hidden layers to LSTM's original one level non-linear control gates. H-LSTM increases accuracy while employing fewer external stacked layers, thus reducing the number of parameters and run-time latency significantly. We employ grow-and-prune (GP) training to iteratively adjust the hidden layers through gradient-based growth and magnitude-based pruning of connections. This learns both the weights and the compact architecture of H-LSTM control gates. We have GP-trained H-LSTMs for image captioning and speech recognition applications. For the NeuralTalk architecture on the MSCOCO dataset, our three models reduce the number of parameters by 38.7x [floating-point operations (FLOPs) by 45.5x], run-time latency by 4.5x, and improve the CIDEr score by 2.6. For the DeepSpeech2 architecture on the AN4 dataset, our two models reduce the number of parameters by 19.4x (FLOPs by 23.5x), run-time latency by 15.7%, and the word error rate from 12.9% to 8.7%. Thus, GP-trained H-LSTMs can be seen to be compact, fast, and accurate.

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

↑