Introduction
LSTMs and GRUs are gated recurrent networks.
They keep the step-by-step nature of RNNs but add gates that control what to keep, what to write, and what to expose. These gates made recurrent models more capable on longer sequences.
The point here is not to memorize every equation. The point is to understand why gates were introduced: ordinary RNNs overwrite memory too easily and send gradients through difficult paths.
What this chapter covers
- why gates help;
- LSTM memory cell;
- forget, input, and output gates;
- GRU update and reset gates;
- gated recurrence as an attention precursor.