Chapter 04 · overview · 1 min read
Positional Information Beyond Sinusoids
The fixed sinusoidal encoding from Deep Learning was the original transformer's answer to "where is this token in the sequence?" — but it was never the only answer, and modern models mostly use something else. This section covers the alternatives and why they displaced it.
Topics in this section:
- Learned Positional Embeddings: treating position like any other token, with a vector learned from data.
- Relative Position and RoPE: encoding how far apart two tokens are instead of their absolute positions.
- ALiBi and Length Extrapolation: biasing attention directly by distance, to generalize past the training sequence length.