Reversible Recurrent Neural Networks

Matthew MacKay, Paul Vicol, Jimmy Ba, Roger Grosse
10/25/2018
cs.LGstat.ML

Official code: matthewmackay/reversible-rnn (40 stars, Python, MIT, last commit 2019-01-20).

Abstract

Recurrent neural networks (RNNs) provide state-of-the-art performance in processing sequential data but are memory intensive to train, limiting the flexibility of RNN models which can be trained. Reversible RNNs---RNNs for which the hidden-to-hidden transition can be reversed---offer a path to reduce the memory requirements of training, as hidden states need not be stored and instead can be recomputed during backpropagation.

Show full abstract

We first show that perfectly reversible RNNs, which require no storage of the hidden activations, are fundamentally limited because they cannot forget information from their hidden state. We then provide a scheme for storing a small number of bits in order to allow perfect reversal with forgetting. Our method achieves comparable performance to traditional models while reducing the activation memory cost by a factor of 10--15. We extend our technique to attention-based sequence-to-sequence models, where it maintains performance while reducing activation memory cost by a factor of 5--10 in the encoder, and a factor of 10--15 in the decoder.

View on arXivView PDF

Code Implementations(1)

MIT

Code for reversible recurrent neural networks

406Python, ShellJan 20, 20197 years agoMIT

Similar Papers

Cite this paper

@article{mackay2018reversible,
  title  = {Reversible Recurrent Neural Networks},
  author = {Matthew MacKay and Paul Vicol and Jimmy Ba and Roger Grosse},
  year   = {2018},
  eprint = {1810.10999},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.10999}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1810.10999.svg)](https://codeofpaper.com/paper/1810.10999)

Discussion