04 · 1997 · A network with memory
Everything so far looks at its whole input at once. Language arrives one piece at a time, and what a word means depends on what came before. A recurrent network reads in order and carries a memory (its hidden state) from one step to the next.
The LSTM, invented by Sepp Hochreiter and Jürgen Schmidhuber in 1997, adds three gates that decide what to forget, what to write and what to reveal. This one has 112 memory cells and learned to predict the next letter from the element stories on OneLab’s Periodic Table.
How it works
Text so far
Memory cells (each square = one cell, blue negative · amber positive)
Gates (dark = closed, bright = open)
Next letter guesses