QUESTION 13 OF 15

How does cross-attention differ from self-attention?

Reveal the answer and explore the explanation.

13
MediumHigh priority

How does cross-attention differ from self-attention?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As