Foundations / Architecture
verifiedLong Short-Term Memory
A recurrent cell with a deliberate path for information to travel a long way unchanged. Rather than rewriting its state at every step, it keeps a running cell state and uses learned gates to decide what to forget, what to add, and what to expose — so remembering something for a thousand steps is the default rather than an accident that survives.
The gates are the design and the cell state is the point. A plain recurrent network multiplies its state by a matrix at every step, which is exactly the repeated multiplication that destroys the gradient; the cell state is added to instead, so the path back through time has a multiplier near one. The simplified variants that merged the gates work nearly as well on most tasks, which suggests the specific gating was less important than having a linear path at all.
The forget gate sets the multiplier on the carried state, so a gate near one gives a near-identity path and the gradient survives an arbitrary number of steps along it. That converts an exponential decay into something the network controls — which is the same trick a residual connection plays in depth, arrived at eighteen years earlier and in time rather than in layers. Neither removes the problem; both give the optimiser a route around it.
gated-path holds 23% of the budget; rest holds the remaining 77%.
Steps over which the carried state passes near-unchanged, against the steps where it is rewritten, in steps. Drag the gated path up to watch memory survive the sequence — a forget gate near one is a near-identity route the gradient can travel.
Reviewed by opendroid · 2026-08-18
- arXiv:1406.1078 — Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
- arXiv:1211.5063 — On the difficulty of training Recurrent Neural Networks
Origin · not linkable
- Hochreiter & Schmidhuber 1997 — Long Short-Term Memory · Neural Computation 9(8) · doi:10.1162/neco.1997.9.8.1735