mlsanityData to 14 Oct 2026

How Local Mixing Encodes Relative Position in Global NoPE Attention

arXiv 2609.38109 ↗First posted 29 Sep 2026cs.CL cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The attention operation is naively position invariant. However, positional information is fundamental to natural language, and therefore a variety of explicit position encodings have been developed in transformer-based models, such as rotary position encoding (RoPE). Although explicit position encodings have long been assumed to be required, recent methods that interleave local mixing layers, such as sliding window attention (SWA) and gated linear attention, while not encoding position (NoPE) in global attention layers has recently been shown to be successful at scale. How and why this approach works is not well-understood. In this paper, we develop an explanation of how hybrid models of this sort can implicitly encode position at global NoPE layers. Supported by both theoretical and empirical evidence, our central argument is that SWA and gated linear attention induce a recency bias in the residual stream that propagates to, and is selected by, the global attention logits. Moreover, in contrast to the implicit position encodings found in models with only global NoPE attention, in which positional information arises solely from the causal mask, the recency bias in hybrid models can be maintained across long sequences. In addition to deepening our understanding of how hybrid models encode position, these findings may provide insights for how to encode position in a way that can extrapolate to longer sequence lengths indefinitely.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 26 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

21 of 26 references.

References · 21

  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  2. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  3. 2019Root Mean Square Layer Normalizationcited by 1,480
  4. 2018Self-Attention with Relative Position Representationscited by 1,120
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  7. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
  8. 2024How to Train Long-Context Language Models (Effectively)cited by 146
  9. 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
  10. 2021Position Information in Transformers: An Overviewcited by 103
  11. 2025On the Emergence of Position Bias in Transformerscited by 59
  12. 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
9 more
  1. 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 34
  2. 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23
  3. 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 19
  4. 2024Language Models as Science Tutorscited by 17
  5. 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
  6. 2024Scaling Stick-Breaking Attention: An Efficient Implementation and In-depth Studycited by 13
  7. 2024Position Information Emerges in Causal Transformers Without Positional Encodings via Similarity of Nearby Embeddingscited by 8
  8. 2025Group Representational Position Encodingcited by 5
  9. 2025LayerNorm Induces Recency Bias in Transformer Decoderscited by 1

Built on by

Not cited yet.