As of 2026-07-13
The dot product combines coordinate-wise products into a scalar and is used as a similarity score in attention. Its magnitude depends on vector norms, which is why scaled dot-product attention divides by the square root of key dimension.
Revision snapshot
Overview. The dot product combines coordinate-wise products into a scalar and is used as a similarity score in attention.
Context. Its magnitude depends on vector norms, which is why scaled dot-product attention divides by the square root of key dimension.