Saved in:
Bibliographic Details
Main Authors: Gelberg, Yoav, Eguchi, Koshi, Akiba, Takuya, Cetin, Edoardo
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2512.12167
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909959628783616
author Gelberg, Yoav
Eguchi, Koshi
Akiba, Takuya
Cetin, Edoardo
author_facet Gelberg, Yoav
Eguchi, Koshi
Akiba, Takuya
Cetin, Edoardo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_12167
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings
Gelberg, Yoav
Eguchi, Koshi
Akiba, Takuya
Cetin, Edoardo
Computation and Language
Artificial Intelligence
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.
title Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2512.12167