# Recurrent Neural Network Regularization

Dropout applied only to non-recurrent connections makes LSTMs regularize well

Wojciech Zaremba, Ilya Sutskever, Oriol Vinyals · arXiv · 2014-9-8

- **Problem** Dropout works well for feedforward networks but has not worked well with RNNs. Practical LSTMs were kept small to avoid overfitting, since dropout corrupted the recurrent state.
- **Method** The authors apply dropout only to the non-recurrent connections of a deep LSTM. The recurrent state path is left untouched, so the LSTM keeps its memory.
- **Results** The medium and large regularized LSTMs reached 82.7 and 78.4 test word-level perplexity on Penn Tree Bank. The non-regularized LSTM reached 114.5.

## Why dropout has not helped RNNs

Dropout is the strongest regularizer for feedforward networks, yet it does not work well with recurrent networks. Because large RNNs overfit, practical models are often kept small, and the regularizers that exist give only modest gains for RNNs.

The only earlier study of dropout for RNNs is by Bayer et al. (2013), who used marginalized dropout, a noiseless deterministic approximation to standard dropout. Their explanation is that recurrence amplifies noise and so hurts learning. This paper keeps dropout and changes where it is placed, arguing that the problem disappears when dropout is restricted to a subset of the connections.

Pham et al. (2013) arrived at the same regularization method independently and applied it to handwriting recognition.

## Where dropout sits in a deep LSTM

The activations of the top layer, h^L\_t, are used to predict y\_t. Each layer is an LSTM whose memory cells c^l\_t store information across timesteps, and the cells are overwritten, read or kept by gates.

The change is in the input to the gates: the layer input h^{l-1}\_t passes through the dropout operator D, while the recurrent input h^l\_{t-1} is passed through unchanged. Writing the gates as \\(i, f, o, g\\), computed by \\(T\_{2n,4n}\\) applied to \\((D(h^{l-1}\_t), h^l\_{t-1})\\), the cell update \\(c^l\_t = f \\odot c^l\_{t-1} + i \\odot g\\) and the output \\(h^l\_t = o \\odot \\tanh(c^l\_t)\\) keep the standard LSTM form.

Dropout therefore acts only on the signal coming from the layer below, at each timestep.

## Why the recurrent path stays clean

Tracing a signal from timestep t-2 to the prediction at t+2 shows that dropout corrupts it L+1 times, where L is the depth of the network. The number of corruptions depends on depth and not on how many timesteps the signal crosses.

Applying dropout to the recurrent connections would corrupt the stored state at every step, which the authors argue makes it hard for the LSTM to hold information for long periods. Keeping the recurrent path free of dropout is meant to let the LSTM use dropout's regularizing effect without losing its memorization ability. This is the authors' reasoning, and the units give no direct comparison that isolates the recurrent-dropout case.

## Language modeling on Penn Tree Bank

The experiments use the Penn Tree Bank, with 929k training words, 73k validation words, 82k test words and a 10k-word vocabulary. Both regularized models have two layers, are unrolled for 35 steps, and use minibatches of 20 with hidden states carried from one minibatch to the next.

The medium LSTM has 650 units per layer, uses 50% dropout on the non-recurrent connections, and is trained for 39 epochs with a learning rate of 1, reduced by a factor of 1.2 after each epoch from epoch 6, with gradient norms clipped at 5. The large LSTM has 1500 units per layer, uses 65% dropout on the non-recurrent connections, and is trained for 55 epochs with a learning rate of 1, reduced by a factor of 1.15 after each epoch from epoch 14, with gradient norms clipped at 10.

The non-regularized baseline had its parameters tuned for validation performance and was kept small: two hidden layers of 200 units, trained for 13 epochs. The authors state that without regularization the network size had to be limited because larger networks overfit.

On the test set, word-level perplexity, where lower is better, was 114.5 for the non-regularized LSTM, 82.7 for the medium regularized LSTM and 78.4 for the large regularized LSTM. The validation values follow the same order, at 120.7, 86.2 and 82.2.

Averaging narrows the gap but leaves the regularized models ahead: 10 non-regularized LSTMs reach 80.0 on test, while 10 medium regularized LSTMs reach 72.0. The lowest test perplexity in the table, 68.7, comes from an average of 38 large regularized LSTMs.

## Frame accuracy on an Icelandic speech dataset

Acoustic models are evaluated by frame accuracy at each phonetic state, because word error rate would require a language model and decoder tuning for every change to the acoustic model. The internal Icelandic Speech dataset has 93k utterances, which is small enough that overfitting is a serious concern.

Validation frame accuracy rose from 68.9 for the non-regularized LSTM to 70.5 for the regularized LSTM. Training frame accuracy fell from 71.6 to 69.4 over the same comparison. The authors attribute the lower training accuracy to the noise added during training and read the higher validation accuracy as better generalization.

## English to French translation as language modeling

Training uses the selected subset of WMT’14 English to French data, which has 340M French words and 304M English words.

The translation LSTM has 4 hidden layers, with both the layers and the word embeddings at 1000 units. The optimal dropout probability for this model was 0.2.

With dropout, test perplexity fell from 5.8 to 5.0 and test BLEU rose from 25.9 to 29.03. The authors say this shows dropout improves the LSTM's translation performance, while the LSTM does not beat LIUM.

## Image caption generation

The dropout variant is applied to the caption model of Vinyals et al. (2014), where a pre-trained convolutional network maps the image to a vector that a single-layer LSTM turns into a caption. The convolutional network was not trained on the caption data, because that dataset (MSCOCO) is not large.

Dropout improves on the model without dropout, but an ensemble removes that gain. The authors conclude that in this setting dropout mainly produces a single model as good as an ensemble.

## Limits of the evidence

The speech results use frame accuracy only, not word error rate. The translation LSTM is below the phrase-based LIUM system in BLEU.

The authors expect the scheme to work well with other RNN architectures, but the experiments in the units use LSTMs only. The non-regularized baseline size was limited by design, so the size comparison is against deliberately constrained baselines. The caption model's convolutional network was not trained on the caption dataset.

## Paper info

- **Authors**: Wojciech Zaremba, Ilya Sutskever, Oriol Vinyals
- **Venue**: arXiv · Preprint
- **First published**: 2014-9-8
- **Added**: 2026-11-12
- **Updated**: 2015-2-19
- **Version**: v5
- **arXiv**: 1409.2329
- **Category**: cs.NE
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1409.2329v5) · [PDF ↗](https://arxiv.org/pdf/1409.2329v5)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Wojciech Zaremba, Ilya Sutskever, Oriol Vinyals (2014). Recurrent Neural Network Regularization. arXiv:1409.2329v5. https://arxiv.org/abs/1409.2329v5

**BibTeX**

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

## Related papers

- [Time Series Forecasting With Deep Learning: A Survey](https://refivu.com/en/papers/780d7359-7e46-4268-a1a4-b0f1171c7abd-time-series-forecasting-with-deep-learning-a-survey.md)
- [A Critical Review of Recurrent Neural Networks for Sequence Learning](https://refivu.com/en/papers/0e786415-0fad-4e73-b947-9aa88bb3aed0-a-critical-review-of-recurrent-neural-networks-for.md)
- [Pointer Sentinel Mixture Models](https://refivu.com/en/papers/8f7d0844-f517-4c18-ba24-8cd7dc616a74-pointer-sentinel-mixture-models.md)
- [Self-critical Sequence Training for Image Captioning](https://refivu.com/en/papers/04b028af-36f0-4ffd-b470-072e66a024c9-self-critical-sequence-training-for-image-captioning.md)
- [Recurrent Neural Networks for Multivariate Time Series with Missing Values](https://refivu.com/en/papers/04779a68-ae30-4f73-bc85-9bae7235eaaf-recurrent-neural-networks-for-multivariate-time-series-with.md)
- [Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation](https://refivu.com/en/papers/39efa06e-40cb-4fbe-91f7-de5aa5b6269d-google-s-neural-machine-translation-system-bridging-the.md)

## Other paper commentary

- [Distillation as a Defense to Adversarial Perturbations against Deep Neural Networks](https://refivu.com/en/papers/c5136527-4bfb-4b86-9a2a-78184dd93989-distillation-as-a-defense-to-adversarial-perturbations.md)
- [Progressive Neural Networks](https://refivu.com/en/papers/312c9749-ed9b-42c3-9bf3-bb139310d4dd-progressive-neural-networks.md)
- [Cyclical Learning Rates for Training Neural Networks](https://refivu.com/en/papers/922235f3-8c7b-4983-9a6d-b6a3d0b4a72e-cyclical-learning-rates-for-training-neural-networks.md)
- [Deep Learning and Its Applications to Machine Health Monitoring: A Survey](https://refivu.com/en/papers/8b968c5c-f4ea-4c3b-9ca4-f3e2b3ad82db-deep-learning-and-its-applications-to-machine-health.md)
- [A systematic study of the class imbalance problem in convolutional neural networks](https://refivu.com/en/papers/68d2ae65-6b32-4762-8915-c1b74804b262-a-systematic-study-of-the-class-imbalance-problem.md)
- [DeepFM: A Factorization-Machine based Neural Network for CTR Prediction](https://refivu.com/en/papers/d46f0084-9d39-4160-9e16-7e698dbfde00-deepfm-a-factorization-machine-based-neural-network-for.md)
- [SuperGlue: Learning Feature Matching with Graph Neural Networks](https://refivu.com/en/papers/9343403c-486b-4202-af8a-3329d26b1dad-superglue-learning-feature-matching-with-graph-neural.md)
- [NTU RGB+D: A Large Scale Dataset for 3D Human Activity Analysis](https://refivu.com/en/papers/5edff39c-c403-4be6-ac6f-5fbcfa1ca3f7-ntu-rgb-d-a-large-scale-dataset-for.md)
- [Improved Baselines with Visual Instruction Tuning](https://refivu.com/en/papers/3cfdbdfa-775a-4f66-9c2e-f6fc6c4b4e96-improved-baselines-with-visual-instruction-tuning.md)
- [CCNet: Criss-Cross Attention for Semantic Segmentation](https://refivu.com/en/papers/0b5bae85-f19c-40ec-85a8-6d588ce0497b-ccnet-criss-cross-attention-for-semantic-segmentation.md)
- [Semantics derived automatically from language corpora contain human-like biases](https://refivu.com/en/papers/abf5bfd6-5402-457c-958c-81fe475605f3-semantics-derived-automatically-from-language-corpora.md)

## Terms in this paper

- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [LSTM](https://refivu.com/en/terms/ba10547646d9-lstm)
- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [speech recognition](https://refivu.com/en/terms/6bb195b2a74a-speech-recognition)
- [BLEU score](https://refivu.com/en/terms/8bd8ba080d5f-bleu-score)
- [recurrent neural network (RNN)](https://refivu.com/en/terms/e24c4d3335b2-recurrent-neural-network-rnn)
- [frame accuracy](https://refivu.com/en/terms/027e1a9db8cd-frame-accuracy)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/317651d8-c32f-47cc-ad63-48860741508c-recurrent-neural-network-regularization)
