1The scaled dot-product attention mechanism uses query-key-value projections and divides dot-products by the key dimension to alleviate gradient vanishing.
“The scaled dot-product attention used by Transformer is given by¹
<u>QK</u> ⊤ Attention(Q*,* K*,*V) = softmax √ V = AV*,* (1) *𝐷𝑘*”