LSTM (Long Short-Term Memory)
An improved recurrent network that solves the problem of memory fading. It is capable of remembering important information for a long time and forgetting unnecessary details.
Why Better Than RNN
A typical RNN 'forgets' early words in a long sequence. LSTM adds controlled memory — cell state — with three 'gates':
| Gates | Function |
|---|---|
| Forget gate | What to forget |
| Input gate | What to remember |
| Output gate | What to output |
Role in History
Until 2017, LSTM was the standard for text, translation, and speech. Then came the Transformer with attention and almost displaced LSTM from NLP — but LSTM is still encountered in signal processing and time series.