ALiBi (Attention with Linear Biases, Press et al. 2022) takes the most radical approach to position: skip positional embeddings entirely. Add a fixed linear bias to attention scores instead, where the bias is proportional to the distance between query and key positions:
Each attention head has its own slope m, drawn from a fixed geometric sequence (no training needed). Closer positions get higher scores; distant positions get penalized linearly. The model never sees a positional embedding at all — position lives only in the bias added to the attention logits.
What this buys you
- No positional parameters or computation at the input. ~11% less memory, ~11% faster training compared to learned PE.
- Excellent extrapolation. A model trained on 1024-token sequences runs at 2048 tokens with no quality degradation, just by extending the bias matrix.
- Dead simple. One subtraction in the attention computation.
ALiBi is used by BLOOM and MPT models. It's less popular than RoPE in 2026 because RoPE-with-YaRN scaling has caught up on extrapolation while keeping the relative-position-as-rotation elegance. Still worth knowing — the underlying insight (position can live in the bias, not the embedding) influenced subsequent research.