type concept
domain deep learning
status stub
Self-attention
Each token builds its representation as a weighted mix of every other token in the sequence.
Prerequisites
[[Softmax]] [[Dot product]]
Appears in
- [[2017 - Attention Is All You Need]] introduced as scaled dot-product attention
- [[2018 - BERT]] bidirectional, in every encoder layer
- [[2020 - GPT-3]] masked so each token sees only the past
- [[2020 - Vision Transformer]] over image patches instead of words