LandmarkNeural Computation 1997Peer reviewedIntermediate

Long Short-Term Memory

Gave recurrent neural networks a memory cell with gates, so they could learn links between events more than 1,000 steps apart in a sequence, where the standard training methods of the time failed at 10.

Sepp Hochreiter, Jürgen Schmidhuber · Technische Universität München, IDSIA (Lugano)

TL;DR

LSTM adds memory cells whose contents are carried forward unchanged by a fixed self-connection, with multiplicative gates that decide when to write to the cell and when to read from it. Error signals can then flow back across long stretches of a sequence without fading away, so the network learns long-range dependencies.

01 · Problem

A recurrent neural network (RNN) reads a sequence one step at a time and feeds its own state back in, so in principle it can remember earlier inputs. In practice, when it is trained with backpropagation through time, the error signals passed back through the steps “tend to either (1) blow up or (2) vanish”. When they vanish, the network cannot learn that something early in a sequence matters for something much later.

02 · Method

Each memory cell is built around a “constant error carousel”: a linear unit connected to itself with a fixed weight of 1.0, so the error flowing through it stays constant over time. A multiplicative input gate protects the stored value from irrelevant inputs, and an output gate stops irrelevant memory contents from disturbing the rest of the network. The cost per time step and weight is O(1), the same order as standard training. This original version has no forget gate; that was added in later work.

03 · Key result

On artificial tasks built to need long memory, LSTM bridged minimal time lags “in excess of 1000 discrete time steps”, while the standard methods BPTT and RTRL already failed with 10-step lags. On the adding problem, which asks the network to sum two marked values in a long sequence, it made 0 wrong predictions out of 2,560 test sequences with a minimal lag of 500 steps. Against RTRL, BPTT, Recurrent Cascade-Correlation, Elman nets and Neural Sequence Chunking, the authors report that LSTM “leads to many more successful runs, and learns much faster”.

Why it matters

For close to two decades LSTMs were the main way neural networks handled sequences such as speech, text and time series. The next paper in this path, Sequence to Sequence Learning, is built from them. The gating idea, letting the network decide what to keep and what to pass on, still runs through modern architectures, even though Transformers have since replaced recurrence with attention for most language tasks.

Deep dive coming

This is a lite card. The full version adds the core idea in technical detail, the analysis of vanishing error, the full set of experiments, limitations and open questions.