Jargonautica
Other Kinds of Neural Network

Long Short-Term Memory

Also called: LSTM

A kind of neural network designed to remember information over long stretches of a sequence, such as words in a sentence or readings over time. Earlier networks of this type tended to forget after a few steps. Long Short-Term Memory (‘LSTM’) networks add small gates that decide what to keep, what to forget and what to pass on, and they powered speech recognition and translation for years before transformers took over.

Technical view

A Recurrent Neural Network (‘RNN’) variant introduced by Hochreiter and Schmidhuber in 1997. A cell state carries information forward through mostly additive updates, controlled by sigmoid input and output gates and, from Gers and colleagues in 2000, a forget gate; the additive path lets gradients survive many steps and mitigates vanishing gradients. Variants include peephole connections and the simpler Gated Recurrent Unit (‘GRU’). Strengths are constant memory per step and natural streaming; weaknesses are sequential computation that resists parallel training and weaker long-range recall than attention. Recurrent ideas have returned through state space models.


Part of AI Terminology Index, section: Other Kinds of Neural Network.

How it connects

Long Short-Term Memory links to 5 other terms. The faint lines are links between those terms. See it in the full graph.

Recurrent Neural NetworkRecurrent Neural Ne…TransformerTransformerVanishing and Exploding GradientsVanishing and Explo…State Space ModelState Space ModelTime Series ForecastingTime Series Forecas…Long Short-Term Memory