Practice free →
HomeClaudeaifoundationstransformer_attention › Scaled dot-product attention, per the paper, com…

Scaled dot-product attention, per the paper, computes the output as

Asoftmax(QKᵀ / √d_k) · V over the value tokens
BA simple element-wise product of Q and V tensors
CAn average of all value vectors with equal weights
DA direct lookup in the embedding table by token id
Answer & Solution
Correct answer: A. softmax(QKᵀ / √d_k) · V over the value tokens
Attention(Q, K, V) = softmax(QKᵀ/√d_k) · V. The √d_k denominator scales dot products to keep softmax in its sensitive region.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions