Long Short-Term Memory
1. Research problem
Vanilla recurrent networks cannot preserve information over long time lags because gradients vanish or explode through repeated multiplication.
2. Motivation
The authors wanted a recurrent cell with a protected memory path so that error signals could flow over many steps unchanged.
3. Previous approaches
Standard RNNs and earlier attempts at constant error flow lacked gating mechanisms that could decide when to store, forget, and expose memory.
4. Core contribution
Introduced the LSTM cell with a constant-error carousel and input, output, and forget gates that regulate memory updates and access.
5. Mathematical formulation
A cell state c_t follows c_t = f_t*c_{t-1} + i_t*g(c_t_input), with gates computed by sigmoid functions of input and hidden state; the derivative along the constant-error path is near one.
6. Methodology
Analysis of vanishing gradients plus gradient-based training on tasks requiring long-delayed credit assignment.
7. Architecture
Recurrent hidden units with additive cell state and multiplicative gates.
8. Experimental setup
Synthetic tasks with long time lags, a noisy sequence task, and early language/sequence prediction experiments.
9. Datasets
Synthetic benchmark sequences and small linguistic corpora.
10. Results
LSTM learned long-range dependencies that plain RNNs failed to capture, becoming the dominant architecture for sequence tasks for nearly two decades.
11. Limitations
Sequential computation prevents parallelization across time; many parameters; careful initialization and gradient clipping are often needed on hard tasks.
12. Critical analysis
A solution to an optimization bottleneck, not a new learning paradigm, whose design principles survive in modern gated models and even in state-space models.
13. Implementation tasks
- 1.Implement an LSTM cell from scratch and verify gradient flow on a long-lag memory task.
- 2.Compare LSTM, GRU, and vanilla RNN on a synthetic sequence with long dependencies.
- 3.Ablate the forget gate and measure the effect on long-range retention.
14. Follow-up work
- 1.Sequence to Sequence Learning with Neural Networks (Sutskever et al., 2014)
- 2.Neural Machine Translation by Jointly Learning to Align and Translate (Bahdanau et al., 2014)
15. Open research questions
- 1.Are gates necessary when attention can provide direct paths to past states?
- 2.How does LSTM memory compare to modern selective state spaces?