How does cross-attention differ from self-attention?
Reveal the answer and explore the explanation.
13MediumHigh priorityHow does cross-attention differ from self-attention?
Answer
MediumHigh priority
How does cross-attention differ from self-attention?
Answer
Computes queries from one representation and keys and values from another.
Practical example
Let a translation decoder attend to encoded source tokens.
Reference: Further reading ↗