Overcoming the vanishing gradient problem in plain recurrent networks

Yuhuang Hu, Adrian E. G. Huber, Jithendar Anumula, Shih-Chii LiuarXiv 2018

Introduction

Recurrent Neural Networks (RNNs) are fundamentally designed to process sequential data. However, they have long been plagued by the vanishing gradient problem. As signals propagate through numerous time steps, gradients often decay exponentially, preventing the network from learning long-range dependencies. To circumvent this, the field transitioned toward complex gated architectures such as Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU). While effective, these gates introduce significant computational overhead and increase parameter counts. This paper introduces the Recurrent Identity Network (RIN), a simplified architecture that achieves the stability of gated networks within a "plain" RNN framework.

The Recurrent Identity Network (RIN)

The core innovation of the RIN is a subtle yet powerful modification to the standard RNN hidden state update. In a traditional RNN, the hidden state $h_t$ is computed as: $h_t = \sigma(Wx_t + Uh_{t-1} + b)$

The RIN reformulates this update by incorporating a non-trainable identity matrix $I$ into the hidden-to-hidden weights: $h_t = \text{ReLU}(Wx_t + (U + I)h_{t-1} + b)$

By embedding this identity matrix, the network is inherently biased toward an identity mapping. This ensures that the default behavior of the network is to preserve the previous state perfectly. The trainable weights $U$ are then tasked only with learning the "residuals" or necessary updates to the representation. This design is motivated by Iterative Estimation (IE) theory, which posits that deep networks are more effective when they iteratively refine representations rather than performing wholesale transformations at each step.

Average estimation error over time steps, illustrating the identity mapping bias.

Experimental Evaluation

The authors benchmarked the RIN against LSTMs and Identity-initialized RNNs (IRNNs) across several challenging tasks, including the Adding Problem, Sequential/Permuted MNIST, and the bAbI reasoning suite.

Key Results

The RIN demonstrated superior performance and efficiency across all benchmarks. Notably, the RIN achieved roughly 1/4th the parameter count of an equivalent LSTM, significantly reducing computational costs.

Training performance (MSE) of RIN compared to IRNN and LSTM across different sequence lengths.
  • Convergence Speed: As shown in the training curves, the RIN consistently converges faster than both LSTMs and IRNNs, particularly as the sequence length $T$ increases.
  • Accuracy Gains: On MNIST tasks, small RIN models outperformed IRNNs by 12% to 67% in accuracy. On the bAbI reasoning tasks, the RIN achieved a mean performance of 52.6%, surpassing previous specialized models.
  • Gradient Stability: Through a "Deep Transition" variant (RIN-DT), the authors verified that gradient signals remain viable for over 1,500 steps, confirming that the vanishing gradient problem is effectively mitigated.

Conclusion

The Recurrent Identity Network proves that complex gating mechanisms are not strictly necessary for stable long-range learning in RNNs. By hard-coding an identity bias, the RIN achieves the benefits of gating—implicit identity mapping—with a fraction of the parameters. While sensitive to initial learning rates due to the use of ReLU, the RIN offers a highly efficient and high-performing alternative for sequential modeling, especially in resource-constrained environments.

Summary updated

BibTeX
@misc{hu2018overcoming,
  author = {Yuhuang Hu and Adrian E. G. Huber and Jithendar Anumula and Shih-Chii Liu},
  title = {{Overcoming the vanishing gradient problem in plain recurrent networks}},
  year = {2018},
  eprint = {1801.06105},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.06105},
}
Figure