# How Local Mixing Encodes Relative Position in Global NoPE Attention

- **ID:** 840
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.38109
- **Authors:** Cutter Dawes, Nick Alonso, Tom Figliolia, Beren Millidge
- **Venue:** arXiv:2609.38109 (cs.CL), submitted 29 Sep 2026
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Tags:** nope, positional-encoding, sliding-window-attention, recency-bias, hybrid-models, length-extrapolation, kimi-delta-attention
- **Topics:** positional encoding, NoPE, hybrid attention, length extrapolation
- **Added:** 2026-10-01
- **Verified:** 2026-10-01
- **Page:** https://papers.projxon.ai/entries/840

## Summary

Explains how hybrid models with local mixing layers (sliding window attention, gated linear attention) and global NoPE attention implicitly encode relative position: local layers induce a recency bias in the residual stream that propagates to and is selected by the global attention logits. Supported by theory and experiments on randomly initialized and trained networks; recency bias persists across long sequences unlike causal-mask-only NoPE, suggesting indefinite length extrapolation.

## From the source (fetched 2026-10-03)

- **Published:** Sep 29, 2026 (arXiv)
- **arXiv categories:** cs.CL, cs.AI, cs.LG (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 26 (Semantic Scholar)

## Abstract

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.

## Research notes

- Discovery: @ZyphraAI X post 2026-10-01 (https://x.com/ZyphraAI/status/2105697705255420318)
- Blog: https://zyphra.com/our-work/learning-position-in-hybrid-nope-models
- Theory + experiments: SWA/gated-linear local layers induce a recency bias in the residual stream that propagates to global NoPE attention logits, explaining how hybrid NoPE models encode relative position; smaller windows predicted text better with less training compute; same bias appears in Kimi Delta Attention; suggests path to indefinite length extrapolation
- License: not stated on arXiv abstract page

## Cites, within this collection

- [Round and Round We Go! What makes Rotary Positional Encodings useful?](https://papers.projxon.ai/entries/967) (paper 2024, #967)

## Similar entries

- [Depth Hybrid Attention (DHA): Depth-Wise Value Mixing for Hybrid Attention Architectures](https://papers.projxon.ai/entries/1505) (post, #1505)
- [Native Hybrid Attention for Efficient Sequence Modeling](https://papers.projxon.ai/entries/1253) (paper, #1253)
- [You Need Better Attention Priors](https://papers.projxon.ai/entries/1216) (paper, #1216)
- [Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs](https://papers.projxon.ai/entries/1282) (paper, #1282)
- [Attention Drift in Speculative Decoding (drafter attention sink → recent tokens)](https://papers.projxon.ai/entries/1082) (thread, #1082)
- [Length Generalization Needs Proper Regularization](https://papers.projxon.ai/entries/1270) (paper, #1270)
