The recurrent net that could finally remember. An LSTM carries a cell state down the sequence through a nearly-untouched channel — the constant error carousel — guarded by three gates: forget (what to erase), input (what to write), output (what to read). When the forget gate stays near 1, information (and its gradient) rides for hundreds of steps without vanishing. It powered sequence modeling for two decades before transformers.
The demo runs the constant error carousel: a forget gate of 1 keeps the cell state intact for 50 steps: live demo
“LSTMs solved the vanishing gradient entirely.” — the carousel greatly mitigates it, but very long ranges still degrade; attention ultimately replaced it. cited
A channel the gradient can ride for a long time. recurrence
On i-13, forget gate 1 keeps the cell state at 100 across 50 steps; forget gate 0 resets it to 0: