How RoPE Improves on Sinusoidal Positional Encoding

Sinusoidal encoding has a neat rotation property, but it breaks once the encoding goes through attention’s projection matrices. We expand the dot product to see why, then put RoPE through the same expansion and watch the absolute positions cancel out.

Date: September 13, 2026  |  Estimated Reading Time: 9 min  |  Author: Chi Zhang

Why Transformers Need Positional Encoding

Attention can’t tell “dog bites man” from “man bites dog”. We try integer, fractional and binary encodings, see where each one breaks, and arrive at sines and cosines: a set of clock hands spinning at different speeds.

Date: September 5, 2026  |  Estimated Reading Time: 9 min  |  Author: Chi Zhang