potentialpaper

Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:07 UTC · d3a539acd40d ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "RkBg2Ytoer"
- }
- ],
- "title": "Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval",
- "authors": [],
- "abstract": "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. 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. On a controlled pre-training ablation, we show that confining positional encoding to local layers is sufficient to produce this semantic shift, and find that it selectively degrades representations of positional information. Finally, we show that the reported long-context gains of PE hybrids mask a retrieval trade-off: while SWA NoPE improves over RoPE on multiple-target retrieval and QA, it degrades when distinguishing semantically similar keys. These behavioral differences track the mechanism shift from positional toward semantic mechanisms rather than a uniform improvement in long-context retrieval.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "259a9538-9259-4676-9733-b9d3087f4b11"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval",
+ "authors": [],
+ "abstract": "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. 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. On a controlled pre-training ablation, we show that confining positional encoding to local layers is sufficient to produce this semantic shift, and find that it selectively degrades representations of positional information. Finally, we show that the reported long-context gains of PE hybrids mask a retrieval trade-off: while SWA NoPE improves over RoPE on multiple-target retrieval and QA, it degrades when distinguishing semantically similar keys. These behavioral differences track the mechanism shift from positional toward semantic mechanisms rather than a uniform improvement in long-context retrieval.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}