[Paper Review] Recurrent Neural Networks and Long Short-Term Memory Networks: Tutorial and Survey
This tutorial surveys RNNs, LSTMs, and variants, detailing dynamic systems, BPTT, gradient vanishing/explosion, and bidirectional architectures with GRU and ELMo context.
This is a tutorial paper on Recurrent Neural Network (RNN), Long Short-Term Memory Network (LSTM), and their variants. We start with a dynamical system and backpropagation through time for RNN. Then, we discuss the problems of gradient vanishing and explosion in long-term dependencies. We explain close-to-identity weight matrix, long delays, leaky units, and echo state networks for solving this problem. Then, we introduce LSTM gates and cells, history and variants of LSTM, and Gated Recurrent Units (GRU). Finally, we introduce bidirectional RNN, bidirectional LSTM, and the Embeddings from Language Model (ELMo) network, for processing a sequence in both directions.
Motivation & Objective
- Explain the dynamical systems basis of RNNs and how recurrence enables sequence processing.
- Describe the training via Backpropagation Through Time and the gradient issues in long-term dependencies.
- Discuss solutions to gradient vanishing/explosion, including close-to-identity matrices, long delays, leaky units, echo state networks, and architectural variants like LSTM and GRU.
- Introduce bidirectional RNNs/LSTMs and the Embeddings from Language Model (ELMo) as bidirectional sequence processors.
Proposed method
- Present the RNN formulation with shared parameters across time and the associated forward equations for state, input, and output (Eqs. 3–6).
- Derive BPTT and gradients for outputs, states, and all learnable parameters (Eqs. 8–22).
- Discuss gradient vanishing/explosion via chain-rule analysis (Eq. 24) and provide remedies including near-identity W, long delays, leaky units, and echo state networks.
- Describe LSTM gates and cells, and the role of input, forget, and output gates with peepholes in managing memory.
- Introduce bidirectional variants and ELMo as bidirectional language modeling foundations.
- Review of related tutorials and surveys to position this work within the literature.
Experimental results
Research questions
- RQ1How do RNNs model sequences through recurrence and parameter sharing?
- RQ2What causes gradient vanishing/explosion in RNNs during training, and how can these issues be mitigated?
- RQ3What architectures and mechanisms (LSTM, GRU, ESNs, leaky units, long delays) effectively capture short- and long-term dependencies?
- RQ4What is the role of bidirectionality and contextual embeddings (ELMo) in sequence processing?
- RQ5How do alternative RNN variants compare in handling sequential data tasks?
Key findings
- RNNs leverage recursive state updates to process sequences, with BPTT used for training (including time-unfolded backpropagation).
- Gradient vanishing and explosion arise from repeated nonlinear transformations, particularly for long sequences, challenging long-term dependency modeling.
- Solutions include close-to-identity or orthogonal weight matrices, long-delay connections, leaky units, and echo state networks to stabilize gradients.
- LSTM and GRU introduce gates that regulate memory and mitigate gradient issues, enabling better long-term dependency learning.
- Bidirectional RNNs and LSTMs enable processing sequences in both directions, with ELMo illustrating bidirectional language modeling for context-rich embeddings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.