Reproduce “Anti-Periodic Positional Encoding: Möbius Boundary Conditions Make In-Context Retrieval Reliable” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ji Ho Bae

Möbius RoPE, an anti-periodic positional encoding from JRTI, Seoul, dramatically reduces the across-seed variance of in-context retrieval performance in small-scale language models. This zero-cost intervention raises the worst-performing 160M model's needle-in-a-haystack accuracy from 14% to 86% and reduces variance by 30.8x at a context of 512 tokens.

Key insights

  • The anti-periodic boundary condition (holonomy -1) of Möbius RoPE is the critical factor for improving retrieval reliability, rather than merely the frequency band used.
  • Deterministic geometric interventions can serve as scaffolds to consistently guide the emergence of retrieval circuits during pretraining, stabilizing otherwise stochastic emergent behaviors.
  • The benefits of this positional encoding are most evident in smaller models (160M parameters) and specifically for single-needle passkey retrieval tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.