A standard neural network looks at one input and produces one output. Show it the word bank, and it answers based on that word alone — context be damned. A recurrent neural network (RNN) does something cleverer: it routes its own output back to itself as an additional input. That loop threads a hidden state — a small vector of numbers — through every step of the sequence, so each new token is interpreted in the light of everything that came before.
The idea is old. In 1982 John Hopfield described feedback networks for associative memory; by the late 1980s researchers were training RNNs on sequences with backpropagation through time (BPTT), unrolling the loop step by step into a very deep network, then running gradient descent backwards. The architecture unlocked speech recognition, handwriting generation and language modelling — tasks where order matters and context stretches across many tokens.
The catch arrived quickly. Gradients flowing backwards through dozens or hundreds of time steps tend to shrink exponentially — the vanishing-gradient problem — or explode — the exploding-gradient problem. Either way, the network loses its grip on events far back in the sequence. That single flaw has shaped almost every advance in sequence modelling since.
Comments
Loading comments...