Reproduce “Base of RoPE Bounds Context Length” 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
Xin Men, Mingyu Xu, Bingning Wang, Qingyu Zhang, Hongyu Lin, Xianpei Han, Weipeng Chen
Researchers from Baichuan Inc. and the Institute of Software, Chinese Academy of Sciences, introduce "long-term decay" as a critical property governing the effective context length of LLMs with Rotary Position Embedding (RoPE), showing that simply avoiding out-of-distribution angles is insufficient and deriving a power-law lower bound for the RoPE base parameter to achieve genuine long-context understanding.
Key insights
- "Superficial long context capability" means LLMs can achieve low perplexity on long contexts without genuinely understanding long-range dependencies.
- The "long-term decay" property, where the attention mechanism's ability to attend to relevant tokens degrades with increasing relative distance, is a fundamental limitation on effective context length, governed by the RoPE base.
- A specific theoretical lower bound for the RoPE base parameter (base ">= 0.0424 * L^1.628") is necessary for true long-context understanding, challenging the sole focus on avoiding out-of-distribution angles.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.