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

在长短期记忆中学习内在稀疏结构

Learning Intrinsic Sparse Structures within Long Short-Term Memory

Electrical and Computer Engineering, Duke University(杜克大学电气与计算机工程系);Microsoft Research(微软研究院);Bing(必应);Business AI(商业人工智能);Microsoft(微软)

Wei Wen, Yuxiong He, Samyam Rajbhandari, Minjia Zhang, Wenhan Wang, Fang Liu, Bin Hu, Yiran Chen, Hai Li

摘要:

模型压缩对于在拥有有限资源的用户设备和需要对大规模服务请求进行快速响应的业务集群中广泛采用递归神经网络(RNN)具有重要意义。这项工作旨在通过减少LSTM单元中基本结构的大小来学习结构稀疏的长短期记忆(LSTM),包括输入更新,门,隐藏状态,单元状态和输出。独立地减小基本结构的大小可能会导致它们之间的尺寸不一致,从而导致无效的LSTM单元。为了克服这个问题,我们提出了内在稀疏结构(ISS)的LSTM。删除ISS的一个组件将同时将所有基本结构的尺寸减少一个,从而始终保持尺寸的一致性。通过在LSTM单元内学习ISS,获得的LSTM保持规则,同时具有更小的基本结构。基于组Lasso正则化,我们的方法实现了10.59倍的加速,而不会失去任何语言建模的Penn TreeBank数据集的困惑。它也成功地通过一个紧凑的模型,只有2.69 M的权重为机器问答的SQuAD数据集进行评估。我们的方法成功地扩展到非LSTM RNN,如递归高速公路网络(RHN)。我们的源代码可在https://github.com/wenwei202/iss-rnns上公开获取

英文摘要:

Model compression is significant for the wide adoption of Recurrent Neural Networks (RNNs) in both user devices possessing limited resources and business clusters requiring quick responses to large-scale service requests. This work aims to learn structurally-sparse Long Short-Term Memory (LSTM) by reducing the sizes of basic structures within LSTM units, including input updates, gates, hidden states, cell states and outputs. Independently reducing the sizes of basic structures can result in inconsistent dimensions among them, and consequently, end up with invalid LSTM units. To overcome the problem, we propose Intrinsic Sparse Structures (ISS) in LSTMs. Removing a component of ISS will simultaneously decrease the sizes of all basic structures by one and thereby always maintain the dimension consistency. By learning ISS within LSTM units, the obtained LSTMs remain regular while having much smaller basic structures. Based on group Lasso regularization, our method achieves 10.59x speedup without losing any perplexity of a language modeling of Penn TreeBank dataset. It is also successfully evaluated through a compact model with only 2.69M weights for machine Question Answering of SQuAD dataset. Our approach is successfully extended to non- LSTM RNNs, like Recurrent Highway Networks (RHNs). Our source code is publicly available at https://github.com/wenwei202/iss-rnns

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

↑