Positional Encoding: Re-injecting Sequence Order

Transformers use positional encodings—mathematical vectors added to input embeddings—to provide tokens with crucial relative and absolute position information, counteracting self-attention's context flattening.

Sources

Open the full topic