Position Without Positional Embeddings: A Directional Mechanism in NoPE Transformers
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:48 UTC · 3c84df0191af ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,24 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "Sje2qgTHl2"- }- ],- "title": "Position Without Positional Embeddings: A Directional Mechanism in NoPE Transformers",- "authors": [- "Matan Avitan",- "Ido Nachum",- "Yanai Elazar",- "Yoav Goldberg"- ],- "abstract": "Autoregressive Transformers without positional embeddings (NoPE) can recover absolute position.\nA common explanation is that the causal attention can create a position-dependent variance signal,\nbut this ignores LayerNorm which removes per-token scale.\nWe identify a two-block mechanism that encodes position in the attention weight on a shared\nbeginning-of-sequence (BOS) token. Because BOS participates in every prefix, the first attention\nlayer writes the BOS direction into every position. The first block’s MLP with its succeeding\nLayerNorm then makes the BOS share nearly constant across later tokens while keeping it distinct at\nBOS. In the second block, each additional token contributes roughly the same amount to the attention\ndenominator, so the share of attention paid to BOS decreases monotonically and predictably with\nposition. This weight follows k/(k + i) at position i, for a fixed k. The attention output mixes the\nBOS value with the values of later tokens. Projecting this mixture onto the BOS direction makes the\nweight readable by downstream layers.\nWe verify the mechanism is not only theoretical but also emerges in trained NoPE transformer\ndecoders, both when trained with a position-prediction loss and with a next-token-prediction language\nmodeling loss. This is demonstrated by measurement and intervention-based experiments on three\ntrained models.",- "year": 2026,- "venue": "NeurIPS 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "b7ccd0cb-93fd-4b07-8a10-f40d9772d5ec"}
paper.json added
+++ b/paper.json@@ -0,0 +1,14 @@+{+ "title": "Position Without Positional Embeddings: A Directional Mechanism in NoPE Transformers",+ "authors": [+ "Matan Avitan",+ "Ido Nachum",+ "Yanai Elazar",+ "Yoav Goldberg"+ ],+ "abstract": "Autoregressive Transformers without positional embeddings (NoPE) can recover absolute position.\nA common explanation is that the causal attention can create a position-dependent variance signal,\nbut this ignores LayerNorm which removes per-token scale.\nWe identify a two-block mechanism that encodes position in the attention weight on a shared\nbeginning-of-sequence (BOS) token. Because BOS participates in every prefix, the first attention\nlayer writes the BOS direction into every position. The first block’s MLP with its succeeding\nLayerNorm then makes the BOS share nearly constant across later tokens while keeping it distinct at\nBOS. In the second block, each additional token contributes roughly the same amount to the attention\ndenominator, so the share of attention paid to BOS decreases monotonically and predictably with\nposition. This weight follows k/(k + i) at position i, for a fixed k. The attention output mixes the\nBOS value with the values of later tokens. Projecting this mixture onto the BOS direction makes the\nweight readable by downstream layers.\nWe verify the mechanism is not only theoretical but also emerges in trained NoPE transformer\ndecoders, both when trained with a position-prediction loss and with a next-token-prediction language\nmodeling loss. This is demonstrated by measurement and intervention-based experiments on three\ntrained models.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}