Skip to content
- Home
- Artificial Intelligence
- Generative AI
- In a Transformer decoder layer, where do the Queries (Q)…
In a Transformer decoder layer, where do the Queries (Q), Keys (K), and Values (V) originate during Cross-Attention?
-
A
All from decoder
-
B
Q from decoder, K and V from encoder
Correct answer
-
C
All from encoder
-
D
Q from encoder, K and V from decoder
Correct answer
B. Q from decoder, K and V from encoder
10 views
Explanation
Q comes from the decoder, while K and V come from the encoder output. Source: GitHub (ai-roadmap-365), Q2.
Reference
Asked in: General
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
Need help? Find an MCQ, a short question, a test or your certificate. Just ask.