Sinusoidal encoding
The original method for telling a Transformer where each word sits in the sentence, using wave patterns (like sound waves). Each position gets a unique pattern of waves at different frequencies.
ⓘ Technical definition
PE(pos, 2i) = sin(pos / 10000^{2i/d_model}), PE(pos, 2i+1) = cos(pos / 10000^{2i/d_model}). Geometrically spaced frequencies allow the model to attend to relative positions via linear combinations.