TRANSMISSION // 2611.33257v1

How sliding windows reshape recurrent AI memory

Source published

In trained GDN2 and KDA models, a new local mixer improved some measures against corresponding baselines, but results varied by task and variant.

AI-generated conceptual illustration for How sliding windows reshape recurrent AI memory
AI-generated conceptual illustration; not documentary evidence.

Linear-attention models compress earlier text into a running state. A preprint tests whether choosing nearby information more selectively before each state update can help, while keeping the models’ recurrent update equations intact.

A different way to prepare each memory update

Language models use information from earlier tokens to process what comes next. Standard attention can compare tokens across a long history, but this can become costly as sequences grow. Linear-attention models instead compress history into a fixed-size recurrent state that is updated as tokens arrive. That compact memory makes the details of each update important.

Yuchen Song and Yangbin Chen’s preprint, One Token, Many Lessons: Sliding-Window Attention within Gated Delta Networks, investigates how the inputs to those updates are prepared. The authors use a test-time regression perspective: keys and values act like inputs and targets for an online-learned model held in the state, while queries read from it.

The authors propose Sliding-Window Gated DeltaNet (SWGDN), replacing short convolutions with a local attention-based mixer. In the tested setup, it considers a causal window of four tokens. Learned pseudo-queries score candidate keys; each of the query, key and value branches then uses its own attention weights to mix that branch’s projected representations. These mixed representations feed the existing recurrent update equations. So the equations remain the same, but the inputs to them—and therefore the resulting updates—can change. The authors say the method also preserves the original chunkwise parallel algorithms.

They test the approach in two model families, GDN2 and Kimi Delta Attention (KDA), with variants that differ in how many channel groups share attention weights.

What the experiments found

The paper compares seven models of roughly 340 million parameters, trained on the same fixed sequence of FineWeb-Edu windows for about 15 billion tokens. Results are not uniform across every model and task. The authors report lower perplexity on their language-modelling evaluations for the sliding-window variants relative to their corresponding baselines. Across eight zero-shot tasks, average accuracy varied by variant; the reported averages ranged from 44.52% to 46.11% across the models. On 14 settings across four RULER needle-in-a-haystack variants, each SWGDN variant had a higher average than its corresponding baseline.

For six real-world recall tasks, the single-group variants increased the reported average from 19.36% to 20.23% for GDN2 and from 19.91% to 21.63% for KDA. These are results for particular comparisons and aggregate scores; they do not mean every task improved.

The authors also examine a possible mechanism. In G1 variants at selected layers and offsets in the 340M/15B checkpoints, adjacent key–value pairs were more similar than in the respective baselines. Overlapping windows can let one token contribute to successive pairs, but similarity alone does not show that every later update reinforces a useful association.

A more targeted intervention tested SWKDA-G1. In that setting, removing an anchor token’s contributions to later key–value mixtures lowered the fraction of first subsequent writes that reduced the residual for that anchor association. This analysis used selected validation examples, layers and heads; it is evidence about that tested setup, not a general guarantee about recurrent memory.

Efficiency results also depend on the measure and hardware. On one RTX 6000D, at a sequence length of 2,048 tokens and batch size 16, SWGDN2-G1 and SWKDA-G1 reached 85.3% and 83.5% of their respective baselines’ training throughput. At 32,768 tokens and batch size one, their peak memory allocations were about 2.24 GiB higher than those baselines. In a prefill-plus-decoding test at 4,096 tokens, SWGDN2-G1 took 80.888 seconds compared with 92.005 seconds for GDN2. These measurements describe the paper’s specific setup, not performance on all hardware or workloads.

What remains uncertain

The experiments cover seven models trained on one fixed sequence of FineWeb-Edu windows, not a broad range of training datasets or scales. Task-level outcomes vary, and the mechanistic analyses use selected checkpoints, layers and examples. The authors’ interpretation of successive updates as approximate repeated learning depends on the pairs and gating behaviour being sufficiently similar; those conditions may not always hold. The intervention’s reported single seed further limits how broadly its result can be generalized.

This work is available as an arXiv preprint. Its reported benchmark results do not establish that SWGDN will improve deployed language models. Tests across more scales, data, architectures and hardware would help determine how broadly the approach works and whether its trade-offs are worthwhile.

Source: Song and Chen, arXiv:2611.33257v1, posted as a preprint.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A compact DNA model tests overlapping k-mers

    Shared method: Both papers use causal sliding-window attention alongside Gated DeltaNet: SWGDN uses it to mix projected queries, keys, and values before recurrent updates, while HGDNA describes a separate SWA module in its hybrid backbone. This is a shared component, not evidence that the two integration designs or their results are equivalent.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.33257v1 — Original paper

      Excerpt reference: static/papers/2611.33257v1.md:315-406
      Basis: Paper text
      Source SHA-256: be131d29d874e2a2507de5cffe8fde5b5e88bf5b8e218cb136ecd0f45f20dc1f

    • 2611.29400v1 — Original paper

      Excerpt reference: static/papers/2611.29400v1.md:178-225
      Basis: Paper text
      Source SHA-256: f26d22dcc61f9a7672cb67c033ee7b05faa509224c4c632dd311118444abf424

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.