Resurrecting Recurrent Neural Networks for Long Sequences
Authors:
- Antonio OrvietoAOAntonio Orvieto
- Samuel L SmithSSSamuel L Smith
- Albert GuAGAlbert Gu
- Anushan FernandoAFAnushan Fernando
- Caglar GulcehreCGCaglar Gulcehre
- Razvan PascanuRPRazvan Pascanu
- Soham DeSDSoham De
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Novel machine learning approaches revolutionize protein knowledgeTrends in Biochemical Sciences, 2022
- Long Movie Clip Classification with State-Space Video Models2022
- Highly accurate protein structure prediction with AlphaFoldNature, 2021
- Data-driven discovery of Koopman eigenfunctions for controlMachine Learning: Science and Technology, 2021
- On Convergence of Extended Dynamic Mode Decomposition to the Koopman OperatorJournal of Nonlinear Science, 2017
- A Data–Driven Approximation of the Koopman Operator: Extending Dynamic Mode DecompositionJournal of Nonlinear Science, 2015
- Dynamic mode decomposition of numerical and experimental dataJournal of Fluid Mechanics, 2010
- Learning long-term dependencies with gradient descent is difficultIEEE Transactions on Neural Networks, 1994
- Statistical Ensembles of Complex, Quaternion, and Real MatricesJournal of Mathematical Physics, 1965
- Dynamical Systems of Continuous SpectraProceedings of the National Academy of Sciences, 1932