Transformer Architecture (2017) › The Problem
History of Language AIAll chapters Transformer Architecture (2017) › The ProblemOne section · Sections in this chapter2 / 7 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Despite the success of LSTM-based neural machine translation systems, researchers in 2017 were confronting fundamental limitations that stemmed from the sequential processing inherent in recurrent architectures. LSTM networks process sequences one position at a time, with each step depending on the previous step's computation. This sequential dependency created several critical bottlenecks that limited both the practical scalability of these models and their theoretical capacity to capture complex linguistic relationships.
The most significant limitation was the inability to parallelize training effectively. Because each position in an LSTM depends on the previous position's hidden state, the model must process sequences sequentially, preventing the use of parallel computation resources during training. On modern hardware with many parallel processing units, this sequential processing meant that most computational resources remained idle during training, dramatically reducing training efficiency. A sequence of length required sequential steps to process, even though modern GPUs and TPUs could perform thousands of operations simultaneously. This inefficiency became increasingly problematic as researchers sought to train larger models on larger datasets, where training time could stretch to weeks or months even with the best available hardware.
Long-range dependencies remained challenging despite the introduction of attention mechanisms in encoder-decoder models. While attention helped the decoder focus on relevant encoder states, the encoder itself still processed sequences sequentially, potentially losing information about distant relationships. LSTM networks struggled to maintain information about positions that appeared many steps earlier in the sequence, particularly for very long sequences. The gating mechanisms in LSTMs helped mitigate this problem, but they didn't eliminate it entirely. When translating or processing long documents, the model's ability to connect information from the beginning and end of the sequence remained limited.
The computational complexity of sequential processing also limited scalability. Processing a sequence of length through an LSTM requires sequential operations, with each operation depending on the previous one. While this linear complexity seems reasonable, the sequential nature meant that these operations couldn't be parallelized, and the memory requirements for maintaining hidden states across long sequences could become prohibitive. As researchers attempted to train models on longer sequences or with more parameters, these limitations became increasingly constraining.
Attention mechanisms, as used in encoder-decoder architectures, addressed some of these issues but introduced their own limitations. The attention mechanism in these models connected encoder and decoder states, but the encoder still used sequential processing, and attention computation added overhead to the decoding process. The attention weights had to be computed for each decoding step, which meant that generating long sequences required many sequential attention computations. While this was better than earlier encoder-decoder models without attention, it still didn't use attention to its full potential.
Memory limitations also constrained recurrent models. LSTM networks maintain hidden states that grow with sequence length, and the need to maintain gradients through the entire sequence during backpropagation through time created substantial memory requirements. For very long sequences, this could exhaust available GPU memory, forcing researchers to use shorter sequences or smaller batch sizes, both of which could reduce model performance. The memory overhead of recurrent processing limited the practical sequence lengths that could be handled effectively.