Why scale# Dot products grow with dimension dkd_kdk, so scores are divided by dk\sqrt{d_k}dk to keep softmax gradients healthy.