What is Long short-term memory?
In Turkish: Uzun kısa süreli bellek (LSTM) · Topic: Models and training
A type of recurrent neural network equipped with gate mechanisms that let it hold on to information for a long time. It was proposed in 1997 by Sepp Hochreiter and Jürgen Schmidhuber.
How does it work?
An LSTM cell carries a cell state in addition to the hidden state of a standard RNN; this works like a conveyor line along which information can flow through many steps almost unchanged. Gates control what enters the cell, what leaves it and what old information is forgotten. Based on the current input, the gates decide what to keep, what to erase and what to pass on. This design reduces how much the error signal vanishes as it travels back through time, making long-range dependencies easier to learn.
Why does it matter?
LSTM was one of the core building blocks of the period when deep learning made its mark in speech recognition and machine translation. It stopped being the leading choice once Transformers took over, but its ideas about memory and gating continue to influence later architectures.
Example
In a long sentence, remembering whether the subject at the start was singular or plural until the verb at the end is the kind of problem the LSTM's gates were designed to handle.
FAQ
What is the difference between an LSTM and an RNN?
An LSTM is a type of RNN; the difference is its gates and cell state. These let it carry information over long distances better than a plain RNN.
What does 'long short-term' mean?
The name refers to the fact that the short-term memory, meaning the hidden state, can be preserved for a long time. Although it is short-term memory, the gates let it persist across many steps.