Parallelizing Legendre Memory Unit Training
About
Recently, a new recurrent neural network (RNN) named the Legendre Memory Unit (LMU) was proposed and shown to achieve state-of-the-art performance on several benchmark datasets. Here we leverage the linear time-invariant (LTI) memory component of the LMU to construct a simplified variant that can be parallelized during training (and yet executed as an RNN during inference), thus overcoming a well known limitation of training RNNs on GPUs. We show that this reformulation that aids parallelizing, which can be applied generally to any deep network whose recurrent components are linear, makes training up to 200 times faster. Second, to validate its utility, we compare its performance against the original LMU and a variety of published LSTM and transformer networks on seven benchmarks, ranging from psMNIST to sentiment analysis to machine translation. We demonstrate that our models exhibit superior performance on all datasets, often using fewer parameters. For instance, our LMU sets a new state-of-the-art result on psMNIST, and uses half the parameters while outperforming DistilBERT and LSTM models on IMDB sentiment analysis.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Natural Language Inference | SNLI (test) | Accuracy78.85 | 681 | |
| Sentiment Analysis | IMDB (test) | Accuracy93.2 | 248 | |
| Character-level Language Modeling | text8 (test) | BPC1.61 | 128 | |
| Pixel-by-pixel Image Classification | Permuted Sequential MNIST (pMNIST) (test) | Accuracy98.49 | 79 | |
| Sequential Image Classification | PMNIST (test) | Accuracy (Test)98.45 | 77 | |
| Sequential Image Classification | S-MNIST (test) | Accuracy98.49 | 70 | |
| Pixel-level 1-D image classification | Sequential MNIST (test) | Accuracy98.49 | 53 | |
| Paraphrase Detection | QQP (test) | Accuracy86.95 | 51 | |
| Permuted Sequential Image Classification | PS-MNIST (test) | Accuracy98.49 | 18 | |
| Machine Translation | IWSLT'15 En-Vi TED tst2013 (test) | BLEU (Case Sensitive)25.5 | 2 |