1. Home
  2. Artificial Intelligence
  3. Generative AI
  4. In a Transformer decoder layer, where do the Queries (Q)…

Added 11 Nov 2026

In a Transformer decoder layer, where do the Queries (Q), Keys (K), and Values (V) originate during Cross-Attention?

  1. All from decoder
  2. Q from decoder, K and V from encoder Correct answer
  3. All from encoder
  4. Q from encoder, K and V from decoder

Correct answer

B. Q from decoder, K and V from encoder

10 views

MCQSEXAM

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

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Generative AI MCQs

Practise all Generative AI MCQs

Similar MCQs