Term
attention mechanism
Meaning
An attention mechanism that assigns weights to a set of input items according to their relevance to a query, so that the model draws more information from the most relevant items.
Source MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversations
How papers use it 23 papers
MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversations
Use In DialogueRNN, attention summarizes the conversational context into the party GRU through the global GRU, and it is applied on top of the emotion GRU so that the model can draw on contextual utterances from different speakers at various distances in the conversation.
Deep Interest Network for Click-Through Rate Prediction
Use The local activation unit in DIN shares its basic idea with attention: it weights each historical behavior by its relevance to the candidate ad. Unlike standard attention, DIN drops the softmax normalization, so the weights are not forced to sum to one and the overall intensity of user interest is kept.
Meaning A mechanism that scores parts of an input against a query and combines them into a weighted sum, with the weights typically normalized so they sum to one. It is commonly used in sequence models such as neural machine translation.
Attention Mechanisms in Computer Vision: A Survey
Use The survey's subject, treated as a weighting step f(g(x), x) over features.
Meaning A method that weights features adaptively so that the important parts of an input dominate the computation.
Deep Learning Based Text Classification: A Comprehensive Review
Use Used as a central building block of the attention-based models reviewed in Section 2.5, which identify correlated words and create new state-of-the-art results on text classification tasks. Described as the core of Transformers, which are built solely on attention and are used in pre-trained language models.
Meaning A mechanism that assigns importance weights to the elements of a sequence, so that a representation is computed as a weighted sum of the element values according to how strongly each element is related to a target position.
Time Series Forecasting With Deep Learning: A Survey
Use Attention weights select which lookback time steps feed the context vector.
Meaning A layer that weights past inputs by matching keys to a query and sums their values.
Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyond
Use Used in the baseline over the encoder hidden states to build a context vector at each decoding step. In the switching generator/pointer model, the attention distribution over input word positions is also used to choose a pointer, taking the position with the highest probability at each step.
Meaning A neural mechanism that assigns a weight to each encoder hidden state, usually based on its match with the current decoder state, and combines the weighted states into a context vector for the decoder step.
RGBT Salient Object Detection: A Large-scale Dataset and Benchmark
Use The core design element of the proposed Attention-based Deep Fusion Network, which weights the features of the RGB and thermal branches before they are fused, so that the network focuses on informative regions and suppresses cluttered background. The paper also reviews related pixel-wise contextual attention in PiCANet as prior work.
Meaning A mechanism in neural networks that assigns learned weights to features or positions so that the model emphasizes the most relevant parts of its input and suppresses the rest.
AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks
Use In the attentional generative network, each image sub-region queries the word vectors, and the resulting word-context vector is combined with the regional image vector to form a multimodal context for generating the next stage's features. This lets each sub-region draw on the words most relevant to it. The attention maps are visualized to show which words each stage attends to.
Meaning A mechanism that computes, for each query, a weighted combination of a set of feature vectors, with weights reflecting how relevant each vector is to that query.
Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizon
Use Described as a size-invariant technique, with parameter sharing used so that sets of different sizes can be processed. The paper uses it as the basis for building graph neural networks and as a general component for querying a set in a neural network.
Meaning A mechanism that handles a set of elements of varying size. For a given query, it scores each element with an affinity function, normalizes the scores, and returns the weighted sum of the element representations for downstream processing.
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
Use In GNMT the attention reads the output of the bottom decoder layer from the previous step and attends over the top encoder layer. The authors chose this connection so that the remaining decoder layers can run in parallel. On TPU decoding the attention module stays on the CPU and is not quantized.
Meaning A feed-forward attention function that, at each decoding step, scores the encoder outputs using the previous decoder state, normalizes the scores with a softmax, and forms a weighted sum of the encoder outputs as the context for the decoder.
Stacked Attention Networks for Image Question Answering
Use Adapted from image captioning to image QA. The question representation serves as the query over image region vectors. The paper notes that attention had not previously been explored for image QA, and it extends the mechanism with several stacked attention layers.
Meaning An attention mechanism assigns a set of weights to a collection of input vectors and forms a weighted sum, so the most relevant vectors dominate the result. The weights are typically computed from a query.
Graph Attention Networks
Use Serves as the motivating idea for the paper's architecture, which computes each node's hidden representation by attending over its neighbors. The paper notes that attention handles inputs of varying size and has been used alongside recurrent networks or convolutions in machine reading and sentence representation, and that it can suffice on its own for strong translation models.
Meaning A neural mechanism that scores parts of an input by relevance and uses those scores to weight and combine them. Because the weighting does not depend on a fixed input length, it can produce a representation from a variable number of elements. When it operates within a single sequence, it is called self-attention.
Neural Combinatorial Optimization with Reinforcement Learning
Use Serves as the basis of the pointing mechanism in the pointer network. A non-parametric softmax over encoder memory states, scored against the current decoder state, selects a position in the input sequence instead of an index from a fixed-size vocabulary.
Meaning A weighting scheme that scores a set of reference vectors against a query, turns those scores into a probability distribution, and lets the output draw on the references in proportion to those probabilities.
A COMPASS to the Galaxy: Joint nucleosynthetic yield set comparison and parameter inference in Galactic chemical evolution
Use In COMPASS the score network is a transformer that uses multi-head self-attention, and the learned attention weights are examined to judge whether the inferred parameters depend on physically meaningful abundance signatures. The authors inspect attention at an intermediate diffusion time, averaged over the Nissen et al. sample, and find that the IMF slope attends mainly to O and Mg, with some weight on C and Fe, while the SN Ia normalization attends mainly to C. They use this pattern as evidence for interpretability, not as a causal test.
Meaning A neural-network operation in which each element of an input sequence computes weights over all other elements, based on learned query and key vectors, and uses those weights to form a weighted combination of value vectors. The resulting weight pattern shows which inputs each output draws on most strongly.
Generative AI
Use Used in the description of transformers: the attention mechanism gives context for any position in the input sequence, and because transformers process the whole input at once, they do not need to read it step by step as recurrent networks do.
Meaning A neural network component that lets each position in an input sequence draw on information from the other positions by weighting their relevance. It gives every position a context-aware representation, and it is the core operation of transformer models.
Teaching Machines to Read and Comprehend
Use Used in the Attentive Reader to weight the bidirectional LSTM outputs for each document token, using a score computed from the query encoding. The resulting weighted sum forms the document representation. The Impatient Reader recomputes these weights at every query token, so the model gradually accumulates document information while reading the query.
Meaning A weighting over a set of token representations that assigns each token a normalised score, so that a model can concentrate on the tokens most relevant to the current input. The weighted sum of the token vectors then gives a single summary vector.
Effective Approaches to Attention-based Neural Machine Translation
Use Underlies the global and local models proposed here: at each target step, a context vector is formed as a weighted combination of encoder hidden states, and the resulting attentional vector goes to the softmax layer. In the WMT English-German experiments, attentional models gain up to 5.0 BLEU over non-attentional systems that already use dropout.
Meaning A mechanism that lets a sequence model weigh and combine a set of encoder hidden states at each decoding step, instead of relying on one fixed summary vector of the input.
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
Use Added as a variant of the BiLSTM baseline for sentence-pair tasks, which the authors argue moves the model beyond the sentence-to-vector paradigm. In the paper it has mixed effects on overall results, helps more in multi-task training than in single-task training, and has a larger influence on diagnostic scores than ELMo or CoVe.
Meaning A mechanism that computes interaction scores between every word in one sentence and every word in another, then uses them to build cross-sentence representations. Here the result is passed to a second BiLSTM with max pooling.
Attention-Based Models for Speech Recognition
Use Forms the core of the ARSG decoder, computing the alignment weights \(\alpha_i\) over the encoder frames at each output step. The paper contrasts content-based, location-based and hybrid variants of this mechanism, and its proposed changes modify how these weights are computed.
Meaning A component that assigns weights to a sequence of encoder representations so that each decoding step can focus on the relevant entries and combine them into a context vector.
Deep Learning on Graphs: A Survey
Use Used in GAT to replace the fixed or predetermined aggregation weights of GCN neighbours with weights learned during training. Used in HAN as a two-level scheme that applies node-level attention to meta-path-based neighbours and then semantic-level attention over meta-paths.
Meaning A mechanism that assigns learned weights to a set of inputs so that the more relevant inputs contribute more to a combined output.
Deep Learning for Sentiment Analysis : A Survey
Use Presented as a response to long-range dependencies that bidirectional RNNs and LSTMs still handle poorly. The survey draws an analogy to human visual attention and notes that Bahdanau et al. first applied it to machine translation in NLP, using an encoder-decoder with attention over a bidirectional RNN. The attention weights for each output are described as summing to 1 in the normal case.
Meaning A weighting mechanism in neural sequence models that lets each output step draw on a weighted combination of all input states. The weights indicate how strongly each input state should contribute to a given output, rather than relying only on a single fixed-length vector or the last state.
Beyond Part Models: Person Retrieval with Refined Part Pooling (and a Strong Convolutional Baseline)
Use Cited as the mechanism behind some deep part methods, such as those by Liu et al. and Zhao et al., which let the model choose where to focus. In this paper it serves as the comparison point for RPP. Training RPP without the induced first step makes the network learn its parts through attention, and the authors report that this performs worse than the induced version.
Meaning A learned weighting over spatial positions that lets a network decide which regions of its input or feature map to emphasize. It is not defined in the paper and is described here as general background.
Sequence to Sequence Learning with Neural Networks
Use Cited only as prior work. Graves introduced the mechanism, and Bahdanau et al. applied a variant of it to direct machine translation. The paper describes it in its related work and does not present it as a component of its own LSTM model.
Meaning A differentiable mechanism that lets a neural network weight and focus on different parts of its input while producing its output.