paper-with-me

홈 › Papers

Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention

2026-05-21 · Ali Hatamizadeh, Yejin Choi, Jan Kautz arxiv

Linear attention replaces the unbounded cache of softmax attention with a fixed-size recurrent state, reducing sequence mixing to linear time and decoding to constant memory. The hard part is not just what to forget, but how to edit this compressed memory without scrambling existing associations. Delta-rule models subtract the current read before writing a new value, and Kimi Delta Attention (KDA) sharpens forgetting with channel-wise decay. But the active edit still uses a single scalar gate to control two different things: how much old content to erase on the key side and how much new content to commit on the value side. We introduce Gated DeltaNet-2, which generalizes both Gated DeltaNet and KDA by inheriting adaptive forgetting and channel-wise decay while addressing their shared limitation, the scalar tie between erasing and writing. Gated Delta Rule-2 separates these roles with a channel-wise erase gate b_t and a channel-wise write gate w_t, reducing to KDA when both gates collapse to the same scalar and to Gated DeltaNet when the decay also collapses. We derive a fast-weight update view, a chunkwise WY algorithm with channel-wise decay absorbed into asymmetric erase factors, and a gate-aware backward pass that preserves efficient parallel training. At 1.3B parameters trained on 100B FineWeb-Edu tokens, Gated DeltaNet-2 achieves the strongest overall results among Mamba-2, Gated DeltaNet, KDA, and Mamba-3 variants across language modeling, commonsense reasoning, and retrieval. Its advantage is most pronounced on long-context RULER needle-in-a-haystack benchmarks, where it improves the evaluated multi-key retrieval setting and remains strong in both recurrent and hybrid settings. Code is available at https://github.com/NVlabs/GatedDeltaNet-2.

📄 PDF Abstract BibTeX arXiv:2605.22791

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Linear Attention Architectures: Mechanisms, Trade-offs, and Cross-Layer Routing

2026-07-08 · Tommaso Cerruti, Tim Rieder, George Rowlands, Lingfeng Jin 외 arxiv

Self-attention lets each token retrieve information from the full context, but its quadratic cost in sequence length limits training and inference at long context. This paper presents a comparative study of softmax atten…

Erase-then-Delta Attention: Decoupling Erase and Write Addresses in Delta-Rule Linear Attention

2026-06-25 · Xiao Li, Chengruidong Zhang, Hao Luo, Xi Lin 외 arxiv

Delta-rule linear attention improves recurrent memory updates by correcting what is already stored at the current write address before writing new content. However, the active correction is still anchored to that same wr…

WriteSAE: Sparse Autoencoders for Recurrent State

2026-05-12 · Jack Young arxiv

We introduce WriteSAE, a sparse autoencoder for the matrix updates written into recurrent language-model state. In Gated DeltaNet, Mamba-2, and RWKV-7, each token writes a matrix-shaped update to a recurrent cache; a res…

Memory by Design: Probabilistic Sequence Layers

2026-05-29 · Matthew Dowling, Hyungju Jeon, Cristina Savin, Il Memming Park arxiv

We introduce the \emph{design-model framework}: a way to derive efficient recurrent sequence maps from explicit assumptions about memory. A design model writes evidence into memory by exact Bayesian filtering; a query- d…

Why Gated DeltaNet Survives 4-Bit Quantization: NVFP4 W4A4 for the Recurrent Half of a Hybrid 27B LLM

2026-09-03 · Sergii Kozyrev, Davyd Maiboroda hf

Hybrid LLMs pair softmax attention with linear-attention layers such as Gated DeltaNet (GDN), whose recurrent state summarizes the context in fixed size. Early community 4-bit quantizations of Qwen3.8-27B (48 GDN layers,…