arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.05119cs.LGcs.CL
收藏

探索循环神经网络中的稀疏性

Exploring Sparsity in Recurrent Neural Networks

Baidu Research(百度研究院)

Sharan Narang, Erich Elsen, Gregory Diamos, Shubho Sengupta

摘要:

循环神经网络(RNN)被广泛用于解决各种问题,随着数据量和可用计算量的增加,模型大小也随之增加。最新技术水平的网络中的参数数量使得它们难以部署,特别是在移动电话和嵌入式设备上。挑战是由于模型的大小和评估它所需的时间。为了有效地部署这些RNN,我们提出了一种技术,通过在网络的初始训练期间修剪权重来减少网络的参数。在训练结束时,网络的参数稀疏,而精度仍然接近原来的密集神经网络。网络大小减少了8倍,训练模型所需的时间保持不变。此外,我们可以修剪一个更大的密集网络,以实现比基线性能更好的性能,同时仍然显着减少参数的总数。修剪RNN减少了模型的大小,并且还可以使用稀疏矩阵乘法来帮助实现显著的推理时间加速。基准测试表明,使用我们的技术,模型大小可以减少90%,速度提高约2倍至7倍。

英文摘要:

Recurrent Neural Networks (RNN) are widely used to solve a variety of problems and as the quantity of data and the amount of available compute have increased, so have model sizes. The number of parameters in recent state-of-the-art networks makes them hard to deploy, especially on mobile phones and embedded devices. The challenge is due to both the size of the model and the time it takes to evaluate it. In order to deploy these RNNs efficiently, we propose a technique to reduce the parameters of a network by pruning weights during the initial training of the network. At the end of training, the parameters of the network are sparse while accuracy is still close to the original dense neural network. The network size is reduced by 8x and the time required to train the model remains constant. Additionally, we can prune a larger dense network to achieve better than baseline performance while still reducing the total number of parameters significantly. Pruning RNNs reduces the size of the model and can also help achieve significant inference time speed-up using sparse matrix multiply. Benchmarks show that using our technique model size can be reduced by 90% and speed-up is around 2x to 7x.

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

↑