From "Can’t Remember Long Sentences" to "Attention Is All You Need"
When Bengio’s team first studied neural network language models, they found that recurrent neural networks, in translating long sentences, would gradually "forget" the key information at the start of the sentence as it grew longer, and translation quality declined. The attention mechanism they thereafter proposed let the model, in generating each word, dynamically "review" the information at all positions of the input sequence rather than relying on the step-by-step passing of a hidden state, an idea a Google team later carried to its extreme, proposing the Transformer architecture that wholly abandoned recurrent structure and relied only on self-attention, its paper titled the thereafter widely circulated "Attention Is All You Need."