Metraipolis › archive › dc_0b4936434ee1
Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval — arXiv:2609.38530
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.38530
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T13:13:25.170Z
- SHA-256 of the archived text
5f0241f5b57662f84b7ab4930759d4696faee534220101e583df12b38cca6603- Stable URL of this page
https://metraipolis.com/documento/dc_0b4936434ee1
How to cite
Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval — arXiv:2609.38530 — arXiv (en), https://arxiv.org/abs/2609.38530 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0b4936434ee1 (Metraipolis archive dc_0b4936434ee1, sha256 5f0241f5b57662f84b7ab4930759d4696faee534220101e583df12b38cca6603)
BibTeX
@misc{dc0b4936434ee1,
title = {Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval — arXiv:2609.38530},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.38530},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0b4936434ee1; sha256 5f0241f5b57662f84b7ab4930759d4696faee534220101e583df12b38cca6603},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.38530. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Language models increasingly use architectures that vary attention span and positional encoding across layers, such as applying RoPE with sliding-window attention and NoPE with global attention (SWA NoPE). However, how these choices shape in-context retrieval remains unclear. To study this question, we take a mechanistic view, tracing how positional encoding (PE) choice shapes the internal mechanisms models use for in-context retrieval. Across 22 open-weight models spanning eight families, we find that standard RoPE models rely primarily on positional retrieval, while PE hybrids shift toward semantic retrieval. We further show on a controlled pre-training ablation that confining positional encoding to local layers produces this semantic shift, degrading representations of positional information. Finally, we show that the reported long-context gains of PE hybrids mask a retrieval trade-off: SWA NoPE improves over RoPE on multiple-target retrieval and QA, but degrades when distinguishing competing keys. We show that these behavioral differences better track the mechanism shift from positional toward semantic mechanisms than a uniform improvement in long-context retrieval. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-01 in cs.CL). Categorie arXiv: Computation and Language (cs.CL) ; Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2609.38530 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T12:44:51.736Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).