Depth-Gated LSTM

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

Abstract

Deep Recurrent Neural Networks (RNNs) face significant challenges in training due to the vanishing or exploding gradient problem as network depth increases. This paper introduces the Depth-Gated LSTM (DGLSTM), an architecture that incorporates a "depth gate" to facilitate information and gradient flow across layers. By establishing a gated, linear path between memory cells in adjacent layers—analogous to how standard LSTMs manage temporal flow—DGLSTM enables more effective training of deep recurrent structures. Experimental results on machine translation and language modeling demonstrate that DGLSTM consistently outperforms standard stacked LSTMs and Gated Recurrent Units (GRUs).

Introduction

While Long Short-Term Memory (LSTM) units have revolutionized sequential data processing by mitigating gradient issues over time, their performance often degrades when stacked into deep architectures. In a standard stacked LSTM, the output of one layer serves as the input to the next, requiring error signals to pass through multiple non-linear transformations during backpropagation. This frequently results in vanishing or exploding gradients, making it difficult for lower layers to learn effectively from the final output. The DGLSTM aims to solve this by creating a "highway" for gradients to travel vertically through the stack.

The Depth-Gated LSTM Architecture

The core innovation of the DGLSTM is the introduction of a depth gate ($d_t$), which extends the gating logic of LSTMs to the vertical dimension. In a standard LSTM, a forget gate controls the temporal flow of information from $c_{t-1}$ to $c_t$. Similarly, the DGLSTM's depth gate regulates the flow of information between memory cells of adjacent layers.

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

The depth gate is a logistic function that considers the current input, the previous memory cell of the current layer, and the memory cell of the layer directly below. Instead of merely passing a non-linear transformation of the hidden state upward, the DGLSTM creates a direct linear connection between the memory cell of layer $L$ and layer $L+1$, modulated by this gate. This allows gradients to bypass the gauntlet of non-linearities at every layer, facilitating deeper network training.

Experimental Evaluation

The DGLSTM was evaluated on two primary benchmark tasks: Machine Translation using the BTEC Chinese-to-English dataset and Language Modeling using the Penn Treebank (PTB) dataset.

Key Results

The DGLSTM demonstrated superior performance across varying depths compared to standard LSTMs and GRUs.

BLEU scores for GRU, LSTM, and DGLSTM at depths of 3, 5, and 10 layers.

As shown in the results, a 3-layer DGLSTM achieved a BLEU score of 34.48, significantly higher than the 32.43 achieved by a standard LSTM. Even at a depth of 10 layers, the DGLSTM maintained a performance edge (32.19 vs 31.99). In language modeling tasks on the PTB dataset, the DGLSTM reached a perplexity of 96, which was the lowest reported at the time of release, significantly outperforming standard LSTMs (117).

Discussion and Conclusion

The success of the DGLSTM highlights that gating is a powerful mechanism not just for temporal dependencies, but for spatial (depth) dependencies as well. By connecting memory cells rather than hidden states, the DGLSTM leverages the linear internal state of the cell to carry gradients across long vertical distances. While the DGLSTM offers clear performance benefits, it introduces additional parameters and computational complexity per layer. Future work could explore the application of depth-gating to other architectures, such as convolutional neural networks, to further validate the generalizability of gated linear paths in deep learning.

Summary updated

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