Scaling the Scores

One small divisor — √dₖ — sits inside the softmax. Without it, dot products in high dimensions grow large, softmax saturates, and gradients vanish. Here is why that factor is there.

Large Language Models: From Transformers to Frontier Models

Sign up free to read the rest of this lesson