Depth-Gated Recurrent Neural Networks

Kaisheng Yao, Trevor Cohn, Katerina Vylomova, Kevin Duh, Chris Dyer

Abstract

In this short note, we present an extension of long short-term memory (LSTM) neural networks to using a depth gate to connect memory cells of adjacent layers. Doing so introduces a linear dependence between lower and upper layer recurrent units. Importantly, the linear dependence is gated through a gating function, which we call depth gate. This gate is a function of the lower layer memory cell, the input to and the past memory cell of this layer. We conducted experiments and verified that this new architecture of LSTMs was able to improve machine translation and language modeling performances.

Introduction

Deep Neural Networks (DNNs) have revolutionized fields like speech and vision, yet training them remains difficult due to the "vanishing and exploding gradient" problem. As a network gets deeper, the error signal used for training can dissipate or blow up as it back-propagates through many layers of non-linear transformations.

Standard LSTMs solved this problem for temporal sequences (horizontal depth) by using a memory cell with a "forget gate," creating a linear path for gradients to flow across time. However, when we stack LSTMs to create architectural depth (vertical depth), we typically pass the output of one layer as the input to the next. This forces the gradient to pass through the same non-linear bottlenecks that LSTMs were designed to avoid. The Depth-Gated LSTM (DGLSTM) extends the "linear highway" of the LSTM memory cell into the vertical dimension to bridge this gap.

Methodology: The Depth Gate

The core innovation of the DGLSTM is the depth gate ($d_t^{(L+1)}$), a new gating function that controls the flow of information from a lower layer's memory cell directly into the upper layer's memory cell.

Comparison between (a) Stacked LSTM and (b) Depth-gated LSTM architectures.

In a standard LSTM, the memory cell $c_t$ is a combination of the past memory and the new input. In a DGLSTM, the memory cell at layer $L+1$ also includes a gated contribution from the memory cell at layer $L$. This gate is a logistic function of the current layer's input, its past memory cell, and the memory cell of the layer directly below it. This design ensures that there is a gated, linear path for gradients to travel not just across time steps, but also vertically through the stack of layers.

Key Results and Insights

The DGLSTM consistently outperformed standard LSTMs and Gated Recurrent Units (GRUs) across multiple metrics. By connecting $c_t^{(L)}$ to $c_t^{(L+1)}$, the model allows the "memory" to persist across layers, providing a "highway" for gradients that makes it much easier to train very deep recurrent networks.

Performance comparison of GRU, LSTM, and DGLSTM across different network depths.
  • Machine Translation: In the BTEC Chinese to English task, DGLSTM outperformed both GRU and LSTM at depths of 3, 5, and 10 layers. Specifically, using DGLSTM for reranking improved the BLEU score by approximately 3 points over the baseline.
  • Language Modeling: On the Penn Treebank (PTB) dataset, the DGLSTM achieved a perplexity of 96. This was significantly better than standard RNNs (123) and LSTMs (117), representing one of the lowest perplexities reported on the PTB test set at the time of publication.

Conclusion

The DGLSTM provides a specific and effective implementation of gated skip-connections focused on memory-to-memory paths. While closely related to Highway Networks and Grid LSTMs, it offers a simplified approach to refining gradient flow in deep stacks. Future work will involve testing these depth-gating benefits on massive datasets and exploring their utility in domains like computer vision and speech synthesis.

Summary updated

BibTeX
@misc{yao2015depth,
  author = {Kaisheng Yao and Trevor Cohn and Katerina Vylomova and Kevin Duh and Chris Dyer},
  title = {{Depth-Gated Recurrent Neural Networks}},
  year = {2015},
  eprint = {1508.03790},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.03790},
}
Figure