Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings
Summary
Argues explicit PEs speed pretraining (NoPE has slower positional-bias gradients) but RoPE-scaling (YaRN/NTK/PI) must compress low frequencies, shifting semantic heads so zero-shot long context matches a cropped-window baseline on NIAH. DroPE trains with RoPE, drops PEs, then recalibrates at the original context. From-scratch 0.5B on 16B FineWeb: last 2B tokens without PE matches full-RoPE perplexity and beats YaRN/NTK/ALiBi/NoPE on RULER NIAH at 2x. SmolLM-360M (600B pretrain): 30-120B recalibration recovers in-context benches; LongBench avg 30.52 vs YaRN 19.94, NIAH 74.92 vs 48.25. SmolLM-1.7B (20B rec, 2 percent of pretrain) and Llama-2-7B (20B, 0.5 percent) also beat YaRN/NTK. NIAH at 8x: DroPE 52.20 vs YaRN 12.18 / LongRoPE2 16.45.
- Venue
- arXiv / Sakana AI
- Source
- arxiv
- Access
- free
- License
- CC BY 4.0
- License family
- Permissive
- Language
- en
- Hugging Face
- SakanaAI/Llama-2-7b-hf-DroPE
- Purpose
- Extend pretrained LM context zero-shot by removing rotary embeddings after pretraining and briefly recalibrating at the original length
- Scale
- 494M FineWeb 16B tokens (2B DroPE); SmolLM-360M 30/60/120B recalibration; SmolLM-1.7B and Llama-2-7B 20B rec; RULER NIAH; LongBench
- Used for
- Unknown
- Time period
- 2025-12-13 (arXiv 2512.12167 v1)
- Author type
- human
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Dec 13, 2025
- arXiv categories
- cs.CL, cs.AI
- Citations
- 24
- References
- 54
Abstract (from arXiv)
So far, expensive finetuning beyond the pretraining sequence length has been a requirement for effectively extending the context of language models (LM). In this work, we break this key bottleneck by Dropping the Positional Embeddings of LMs after training (DroPE). Our simple method is motivated by three key theoretical and empirical observations. First, positional embeddings (PEs) serve a crucial role during pretraining, providing an important inductive bias that significantly facilitates convergence. Second, over-reliance on this explicit positional information is also precisely what prevents test-time generalization to sequences of unseen length, even when using popular PE-scaling methods. Third, positional embeddings are not an inherent requirement of effective language modeling and can be safely removed after pretraining, following a short recalibration phase. Empirically, DroPE yields seamless zero-shot context extension without any long-context finetuning, quickly adapting pretrained LMs without compromising their capabilities in the original training context. Our findings hold across different models and dataset sizes, far outperforming previous specialized architectures and established rotary positional embedding scaling methods.
Tags
Topics
long context, positional embeddings, transformers
Research notes
- Primary: arxiv abs (CC BY 4.0, cs.CL). Code at github.com/SakanaAI/DroPE (220 stars at check). Gelberg Oxford / Sakana. HF paper page 5 upvotes. Recalibration uses FineWeb/FineWeb-Edu and SmolLM-corpus, not a new dataset; no datasets_local row. Discord posted abs link.
Notes about this
- Note
Long context: three bets and a weak spot in evaluation (overview)
An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.
Cites, within this collection
Cited by, within this collection
Similar entries
- Paper Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
- Paper MoBA: Mixture of Block Attention for Long-Context LLMs
- Paper Context Language Models
- Paper LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning
- Paper Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention
- Paper Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling