An attention coefficient is a numerical weighting factor that indicates how strongly one input element or graph node should influence another. In a graph attention network, αvu weights node u when node v aggregates information, replacing the unweighted adjacency used by a graph convolutional network. section 11.3.2
Attention coefficients are computed and used through a short sequence:
- Calculate an unnormalized score between node features, using dot-product similarity or a learned attention mechanism. section 11.3.2
- Restrict attention to the node’s neighborhood rather than the entire graph. section 11.3.2
- Normalize the scores with softmax so coefficients remain comparable across neighborhoods. section 11.3.2
Multiple attention heads
With multi-head attention, different sets of coefficients can focus on different parts of the input. In the illustrated three-head example, node 5 uses α52, α54, and α55; the resulting head-specific embeddings are averaged. section 11.3.2
