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

序列长度上线性递归神经网络的优化

Parallelizing Linear Recurrent Neural Nets Over Sequence Length

Future of Humanity Institute, University of Oxford(牛津大学人类未来研究所)

Eric Martin, Chris Cundy

摘要:

递归神经网络(RNN)被广泛用于对序列数据进行建模,但它们在序列元素之间的非线性依赖关系阻止了序列长度上的并行训练。我们证明了只有线性顺序依赖关系的RNN的训练可以使用并行扫描算法在序列长度上并行化,从而即使在小的minibatch大小下也可以快速训练长序列。我们开发了一个并行线性递归CUDA内核,并表明它可以立即将几种最先进的RNN架构的训练和推理速度提高9倍。我们将最近关于线性RNN的工作抽象成一个新的线性代理RNN框架,并为长短期记忆单元GILR-LSTM开发了一个线性代理模型,该模型利用并行线性递归。我们将序列学习扩展到新的极长序列机制,这些机制以前是无法实现的,我们成功地在具有一百万时间步依赖性的合成序列分类任务上训练了GILR-LSTM。

英文摘要:

Recurrent neural networks (RNNs) are widely used to model sequential data but their non-linear dependencies between sequence elements prevent parallelizing training over sequence length. We show the training of RNNs with only linear sequential dependencies can be parallelized over the sequence length using the parallel scan algorithm, leading to rapid training on long sequences even with small minibatch size. We develop a parallel linear recurrence CUDA kernel and show that it can be applied to immediately speed up training and inference of several state of the art RNN architectures by up to 9x. We abstract recent work on linear RNNs into a new framework of linear surrogate RNNs and develop a linear surrogate model for the long short-term memory unit, the GILR-LSTM, that utilizes parallel linear recurrence. We extend sequence learning to new extremely long sequence regimes that were previously out of reach by successfully training a GILR-LSTM on a synthetic sequence classification task with a one million timestep dependency.

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

↑