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

- **ID:** 617
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2605.22791
- **Authors:** Ali Hatamizadeh, Yejin Choi, Jan Kautz
- **Venue:** arXiv / NVIDIA
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Tags:** gated-deltanet, kda, mamba, linear-attention, nvidia, delta-rule
- **Topics:** linear attention, delta rule, recurrent LMs
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/617

## Summary

NVIDIA linear-attention layer that generalizes Gated DeltaNet and Kimi Delta Attention by replacing the tied scalar delta gate with a key-side erase gate b_t and a value-side write gate w_t, keeping channel-wise decay. Recovers KDA when both gates collapse to the same scalar and Gated DeltaNet when decay is scalar too. Derives a fast-weight view, chunkwise WY algorithm, and gate-aware backward. At 1.3B on 100B FineWeb-Edu tokens, strongest overall vs Mamba-2/GDN/KDA/Mamba-3 on LM, commonsense, and retrieval; largest gains on RULER multi-key NIAH. Recurrent real-world retrieval avg 29.88 vs KDA 28.67; hybrid 42.28 vs 40.14. Code NVlabs/GatedDeltaNet-2.

## Attributes

- **Purpose:** Separate channel-wise erase and write gates in the delta-rule memory update
- **Scale:** 1.3B params, 100B FineWeb-Edu tokens, 4K train length. GitHub 264 stars / 28 forks at check.
- **Time period:** arXiv 2605.22791 (2026-05-21). Discord posted the GitHub PDF 2026-05-22. Repo created 2026-05-08.
- **Author type:** human

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

- **Published:** May 21, 2026 (arXiv)
- **arXiv categories:** cs.AI (arXiv)
- **Author comment:** Gated DeltaNet-2 technical report; code at https://github.com/NVlabs/GatedDeltaNet-2 (arXiv)
- **Citations:** 26 (5 influential) (Semantic Scholar)
- **References:** 53 (Semantic Scholar)

## Abstract

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.

## Research notes

- Primary: arxiv abs 2605.22791. Discord posted https://t.co/Zw6yXbHjGU which resolves to https://github.com/NVlabs/GatedDeltaNet-2/blob/main/paper/GDN2_paper.pdf. Code GitHub SPDX Other / NVIDIA Source Code License-NC per README coverage; license field left blank rather than guess SPDX. Architecture/code item trained on public FineWeb-Edu, not a new hosted corpus, so no datasets_local row.

## Other records of the same thing

- [Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention](https://papers.projxon.ai/entries/727) (#727)

## Similar entries

- [Dynamic Linear Attention](https://papers.projxon.ai/entries/489) (paper, #489)
- [Speculative decoding with Gated DeltaNet: no un-reading needed](https://papers.projxon.ai/entries/784) (thread, #784)
- [Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling](https://papers.projxon.ai/entries/1244) (paper, #1244)
- [Native Hybrid Attention for Efficient Sequence Modeling](https://papers.projxon.ai/entries/1253) (paper, #1253)
- [LT2: Linear-Time Looped Transformers](https://papers.projxon.ai/entries/494) (model, #494)
- [Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence](https://papers.projxon.ai/entries/560) (paper, #560)
