Recurrent Neural Network Regularization

Wojciech Zaremba, Ilya Sutskever, Oriol VinyalsarXiv 2014

Introduction

Recurrent Neural Networks (RNNs), particularly Long Short-Term Memory (LSTM) networks, are powerful tools for sequence modeling. However, their capacity for complex tasks often leads to overfitting. While dropout is a standard regularization technique for feedforward networks, its application to RNNs historically proved problematic. Standard dropout applied to recurrent connections tends to amplify noise over time, effectively erasing the long-term memory that LSTMs are designed to preserve. This 2015 study by researchers at NYU and Google Brain introduces a simple yet effective method to apply dropout to LSTMs without compromising their temporal dependencies.

Methodology: Selective Dropout

The core innovation of this work is the distinction between recurrent and non-recurrent connections within a multi-layer LSTM architecture. The authors propose applying dropout exclusively to the non-recurrent (vertical) connections.

In a deep LSTM, information flows in two primary directions:

  1. Horizontal (Recurrent): Hidden states ($h$) and memory cells ($c$) transition from timestep $t$ to $t+1$.
  2. Vertical (Non-recurrent): Information flows from layer $l-1$ to layer $l$ at the same timestep $t$.
Visualization of information flow in a multi-layer RNN. The proposed method applies dropout only to non-recurrent (vertical) connections.

By sparing the horizontal connections, the network's internal memory remains uncorrupted by dropout noise. This ensures that information is only subjected to dropout a fixed number of times ($L+1$, where $L$ is the number of layers), regardless of the sequence length. This "L+1" rule allows the model to retain long-term dependencies while benefiting from the regularization of intermediate representations.

Experimental Results

The authors evaluated this regularization technique across several domains, including language modeling, speech recognition, and machine translation.

Language Modeling

On the Penn Tree Bank (PTB) dataset, the impact was substantial. A large, non-regularized LSTM achieved a test perplexity of 114.5. By applying the proposed dropout scheme, a similarly sized model reached a perplexity of 78.4, outperforming previous state-of-the-art results for single models.

Performance comparison on the Penn Tree Bank dataset. Regularized LSTMs significantly outperform non-regularized baselines.

Translation and Speech

The benefits extended to other tasks. In English-to-French translation (WMT’14), the BLEU score improved from 25.9 to 29.03. In speech recognition using an Icelandic dataset, frame-level accuracy increased from 68.9% to 70.5%. These results demonstrate that the technique allows for the training of much larger, more expressive models that were previously prone to rapid overfitting.

Conclusion

This research provides a robust "recipe" for regularizing LSTMs. By restricting dropout to non-recurrent connections, practitioners can train deep, high-capacity RNNs that generalize well across diverse sequence-based tasks. The method's simplicity and effectiveness have made it a foundational technique in the development of modern recurrent architectures.

Summary updated

BibTeX
@misc{zaremba2014recurrent,
  author = {Wojciech Zaremba and Ilya Sutskever and Oriol Vinyals},
  title = {{Recurrent Neural Network Regularization}},
  year = {2014},
  eprint = {1409.2329},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.2329},
}
Figure