{
  "id": 840,
  "kind": "paper",
  "title": "How Local Mixing Encodes Relative Position in Global NoPE Attention",
  "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.",
  "body": "",
  "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",
  "url": "https://arxiv.org/abs/2609.38109",
  "links": [],
  "authors": [
    "Cutter Dawes",
    "Nick Alonso",
    "Tom Figliolia",
    "Beren Millidge"
  ],
  "tags": [
    "nope",
    "positional-encoding",
    "sliding-window-attention",
    "recency-bias",
    "hybrid-models",
    "length-extrapolation",
    "kimi-delta-attention"
  ],
  "topics": "positional encoding, NoPE, hybrid attention, length extrapolation",
  "venue": "arXiv:2609.38109 (cs.CL), submitted 29 Sep 2026",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-01T00:00:00.000Z",
  "verified_at": "2026-10-01T00:00:00.000Z",
  "attrs": {},
  "enrichment": {
    "s2": {
      "paper_id": "95b42411aa557a4c37b8a37be46f51cd9afbc4e5",
      "published": "2026-09-29",
      "fetched_at": "2026-10-03T14:58:38.342Z",
      "citation_count": 0,
      "reference_count": 26,
      "influential_citation_count": 0
    },
    "arxiv": {
      "id": "2609.38109",
      "title": "How Local Mixing Encodes Relative Position in Global NoPE Attention",
      "authors": [
        "Cutter Dawes",
        "Nick Alonso",
        "Tom Figliolia",
        "Beren Millidge"
      ],
      "updated": "2026-09-29",
      "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.",
      "published": "2026-09-29",
      "categories": [
        "cs.CL",
        "cs.AI",
        "cs.LG"
      ],
      "fetched_at": "2026-10-03T14:58:38.342Z"
    }
  },
  "enriched_at": "2026-10-03T14:58:38.387Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "921"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/840",
  "markdown": "https://papers.projxon.ai/entries/840.md",
  "api": "https://papers.projxon.ai/api/entries/840",
  "relations": [
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 967,
        "kind": "paper",
        "title": "Round and Round We Go! What makes Rotary Positional Encodings useful?",
        "summary": "Positional Encodings (PEs) are a critical component of Transformer-based Large Language Models (LLMs), providing the attention mechanism with important sequence-position information. One of the most popular types of encoding used today in LLMs are Rotary Positional Encodings (RoPE), that rotate the queries and keys bas…",
        "url": "https://arxiv.org/abs/2410.06205",
        "authors": [
          "Barbero",
          "Federico",
          "Vitvitskyi",
          "Alex",
          "Perivolaropoulos",
          "Christos",
          "Pascanu",
          "Razvan",
          "Veličković",
          "Petar"
        ],
        "tags": [
          "arxiv",
          "2410-06205",
          "long-context",
          "safety",
          "linkedin-thread"
        ],
        "venue": "arXiv 2410.06205",
        "source": "arxiv",
        "license": "",
        "published_year": 2024,
        "added_at": "2026-09-15T00:46:23.000Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 129,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/967",
        "markdown": "https://papers.projxon.ai/entries/967.md",
        "api": "https://papers.projxon.ai/api/entries/967"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 1505,
      "kind": "post",
      "title": "Depth Hybrid Attention (DHA): Depth-Wise Value Mixing for Hybrid Attention Architectures",
      "summary": "An architectural add-on for hybrid attention: let layers mix information across DEPTH, not just across time. DHA extends the group's earlier Depth-Attention (validated in plain GQA) to hybrid stacks. The forward pass for each token maintains a per-token 'depth bank' holding KV anchors written by preceding layers. Before its temporal attention, each layer runs a depth router: (1) Read historical anchors from the bank, (2) Mix - value mixing in the form of attention over those anchors, (3) Write its own anchors to the bank. The mixed values then feed the layer's ordinary temporal attention, whose design is untouched. Because the bank is per-token and holds one anchor set per layer rather than per position, it does not grow with context length - the hybrid's low KV-cache footprint is retained, at 'very little' added compute and cache (their characterization). Two variants, each keeping separate depth banks per layer type so a layer only reads anchors from its own kind: Depth Window Attention (DWA) for GQA + sliding-window attention hybrids, routing at KV-group granularity while SWA layers keep their temporal window; and Depth Delta Attention (DDA) for MLA + Kimi Delta Attention (KDA) hybrids, where MLA routes in latent space and KDA mixes values across depths using normalized queries/keys with depth-specific logit scaling before its delta-attention update. Results (short-context suite of 8 benchmarks - ARC-Challenge, HellaSwag, MMLU, CMMLU, GSM8K, MBPP, CMATH, MMLU-Pro; averages): DWA 39.68 vs GQA+SWA 37.84 vs full GQA 38.06, with the gains concentrated in generation tasks (GSM8K 44.43 vs 38.36 hybrid / 37.60 full) and MMLU a small exception (45.51, below full GQA's 46.19); DDA 40.92 vs MLA+KDA 39.12 vs full MLA 38.19 (GSM8K 43.67, CMATH 51.64). The README also reports better loss curves and long-context retrieval vs both baseline classes, but those results are figures only, with no numbers in text. Caveats: a code/project release, not a paper - no arXiv version, no stated model scale, token count, or training setup behind the benchmark tables in the README, all results first-party (Nanbeige LLM Lab, BOSS Zhipin), repo created 2026-10-29 with 3 commits and no LICENSE file in the root at catalog time. Relevance: DWA targets exactly the GQA+SWA hybrid family - in a 3:1 SWA:full stack the depth axis is orthogonal to the temporal hybrid split, but note the constraint that banks are per layer type, so window layers never read anchors written by full layers and vice versa; DDA's KDA branch is the Gated DeltaNet family paired with MLA instead.",
      "url": "https://github.com/Nanbeige/Depth-Hybrid-Attention",
      "authors": [
        "Nanbeige LLM Lab (BOSS Zhipin / Kanzhun Limited)"
      ],
      "tags": [],
      "venue": "Project / code release (GitHub)",
      "source": "github",
      "license": "",
      "published_year": null,
      "added_at": "2026-11-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1505",
      "markdown": "https://papers.projxon.ai/entries/1505.md",
      "api": "https://papers.projxon.ai/api/entries/1505"
    },
    {
      "id": 1253,
      "kind": "paper",
      "title": "Native Hybrid Attention for Efficient Sequence Modeling",
      "summary": "Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.",
      "url": "https://arxiv.org/abs/2510.07019",
      "authors": [
        "Jusen Du",
        "Jiaxi Hu",
        "Tao Zhang",
        "Weigao Sun",
        "Yu Cheng"
      ],
      "tags": [
        "native-hybrid-attention",
        "linear-attention",
        "sliding-window",
        "memory-slots",
        "recall",
        "efficient-inference",
        "acl-2026"
      ],
      "venue": "arXiv 2510.07019 [cs.CL], submitted 8 Oct 2025, v3 15 Apr 2026; accepted ACL 2026",
      "source": "x",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1253",
      "markdown": "https://papers.projxon.ai/entries/1253.md",
      "api": "https://papers.projxon.ai/api/entries/1253"
    },
    {
      "id": 1216,
      "kind": "paper",
      "title": "You Need Better Attention Priors",
      "summary": "Generalizes attention through the lens of Entropic Optimal Transport (EOT): standard attention corresponds to a transport problem regularized by an implicit uniform prior. GOAT (Generalized Optimal Transport Attention with Trainable priors) replaces that naive assumption with a learnable, continuous prior that decouples spatial geometry from token semantics — standard positional encodings (e.g., RoPE) entangle position with meaning and corrupt semantic representations when forced to handle structural biases like attention sinks. The prior maintains full compatibility with optimized kernels like FlashAttention (zero compute overhead). GOAT also provides an EOT-based explanation of attention sinks and a solution that avoids standard attention's representational trade-offs. By absorbing spatial information into the core attention computation, GOAT learns an extrapolatable prior combining the flexibility of learned positional embeddings with the length generalization of fixed encodings — strong long-context extrapolation beyond training length.",
      "url": "https://arxiv.org/abs/2601.15380",
      "authors": [
        "Elon Litman",
        "Gabe Guo"
      ],
      "tags": [
        "goat",
        "attention-priors",
        "entropic-optimal-transport",
        "rope",
        "attention-sinks",
        "long-context-extrapolation",
        "flashattention"
      ],
      "venue": "arXiv:2601.15380 (cs.LG), submitted 21 Jan 2026, v2 23 Aug 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1216",
      "markdown": "https://papers.projxon.ai/entries/1216.md",
      "api": "https://papers.projxon.ai/api/entries/1216"
    },
    {
      "id": 1282,
      "kind": "paper",
      "title": "Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs",
      "summary": "Recurrent-attention hybrid LMs (e.g., Qwen3.5) interleave attention and recurrent layers as two complementary memory pathways: attention supports precise recall of earlier tokens, recurrent layers consolidate disparate information over long contexts. The paper shows hybrids rely substantially more on attention than on the recurrent state — and that standard SFT improves overall performance but does not fix the imbalance: the model becomes more reliant on attention-propagated information while recurrent-pathway use stays limited. Fix: an auxiliary loss that limits attention's access to earlier context while the recurrent state propagates through the full sequence, forcing the model to retain and use information through the recurrent pathway alongside attention. Results: overall performance improves with especially strong gains on longer-context and information-aggregation tasks; QA avg +4.6%, agentic tasks avg +12.1% across multiple hybrid LMs; also generalizes to attention-only models combining different memory types (+28.6%). Core message: simply providing multiple memory pathways does not ensure their effective use — targeted supervision is needed to coordinate them.",
      "url": "https://arxiv.org/abs/2610.06750",
      "authors": [
        "Hyunji Lee",
        "Joykirat Singh",
        "Zaid Khan",
        "Justin Chih-Yao Chen",
        "Elias Stengel-Eskin",
        "Alessandro Sordoni",
        "Arman Cohan",
        "Mohit Bansal"
      ],
      "tags": [
        "memory-pathways",
        "recurrent-attention-hybrid",
        "auxiliary-loss",
        "memory-utilization",
        "long-context",
        "agentic-tasks"
      ],
      "venue": "arXiv 2610.06750 (cs.CL, cs.AI), submitted 5 Oct 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1282",
      "markdown": "https://papers.projxon.ai/entries/1282.md",
      "api": "https://papers.projxon.ai/api/entries/1282"
    },
    {
      "id": 1082,
      "kind": "thread",
      "title": "Attention Drift in Speculative Decoding (drafter attention sink → recent tokens)",
      "summary": "X thread (2026-05-12) by @dogacel0: as a speculative-decoding drafter generates tokens, its attention moves from the attention sink onto its own recently generated tokens (“attention drift”). Fixing the underlying issue recovered up to ~2× acceptance length. No arXiv ID located via export search this pass — cataloged as idea/thread pending paper link.",
      "url": "https://x.com/dogacel0/status/2054200111043949012",
      "authors": [
        "Doğaç (@dogacel0) et al. (X thread",
        "affiliations TBD)"
      ],
      "tags": [
        "attention-drift",
        "speculative-decoding",
        "attention-sink",
        "drafter",
        "acceptance-length"
      ],
      "venue": "X / speculative decoding community",
      "source": "web",
      "license": "X post (platform terms)",
      "published_year": 2026,
      "added_at": "2026-09-29T20:34:19.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1082",
      "markdown": "https://papers.projxon.ai/entries/1082.md",
      "api": "https://papers.projxon.ai/api/entries/1082"
    },
    {
      "id": 1270,
      "kind": "paper",
      "title": "Length Generalization Needs Proper Regularization",
      "summary": "Argues transformers need no architectural changes for length generalization — proper dropout regularization suffices, making the problem architecture-agnostic rather than a positional-encoding or attention-mechanism question. Diagnoses training-procedure culprits for extrapolation failure: weight decay can hinder extrapolation, while dropout improves it only when its placement is reconsidered — standard dropout before layer normalization introduces a systematic distributional mismatch; applying dropout just before the linear projection resolves it. Proposes Variance-Preserving Affine Dropout (VPAD), which substantially reduces the resulting pre-activation variance mismatch and further improves extrapolation; VPAD is complementary to attention-scaling methods. Results: modified SmolLM3 with sliding-window attention, continually pre-trained with dropout, extrapolates perfectly to 64x on Needle-in-a-Haystack and far beyond pre-training context on RULER and HELMET; training SmolLM3 from scratch reaches RBA 100.0 at 32x training length; matches a 'perfect' baseline at 2-8x extrapolation and improves on ICL/NIAH/RULER at longer contexts. Mamba2 also benefits from dropout, supporting the architecture-agnostic claim. CC BY 4.0 license. Directly relevant to the user's long-context training work (3:1 SWA:full-attention hybrid stack) — the dropout-placement fix applies to their architecture too.",
      "url": "https://arxiv.org/abs/2610.04518",
      "authors": [
        "Pavlo Vasylenko",
        "Matthias Lindemann",
        "Andre F. T. Martins",
        "Marcos Treviso"
      ],
      "tags": [
        "length-generalization",
        "dropout",
        "vpad",
        "regularization",
        "smollm3",
        "mamba2",
        "long-context"
      ],
      "venue": "arXiv 2610.04518 [cs.LG], submitted 3 Oct 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1270",
      "markdown": "https://papers.projxon.ai/entries/1270.md",
      "api": "https://papers.projxon.ai/api/entries/1270"
    }
  ]
}
