arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.03401cs.NEcs.LG
收藏

存储器高效的时间反向传播

Memory-Efficient Backpropagation Through Time

Google DeepMind(谷歌DeepMind)

Audrūnas Gruslys, Remi Munos, Ivo Danihelka, Marc Lanctot, Alex Graves

摘要:

提出了一种新的方法,以减少通过时间反向传播(BPTT)算法训练递归神经网络(RNN)时的内存消耗。我们的方法使用动态规划来平衡中间结果的缓存和重新计算之间的权衡。该算法能够紧密配合几乎任何用户设置的内存预算,同时找到一个最佳的执行策略,最大限度地减少计算成本。计算设备具有有限的存储器容量,并且在给定固定存储器预算的情况下最大化计算性能是实际的用例。我们提供了各种制度的渐近计算上限。该算法对长序列特别有效。对于长度为1000的序列,我们的算法节省了95%的内存使用,而每次迭代的时间仅比标准BPTT多三分之一。

英文摘要:

We propose a novel approach to reduce memory consumption of the backpropagation through time (BPTT) algorithm when training recurrent neural networks (RNNs). Our approach uses dynamic programming to balance a trade-off between caching of intermediate results and recomputation. The algorithm is capable of tightly fitting within almost any user-set memory budget while finding an optimal execution policy minimizing the computational cost. Computational devices have limited memory capacity and maximizing a computational performance given a fixed memory budget is a practical use-case. We provide asymptotic computational upper bounds for various regimes. The algorithm is particularly effective for long sequences. For sequences of length 1000, our algorithm saves 95\% of memory usage while using only one third more time per iteration than the standard BPTT.

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

↑