Tracing the very first mentions of "attention" and "self-attention" within the computational or neural network context is challenging due to the broad application of these concepts across various disciplines and the incremental nature of research developments. However, we can highlight some pivotal publications that were instrumental in formalizing and popularizing these ideas in the context of deep learning and neural networks.
Attention
The notion of attention has roots in psychology and cognitive science, where it's been a topic of study for over a century, relating to how humans selectively focus on parts of their visual field or thoughts. In computational models and neural networks, the idea of "focusing" on certain parts of the input data for processing has analogs in early works on selective visual attention in computer vision from the 1980s and 1990s.
However, one seminal work that introduced an explicit attention mechanism into the neural network model for machine translation is:
- "Neural Machine Translation by Jointly Learning to Align and Translate" by Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio (2014). This paper introduced an attention mechanism in the context of sequence-to-sequence models, allowing the model to focus on different parts of the input sequence when predicting each word of the output sequence. It marked a significant step in the application of attention mechanisms for natural language processing (NLP).
Self-Attention
Self-attention, a specific form of attention mechanism where the model attends to other parts of the input sequence in which it is predicting an output, also emerged prominently in the context of NLP. Before the Transformers model brought self-attention to the forefront, self-attention mechanisms were explored but not necessarily highlighted under the specific term "self-attention."
The Transformer model, introduced in:
- "Attention Is All You Need" by Ashish Vaswani et al. (2017), can be considered a pivotal work that not only introduced a novel architecture relying entirely on self-attention (or intra-attention) to process sequences, but also explicitly highlighted the term "self-attention" in a high-impact manner. This paper demonstrated the effectiveness of self-attention mechanisms across various tasks, setting a new standard for subsequent works in the field.
Earlier Uses
It's worth noting that attention-like mechanisms and the principles underlying self-attention might have appeared in earlier works under different guises or terms, especially considering the broad and interdisciplinary nature of these concepts. The research landscape is cumulative, where ideas evolve and get refined over time, and the naming conventions can sometimes lag behind the conceptual developments. Thus, while the papers mentioned above played a crucial role in popularizing and formalizing attention and self-attention mechanisms in deep learning, they are part of a larger tapestry of research efforts spanning several years.
Identifying the "first" paper to use what we now understand as self-attention is challenging, primarily because the concept could have been described using different terminology and because the idea might have been present implicitly in various forms before becoming explicitly recognized and named as such. However, by tracing the lineage of self-attention mechanisms in neural networks, we can highlight a few key papers that, while they may not have explicitly used the term "self-attention," contributed fundamentally to the development of the idea.
One early approach that shares similarities with self-attention mechanisms is found in work on content-based attention for recurrent neural networks (RNNs). These mechanisms allowed the model to focus on different parts of the input sequence (or its internal memory) based on the content, dynamically adjusting its focus as needed for generating outputs.
A direct precursor in spirit to self-attention mechanisms can be seen in the realm of associative memory and efforts to allow networks to reason over their inputs in a flexible manner. One such work is:
- "End-To-End Memory Networks" by Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus, presented at NIPS 2015. This paper introduced Memory Networks, which included mechanisms for the model to attend over its input sequence to produce an output, implementing a form of content-based attention over memory slots that is somewhat akin to self-attention.
The Memory Networks and their subsequent iterations, like Dynamic Memory Networks by Kumar et al., 2016, embody principles of self-attention by allowing a model to refer back to its input or internal memory and "focus" on relevant parts to make decisions or generate responses.
Moreover, the actual term and the modern interpretation of "self-attention" were popularized with the Transformers model in:
- "Attention Is All You Need" by Ashish Vaswani et al., 2017. Although it might not be the very first paper to conceptually use mechanisms similar to self-attention, it's undeniably the work that crystallized it into a clearly defined, highly impactful framework, using the term "self-attention" directly and demonstrating its powerful applications in neural networks.
In sum, while the seeds of self-attention can be seen in earlier works on neural models capable of dynamically focusing on different parts of their inputs or memory, the explicit and highly influential use of the concept, as it is understood today, was popularized by the Transformers paper.