1. Home
  2. Artificial Intelligence
  3. Generative AI
  4. What is the formula for scaled dot-product attention?

Added 11 Nov 2026

What is the formula for scaled dot-product attention?

  1. softmax(QKᵀ)V
  2. softmax(QKᵀ/√d_k)V Correct answer
  3. softmax(QVᵀ)K
  4. softmax(KVᵀ)Q

Correct answer

B. softmax(QKᵀ/√d_k)V

13 views

MCQSEXAM

Explanation

Attention(Q,K,V) = softmax(QKᵀ/√d_k)V. Source: GitHub (PyTorch teacher exam), Q1.

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