The 16.8M collision is real arithmetic, but in most deployed stacks it could stay theoretical: servers cap total sequence length (prompt plus generation), so the position that reaches RoPE never gets near 2^24, whatever the window does. The exception worth watching is open-ended streaming on a rolling cache, where the position counter is absolute and keeps climbing while the window slides — there the cap is the stream’s lifetime, not the context size. The rounding that can matter sooner sits in the product, and only at the top of the frequency range: the fastest pair’s angle is roughly the position itself, so at a million tokens one fp32 step in that angle is about an eighth of a radian, while the slowest pairs’ angles are so small their rounding is unmeasurable. The clean comparison is to change nothing but the angle arithmetic — compute position × frequency in float64, cast the cosines and sines back to fp32, and run needle retrieval and perplexity against position on the same model and prompts: if the curves coincide, fp32 angles are not the long-context problem, and any gap that widens with position is the rounding, isolated from everything else.
Has anyone measured whether 32-bit floating-point rounding in rotary position embeddings affects long-context inference?
No published measurement yet establishes whether 32-bit floating-point rounding in rotary position embeddings (RoPE) degrades long-context inference, according to an analysis of the arithmetic. The an…