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

恢复长序列的循环神经网络

Resurrecting Recurrent Neural Networks for Long Sequences

ETH Zurich(苏黎世联邦理工学院);DeepMind(深度思维)

Antonio Orvieto, Samuel L Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, Soham De

摘要:

循环神经网络(RNN)提供了对长序列的快速推理,但难以优化,训练缓慢。深度状态空间模型(SSM)最近被证明在长序列建模任务中表现出色,并且具有快速并行训练和RNN快速推理的额外好处。然而,虽然SSM表面上与RNN相似,但仍存在重要的差异,因此不清楚它们相对于RNN的性能提升来自何处。在本文中,我们证明了使用标准信号传播参数精心设计深度RNN可以恢复深度SSM在远程推理任务中令人印象深刻的性能,同时还可以匹配它们的训练速度。为了实现这一目标,我们分析并消除了标准RNN的一系列变化,包括线性化和对角化递归,使用更好的参数化和初始化,并确保正确的正向传递规范化。我们的研究结果为深度SSM令人印象深刻的性能的起源提供了新的见解,同时还引入了一个称为线性递归单元的RNN块,该块与它们在长距离竞技场基准测试中的性能和计算效率相匹配。

英文摘要:

Recurrent Neural Networks (RNNs) offer fast inference on long sequences but are hard to optimize and slow to train. Deep state-space models (SSMs) have recently been shown to perform remarkably well on long sequence modeling tasks, and have the added benefits of fast parallelizable training and RNN-like fast inference. However, while SSMs are superficially similar to RNNs, there are important differences that make it unclear where their performance boost over RNNs comes from. In this paper, we show that careful design of deep RNNs using standard signal propagation arguments can recover the impressive performance of deep SSMs on long-range reasoning tasks, while also matching their training speed. To achieve this, we analyze and ablate a series of changes to standard RNNs including linearizing and diagonalizing the recurrence, using better parameterizations and initializations, and ensuring proper normalization of the forward pass. Our results provide new insights on the origins of the impressive performance of deep SSMs, while also introducing an RNN block called the Linear Recurrent Unit that matches both their performance on the Long Range Arena benchmark and their computational efficiency.

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

↑