softmax
English · noun
Examples, page 1
- The un-embedding layer is a linear-softmax layer:\mathrm{UnEmbed}(x) = \mathrm{softmax}(xW + b)The matrix has shape (d_{\text{emb}}, |V|). — Wikipedia: Transformer (deep learning) (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
- \begin{align} \text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^\mathrm{T}}{\sqrt{d_k}}\right)V \end{align} where the softmax is applied over each of the rows of the matrix. — Wikipedia: Transformer (deep learning) (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
- \begin{align} \text{MaskedAttention}(Q, K, V) = \text{softmax}\left(M + \frac{QK^\mathrm{T}}{\sqrt{d_k}}\right)V \end{align} The following matrix is commonly used in decoder self-attention modules, called "causal masking": — Wikipedia: Transformer (deep learning) (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
This page in Markdown https://md.dictionary.elamur.ai/free/en/english/softmax/examples/1/