What RNNs get wrong
Recurrent neural networks process sequences one token at a time, passing a hidden state forward. Two fundamental problems:
- Sequential bottleneck: each step depends on the previous one β you cannot parallelize across time. Training on long sequences is painfully slow on modern GPUs built for parallelism.
- Long-range forgetting: information from step 1 must survive through hundreds of hidden-state updates to influence step 500. Even LSTMs with their gating mechanisms lose distant context in practice β the hidden state is a fixed-size vector being rewritten at every step.
The 2017 paper Attention Is All You Need (Vaswani et al.) replaced recurrence entirely. Instead of forcing all context through a sequential bottleneck, attention lets every token directly attend to every other token in one parallel operation. Training became orders of magnitude faster; long-range dependencies became trivial.
