Skip to main content
← Lab

ropeprecision

confirmedRustSystems & data structuresJuly 6, 2026

the question

Does RoPE rotary positional encoding lose precision at long context?

what came out

Yes -- naive f32 error grows linearly with position (~3e-3 at 128k tokens). Reducing the angle mod 2pi in f64 fixes it entirely (>10000x better). Rust, f64 oracle, pre-registered.

method & receipts

→ read the code and re-run it

github.com/v-code01/ropeprecision