Gated DeltaNet (GDN)
Definition
Gated DeltaNet (Yang, Kautz & Hatamizadeh, “Gated Delta Networks: Improving Mamba2 with Delta Rule,” arXiv:2412.06464 [verify]) is a linear-attention primitive that combines two forgetting mechanisms that were previously used separately: Mamba-2-style data-dependent scalar decay (a global “how long should the whole state live” gate) and the delta rule (a targeted “overwrite this key’s slot” write). Plain delta-rule DeltaNet can correct a key’s association but cannot let the state as a whole fade; Mamba-2 can decay the state but writes additively and so still suffers key collisions. GDN gets both — selective decay and error-correcting writes — in one constant-size recurrence.
Key math / How it works
Per head, with state :
Two data-dependent gates control it:
- — scalar decay applied to the whole state, setting its effective lifetime (the Mamba-2 contribution). retains, flushes.
- — delta write strength on the rank-1 removal-and-write (the DeltaNet contribution).
Setting recovers plain DeltaNet; setting to a pure additive write recovers Mamba-2 — GDN is the strict superset.
Parameterization (per token input ):
The short depthwise conv gives local mixing, L2-normalized stabilize the delta write, and the parameterization keeps the decay strictly in . Training uses the DeltaNet chunkwise-parallel form (recurrent across chunks, matmul-parallel within a chunk), so GDN trains at Transformer-like throughput while inference is a constant-state recurrence.
Why it matters
GDN is the leading modern linear-attention primitive: it closes much of plain linear attention’s recall gap (delta write) while retaining a controllable state lifetime (decay), all at compute and constant per-token state. It is deployed as the linear-attention layer in the Qwen3.8-Next hybrid, interleaved 3 GDN : 1 full attention, and it is the direct basis for Kimi Delta Attention, which generalizes the scalar decay to a per-channel vector.
Taught in
- 07-linear-and-subquadratic — GDN as delta rule + Mamba-2 decay; the modern linear-attention layer.
See also
- delta-rule — the error-correcting write GDN gates
- kda — GDN with channel-wise (vector) decay
- mamba — the data-dependent scalar decay GDN borrows
- linear-attention — the additive baseline
- attention-glossary · attention-mechanisms