Why do some neural networks need to remember what they just saw - and how do LSTMs solve the forgetting problem?
Standard neural networks have amnesia. LSTMs gave them a notepad.
The answer
Recurrent Neural Networks (RNNs) process sequential data by maintaining a hidden state that passes information from one time step to the next, making them ideal for language, speech, and time-series data. However, standard RNNs suffer from the vanishing gradient problem, losing the ability to learn long-range dependencies. In 1997, Sepp Hochreiter and Jurgen Schmidhuber introduced Long Short-Term Memory (LSTM) networks, which use gating mechanisms - input, forget, and output gates - to selectively retain or discard information over long sequences. LSTMs became the dominant architecture for speech recognition, machine translation, and text generation throughout the 2010s, until Transformers emerged in 2017.
Source: Neural Computation (MIT Press)
- recurrent neural networks
- lstm
- sequence modeling
More from AI & Machine Learning
- What radical question did Alan Turing ask in 1950 that launched the entire field of artificial intelligence?
- Can a machine fool you into thinking it's human - and does that mean it's truly intelligent?
- What happened at a small Dartmouth workshop in 1956 that gave artificial intelligence its name?
- How did a 1958 invention called the Perceptron convince people that machines could learn like brains?
- Could a 1966 chatbot really make people believe they were talking to a therapist?
- What was the first robot that could 'reason' about its own actions?