Translations:Attention Is All You Need/12/en

    From Marovi AI
    Revision as of 00:32, 27 April 2026 by FuzzyBot (talk | contribs) (Importing a new version from external source)
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    where $ Q $, $ K $, and $ V $ are matrices of queries, keys, and values respectively, and $ d_k $ is the dimensionality of the keys. The scaling factor $ \sqrt{d_k} $ prevents the dot products from growing large in magnitude, which would push the softmax into regions with extremely small gradients.