Self-Attention
Quick definition
An attention operation that lets positions within one sequence exchange information with other positions in that sequence.
An attention operation that lets positions within one sequence exchange information with other positions in that sequence.
Self-attention uses queries, keys, and values derived from the same input sequence, with masks controlling which positions can interact.
Example: A sentence model connects a pronoun with an earlier noun while computing token representations.
Common use cases: Language models, document processing, and sequence encoders.
Examples
- A sentence model connects a pronoun with an earlier noun while computing token representations.
Use cases
- Language models, document processing, and sequence encoders.
Frequently asked questions
What is Self-Attention?
An attention operation that lets positions within one sequence exchange information with other positions in that sequence.
What should I know about Self-Attention?
Self-attention uses queries, keys, and values derived from the same input sequence, with masks controlling which positions can interact.