Recurrent Residual Learning for Sequence Classification

Yiren Wang, Fei TianEMNLP 2016

Introduction

Recurrent Neural Networks (RNNs), particularly Long Short-Term Memory (LSTM) units, are fundamental for processing sequential data. However, they face significant challenges with long-range dependencies; as sequences extend to hundreds or thousands of steps, propagating gradients backward through time becomes increasingly difficult due to vanishing or exploding gradients. While LSTMs employ complex gating mechanisms to mitigate this, these gates introduce a high parameter count and can be difficult to optimize for extremely long sequences.

This paper explores the application of Residual Learning—a concept that revolutionized computer vision by enabling extremely deep networks—to recurrent architectures. By introducing "identity shortcuts," the authors aim to facilitate direct information flow across temporal distances, improving memory and optimization efficiency.

Proposed Architectures

The authors propose three distinct architectures to integrate residual connections into recurrent models:

  1. Recurrent Residual Networks (RRN): This model replaces complex gating with a simple identity connection: $h_t = \text{tanh}(h_{t-1} + \mathcal{F}(h_{t-1}, x_t))$. The residual function $\mathcal{F}$ learns the state update, while the $h_{t-1}$ term ensures information can bypass the transformation unchanged.
  2. Skip-Connected LSTM (SC-LSTM): This architecture introduces a skip connection over a fixed distance $L$. Every $L$ steps, the hidden state from $L$ steps prior is added to the current state, creating a "fast track" for information to jump across long temporal spans.
  3. Hybrid Residual LSTM (HRL): This model combines a standard LSTM and an RRN in parallel, averaging their final hidden states. This hybrid approach leverages the LSTM's ability to dynamically "forget" irrelevant information alongside the RRN's stable historical flow.
Figure 1: The Skip-Connected LSTM (SC-LSTM) architecture showing identity shortcuts every L steps.

Experimental Setup

The models were evaluated across four sequence classification tasks with varying average lengths:

  • AG’s News: Short news articles (avg. length 34).
  • IMDB & 20 Newsgroups (20NG): Medium-length text for sentiment and category analysis (avg. lengths ~270).
  • Permuted-MNIST (P-MNIST): A rigorous long-range memory test where 784 pixels of an image are flattened and shuffled into a sequence.

Key Results and Discussion

The experimental results demonstrate that residual connections significantly enhance performance, particularly in long-range tasks. In the P-MNIST "stress test," the standard LSTM achieved 90.64% accuracy, while the SC-LSTM-I (Identity Skip) reached 94.80%.

Figure 3: Performance comparison of various models across four benchmark datasets.

Insights

  • Parameter Efficiency: The RRN achieved competitive accuracy with LSTMs while utilizing approximately half the parameters, making it highly suitable for resource-constrained environments.
  • The Forgetting Trade-off: While identity connections stabilize gradients, the authors found that a "forgetting" mechanism remains crucial. Pure RRNs can struggle to clear irrelevant historical data, which is why the Hybrid (HRL) and Skip-Connected models often perform better by balancing stability with flexibility.
  • Shortcut Robustness: Experiments with SC-LSTM indicated that shortcuts do not need to occur at every step; adding a connection every 20 to 50 steps was sufficient to boost performance on long sequences significantly.

Conclusion

By bringing the "skip connection" magic of ResNets to RNNs, this work provides a robust framework for handling extremely long sequences. The proposed SC-LSTM and HRL models consistently outperform standard LSTMs, proving that residual signals provide a critical historical anchor that standard gating mechanisms cannot maintain alone. Future work may extend these structures to sequence-to-sequence tasks like machine translation.

Summary updated

BibTeX
@inproceedings{wang2016recurrent,
  author = {Yiren Wang and Fei Tian},
  title = {{Recurrent Residual Learning for Sequence Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1093},
}
Figure