Skip to main content
← Lab

ropeprecision

confirmedRustSystems, numerics & scientific librariesJuly 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

  • Result: confirmed
  • Pre-registered: the prediction was written down and committed before the run.
  • Reproducible: one script re-runs the whole thing from scratch.
  • Adversarial self-review: my own skeptic's pass over each claim, kept in the repo.
  • Machine-readable claims: every reported number, in a checkable file.
  • Tested: a correctness/benchmark suite ships alongside the code.

→ read the code and re-run it

github.com/v-code01/ropeprecision