CS PAPERS DEEP-READ · PAPER 7

Long Short-Term Memory (LSTM)

Hochreiter & Schmidhuber · Neural Computation · 1997

中文 →

What did this paper do?

Before ChatGPT, the things in your phone that could listen and translate — voice assistants, Google Translate, handwriting recognition — mostly had the same 1997 invention inside: LSTM (Long Short-Term Memory). This paper gave AI a memory device that can remember things from long ago, and it ruled "process things in order" AI for a full twenty years.

First, a puzzle

Sentences and speech must be read in order, one piece at a time. The "memory networks" of the day played a game of telephone: on each new word, they took everything remembered so far, kneaded it all over again, and mixed the new word in. After a dozen rounds of kneading, whatever was said at the start is unrecognizable. Worse, you couldn't even teach them: AI learns by "tracing blame backward after a mistake," and that blame signal also fades station by station as it travels back — gone after a few dozen steps. So the network could never learn long-distance accounting like "the mistake at the end was caused by something at the beginning."

The idea

LSTM's idea: stop letting memory get kneaded at every step. Give the network a protected memory conveyor belt: whatever is placed on it is carried forward exactly as is — never kneaded, never rewritten — no matter how far it travels.

How the gatekeepers work

A conveyor alone isn't enough — dump everything onto it and it becomes a junkyard. So each memory slot gets two gates, and the gatekeepers are learned by the network itself: the write gatekeeper decides "is this piece of information worth recording?", and the read gatekeeper decides "should the stored stuff be taken out and used right now?" Most of the time both gates stay shut and the contents ride along untouched; only at the right moments do the gates open to write or read. There's a second payoff: because the belt never kneads anything, the backward "blame" signal can also travel smoothly all the way back to long ago — long-distance accounting finally works.

What it brought

For the next twenty years, almost every best-in-class system for "one step at a time" work — understanding speech, translating text, reading handwriting — had LSTM inside: Google voice search, Google Translate, and Siri all used it. One honest note: it must compute strictly step by step, so it's slow, and its memory is far from unlimited — in 2017 the Transformer, where all words look at each other directly, took over.

Remember one thing

Give a neural network a memory conveyor belt that carries things forward untouched, plus a write gate and a read gate that learn when to open — distant information survives, the correction signal travels back, and AI could truly remember things from long ago for the first time — ruling sequence tasks for twenty years.

Want the memory-cell diagram, the formulas, and the 1000-step experiments? → switch to the deep read