mlsanityData to 14 Oct 2026

Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders

arXiv 2605.30022 ↗First posted 28 May 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Positional encoding (PE) underpins how permutation-invariant Transformers represent sequence order, yet how positional information is processed and stored remains poorly understood. Modern PE methods such as RoPE still struggle on tasks such as long-context understanding or retrieval citechen-etal-2025-hope. Hence, a better understanding of the internal positional mechanism could help design better PE. Building on evidence that positional and semantic signals occupy nearly orthogonal subspaces in trained Transformers, we modify an encoder Transformer to process three explicitly disentangled streams: semantic, absolute positional (AP) and relative positional (RP), and confine the masked-language-modeling (MLM) objective to the semantic stream. This decoupling enables a clean mechanistic study and yields three take-aways. (1) The isolated AP subspace spontaneously collapses into a low-frequency two-dimensional manifold that captures the structure of the document; (2) Attention heads specialize into structure and semantic-oriented groups, with RP exclusively supporting the latter; (3) Standard positional encodings do not robustly retain macroscopic structure: RoPE and RP only weakly encode it, and entangled AP loses it in the final layers under MLM pressure. The disentangled approach preserves positional encoding, which improves linguistic representation on 49 of the 65 linguistic phenomena of the Flash-Holmes probing benchmark.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 41 references that are in the map. First posted on arXiv 28 May 2026.

Builds on

27 of 41 references.

References · 27

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  8. 2016Pointer Sentinel Mixture Modelscited by 3,096
  9. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  10. 2020GLU Variants Improve Transformercited by 1,804
  11. 2019Root Mean Square Layer Normalizationcited by 1,480
  12. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
15 more
  1. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  2. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  3. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
  4. 2020Learning to Encode Position for Transformer with Continuous Dynamical Modelcited by 61
  5. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
  6. 2020What Do Position Embeddings Learn? An Empirical Study of Pre-Trained Language Model Positional Encodingcited by 52
  7. 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 42
  8. 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
  9. 2024Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolationcited by 24
  10. 2023Uncovering hidden geometry in Transformers via disentangling position and contextcited by 18
  11. 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
  12. 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddingscited by 10
  13. 2025Decoupling Positional and Symbolic Attention Behavior in Transformerscited by 6
  14. 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 5
  15. 2025RePo: Language Models with Context Re-Positioningcited by 4

Built on by

Not cited yet.