Groups
Softmax turns arbitrary real-valued scores (logits) into probabilities that sum to one.
Scaled dot-product attention scores how much each value V should contribute to a query by taking dot products with keys K, scaling by \(\sqrt{d_k}\), applying softmax, and forming a weighted sum.