Paper commentary
Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling
Gated recurrent units beat plain tanh units on sequence modeling tasks
- Problem Plain recurrent networks lose long-term dependencies during training because gradients vanish or explode. Gradient-based training therefore stalls on the dependencies that matter most.
- Method The authors compare LSTM and GRU gated units against a plain tanh unit at matched size. Gating lets a unit keep its existing memory instead of overwriting it at each time step.
- Results Both gated units clearly beat the tanh unit on both Ubisoft speech datasets, with the LSTM best on Ubisoft A.
Why plain recurrent units struggle with long dependencies
A recurrent network carries a hidden state forward, so each new state depends on the one before it. A generative version turns that state into a probability distribution over the next element, and the probability of the whole sequence is the product of these conditionals.
Training this is hard, because gradients tend to vanish most of the time and occasionally explode with severe effects. The influence of a long-term dependency shrinks exponentially with sequence length, and short-term effects drown it out. Gradient-based training therefore stalls on exactly the dependencies that matter most.
Researchers have tried two broad fixes. One changes the learning algorithm, for example by clipping the norm of the gradient or by using second-order methods. The authors pursue the other fix: a richer hidden unit that applies gates to an affine transformation followed by an element-wise nonlinearity. Gating lets a unit decide whether to keep its existing memory, instead of overwriting it at each time step.
Gated units keep memory by adding to it
The key idea is that both gated units keep their existing state and add new content on top of it, instead of replacing the state at every step. That additive update creates shortcut paths, so the error can flow back through many steps without vanishing quickly. A feature the gates decide to keep is not overwritten, so it survives over a long series of steps.
The LSTM unit keeps a memory cell \(c_{jt}\), updated as \( c_{jt} = f_{jt} c_{j,t-1} + i_{jt} \tilde{c}_{jt} \). The forget gate \(f_{jt}\) decides how much of the old memory survives, and the input gate \(i_{jt}\) decides how much of the new candidate \(\tilde{c}_{jt}\) is added. The output gate \(o_{jt}\) then scales what the unit exposes, through \( h_{jt} = o_{jt} \tanh(c_{jt}) \).
Each gate also reads the memory cell through a diagonal matrix.
The GRU drops the separate memory cell and blends its state directly. Its activation is \( h_{jt} = (1-z_{jt}) h_{j,t-1} + z_{jt} \tilde{h}_{jt} \), where the update gate \(z_{jt}\) sets how far the unit moves toward the candidate. The reset gate \(r_t\) scales the previous state before it enters the candidate \( \tilde{h}_{jt} = \tanh(W x_t + U(r_t \odot h_{t-1}))_j \).
The authors placed the reset gate slightly differently from Cho et al., and found that both placements performed about the same.
The two units differ in what they expose. The LSTM output gate controls how much memory the rest of the network sees, while the GRU exposes its whole state. In the LSTM the input and forget gates act separately, whereas in the GRU the update gate ties the new content and the forgetting together.
Tasks, datasets and matched model sizes
Each model is trained to maximize the log-likelihood of the training sequences, one next-element prediction at a time. Results are scored as average negative log-probabilities on the training and test sets, so lower values mean a better fit.
The music experiments use Nottingham, JSB Chorales, MuseData and Piano-midi.
The speech experiments use two internal Ubisoft datasets of raw one-dimensional audio. At each step the network looks at 20 consecutive samples and predicts the next 10, with a mixture of 20 Gaussians as output. Ubisoft A has sequences of length 500 and 7,230 sequences, while Ubisoft B has sequences of length 8,000 and 800 sequences.
The authors chose each model size so that the three units have about the same number of parameters, which keeps the comparison fair.
Each model was trained with RMSProp and weight noise whose standard deviation is fixed to 0.075. The gradient norm is rescaled to 1 whenever it is larger than 1, to prevent exploding gradients. The validation set also drove early stopping.
Music and speech results
On the music datasets the three units stayed close to each other. The GRU had the lowest test negative log-probability on JSB Chorales, MuseData and Piano-midi. On these music datasets the GRU also made faster progress per update and per wall clock time.
Both gated units clearly beat the tanh unit on both Ubisoft datasets. So the gap to the tanh unit is far larger on raw speech than on the music sets.
The tanh unit is cheaper per update, but it made little progress with each update. It eventually stopped improving at a much worse level than the gated units. The authors take this as evidence that gating helps convergence and the final solutions.
Limitations
The authors call their experiments preliminary. They say more thorough experiments are needed to separate the contribution of each gating component.
The better gated unit changed by dataset: the GRU won on JSB Chorales, MuseData, Piano-midi and Ubisoft B, while the LSTM won on Ubisoft A. So the choice between the two may depend on the dataset and the task.
The study covers only polyphonic music and raw speech tasks. Whether the same ranking holds on other tasks, such as machine translation, was not tested.
Paper info
- Authors
- Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, Yoshua Bengio
- Venue
- arXiv · Preprint
- First published
- 2014-12-11
- Added
- 2026-11-11
- Updated
- 2014-12-11
- Version
- v1
- arXiv
- 1412.3555
- Category
- cs.NE · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, Yoshua Bengio (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv:1412.3555v1. https://arxiv.org/abs/1412.3555v1
BibTeX
@misc{chung2014empirical,
title = {{Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling}},
author = {Junyoung Chung and Caglar Gulcehre and KyungHyun Cho and Yoshua Bengio},
year = {2014},
eprint = {1412.3555},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1412.3555v1}
}