Learn Before
Concept
Attention Functions Used in the Transformer Model
The Transformer model introduced in 'Attention is All You Need' relies on two attention functions: 1) Scaled Dot-Product Attention, which computes attention over a set of queries simultaneously by packing them into a matrix, scaling the query-key dot products, and applying softmax to produce a weighted sum of the values; and 2) Multi-Head Attention, which runs several scaled dot-product attention functions in parallel so the model can jointly attend to information from different representation subspaces at different positions.
0
1
Updated 2026-07-20
Contributors are:
Who are from:
Tags
Data Science