Extending the Context of Pretrained LLMs by Dropping Their Positional Embedding

Abstract

So far, expensive finetuning beyond the pretraining sequence length has been a prerequisite to effectively extend the context of language models (LM). In this work, we break this key bottleneck by ***Dro**pping the **P**ositional **E**mbeddings of LMs after training (DroPE)*. Our simple method is motivated by three key theoretical and empirical observations. First, positional embeddings 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. 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 position embedding scaling methods.

Cite

Text

Gelberg et al. "Extending the Context of Pretrained LLMs by Dropping Their Positional Embedding." International Conference on Learning Representations, 2026.

Markdown

[Gelberg et al. "Extending the Context of Pretrained LLMs by Dropping Their Positional Embedding." International Conference on Learning Representations, 2026.](https://mlanthology.org/iclr/2026/gelberg2026iclr-extending/)

BibTeX

@inproceedings{gelberg2026iclr-extending,
  title     = {{Extending the Context of Pretrained LLMs by Dropping Their Positional Embedding}},
  author    = {Gelberg, Yoav and Eguchi, Koshi and Akiba, Takuya and Cetin, Edoardo},
  booktitle = {International Conference on Learning Representations},
  year      = {2026},
  url       = {https://mlanthology.org/iclr/2026/gelberg2026iclr-extending/}
}