What core limitation of RNNs did attention mechanisms overcome for long sequences?
- RNNs required far too many parameters, which attention reduced by sharing a single weight matrix across all timesteps
- RNNs could only process fixed-length inputs, while attention was the first mechanism able to accept variable-length text
- RNNs compress the whole past into one fixed-size state, so distant information decays and processing stays sequential
- RNNs demanded labeled alignment data for every token pair, which attention removed by using unsupervised pretraining
Why
A recurrent network folds everything it has seen into a single fixed-size hidden state and updates it one step at a time, so information from an early token must survive many nonlinear updates to influence a later one, and gradients through those updates shrink, causing the vanishing-gradient problem. This both limits how far dependencies can reach and forces strictly sequential computation that cannot use the parallelism of GPUs across the sequence. Attention fixes this by letting any position read directly from any other position in a single step, giving constant path length and full parallelism. The too-many-parameters option misdiagnoses the problem: parameter count was not the core issue, and RNNs already share weights across timesteps. The fixed-length-input option is wrong, since RNNs handle variable-length sequences natively. The labeled-alignment option is wrong because RNNs do not require token-pair alignment labels, and attention weights are learned, not supervised. The real breakthrough was direct, learned all-to-all connections that remove the sequential bottleneck.