Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Resurrecting Recurrent Neural Networks for Long Sequences

About

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.

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

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-103 (test)
Perplexity31.12
524
Language ModelingWikiText-103 (val)
PPL29.86
180
Long-range sequence modelingLong Range Arena (LRA)
Text Accuracy89.4
164
Long-range sequence modelingLong Range Arena (LRA) (test)--
158
Long-range sequence modelingLRA 92 (test)
ListOps Accuracy60.28
26
Language ModelingThe Pile
Perplexity5.07
25
Sequence ClassificationCIFAR-10 sequential standard (test)
Accuracy89
10
Sequential Image ClassificationpsMNIST (Permuted Sequential MNIST) 1.0 (test)
Accuracy97.8
8
Time-series classificationsMNIST (test)
Accuracy98.5
8
Showing 9 of 9 rows

Other info

Follow for update