Practice free →
HomeClaudeaifoundationstransformer_attention › The √d_k scaling in scaled dot-product attention…

The √d_k scaling in scaled dot-product attention exists to

AMatch the dimensionality of the value vector input
BSpeed up the matrix multiplication on TPU hardware
CPrevent dot products growing large and starving softmax
DAvoid integer overflow on GPU floating-point math
Answer & Solution
Correct answer: C. Prevent dot products growing large and starving softmax
Without scaling, dot products grow proportional to d_k, pushing softmax into saturation where gradients vanish. Dividing by √d_k keeps the softmax in its sensitive region.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions