Term
self-attention mechanism
Meaning
An attention step that takes a matrix of hidden states and produces a set of normalized weight vectors over the sequence positions. Each weight vector is computed by passing the hidden states through a tanh projection and a second linear projection, with softmax applied across tokens. The weights are then used to form weighted sums of the hidden states.
How papers use it 6 papers
A Structured Self-attentive Sentence Embedding
Use Replaces max or average pooling as the way the sentence embedding is built from the LSTM hidden states. With r weight vectors, stacked as the rows of an annotation matrix A, each row of the sentence embedding focuses on a different part of the sentence. The authors motivate multiple hops by sentences whose meaning comes from several clauses. The attention MLP is given a hidden size of 350 for the Age and Yelp experiments and 150 for SNLI.
BEHRT: Transformer for Electronic Health Records
Use BEHRT's attention component, whose scores relate each diagnosis in a patient's history to the other diagnoses in that history. The authors use it to find relationships that go beyond temporal adjacency. They visualize the scores from the last layer by plotting each medical history against itself.
Meaning An attention mechanism in which each element of a sequence computes weights over all other elements of the same sequence, so that the scores capture relations between any pair of elements regardless of how close they are in order.
Real-World Humanoid Locomotion with Reinforcement Learning
Use Forms the core operation of the transformer policy, computing the action from embedded observation-action tokens. The attention is written as softmax(QK^T/√d_k)V, where d_k is the key dimensionality. The policy restricts attention to preceding tokens, so each prediction uses only past history.
Meaning A mechanism in which each output is a weighted sum of value vectors, with the weights obtained by comparing query vectors against key vectors through a softmax. Every element of a sequence can draw on the other elements, which lets the model relate positions that are far apart.
Dual Attention Network for Scene Segmentation
Use Used in DANet along two axes: spatial positions in the position attention module and channel maps in the channel attention module. The authors credit a machine translation work with the first use of this mechanism for global dependencies, and cite other attention applications as related background.
Meaning A mechanism that updates each element of a feature set as a weighted sum over all elements, with weights given by pairwise feature similarity, so that dependencies between distant elements are captured directly.
VisualBERT: A Simple and Performant Baseline for Vision and Language
Use VisualBERT relies on self-attention to link text tokens and image regions implicitly, without explicit alignment supervision. The paper measures grounding by inspecting per-head attention weights from words to regions, with attention to text tokens masked out, and checks syntactic sensitivity through dependency relations.
Meaning An attention operation in which each element of a sequence computes weights over the elements of that same sequence and forms a weighted mixture of their representations.
Federated Social Recommendation with Graph Neural Network
Use In FeSoG, the GAT layer is built on self-attention over a node's neighbors. Social-pair and user-item attention scores are computed from linear mappings of the node embeddings and normalized with softmax, and the same idea is applied again to weight the three relation parts during aggregation.
Meaning An attention mechanism in which each element's weight over a set of related elements is computed from the representations of those elements themselves, usually normalized with a softmax so the weights sum to one.