delta-rule-gates -- how the gate in a delta rule became two gates

Some models replace the ever-growing pile of notes on past words with a fixed-size memory that files a cue against its content. Three such designs keep exactly that memory and differ only in how they forget. The first fades the whole memory at one rate per step, which means you cannot hold one fact while dropping another — everything ages together. The next gives each of the memory's feature slots its own fading rate, so some can be held a long time while others clear quickly; but the strength with which it erases and the strength with which it writes are still one number doing both jobs at once. The newest splits that number in two, making how much old content survives and how much new content is committed separate decisions.

Interactive page: one recurrent matrix state, three gate designs. Family E (linear attention); the companion to gated-deltanet, which teaches the delta-rule recurrence itself. This page holds the recurrence fixed and varies only the gate, because that is the axis the family actually moved along.

The arc it teaches

All three designs write the same object -- a fixed [d×d] matrix state S, a key→value associative memory -- with the same delta rule. They differ only in what multiplies the two terms:

Sₜ = diag(bₜ) · Sₜ₋₁ · (I − kₜkₜᵀ) + diag(wₜ) · vₜkₜᵀ └── erase ──┘ └── write ──┘

DesignGateWhat it buys
Gated DeltaNet (GDN)bₜ = wₜ = αₜ·1 in this page's b/w formForgetting at all: the state decays instead of saturating. But the whole matrix decays at one rate, so no feature can be kept while another is dropped.
Kimi Delta Attention (KDA)bₜ = wₜ = γₜ -- a diagonal, one rate per channelEach feature dimension of the state forgets at its own rate: fine-grained control over what decays fast and what is held. Ships in Kimi Linear, hybridised 3:1 with full attention.
Gated DeltaNet-2 (GDN-2)bₜ and wₜ independent, both channel-wiseGDN and KDA both use a single gate to decide erase and write at once. Splitting them lets the state keep old content (b near 1) while still admitting new content (w free), or the reverse.

Progression, in one line: scalar → per-channel → decoupled, where per-channel means the decay.

The gate column is this page's stand-in, not any paper's notation

Each design carries a decay and a delta strength; the two-gate b/w form folds them together so all three sit on one widget. Check the page against the real rules, not against the table:

RuleDecayDelta strength
GDNSₜ = αₜ·Sₜ₋₁·(I − βₜkkᵀ) + βₜvkᵀscalar αₜscalar βₜ
KDASₜ = (I − βₜkkᵀ)·Diag(αₜ)·Sₜ₋₁ + βₜkvᵀchannel-wise αₜstill scalar βₜ
GDN-2Sₜ = (I − k(bₜ⊙k)ᵀ)·Diag(αₜ)·Sₜ₋₁ + k(wₜ⊙v)ᵀchannel-wise αₜseparate bₜ (key axis) and wₜ (value axis)

Two things this table exists to stop you concluding. KDA did not make the erase/write gate channel-wise — its βₜ is a scalar per head, and GDN-2's own abstract says KDA "still uses a single scalar gate to control two different things". And the reduction runs the way the paper states it: GDN-2 recovers KDA when bₜ = wₜ = βₜ·1, i.e. both gates collapse to the same scalar while the channel-wise decay is retained, and recovers GDN by then also setting αₜ = αₜ·1.

Sources (public papers): Gated DeltaNet, arXiv:2412.06464 · Kimi Linear / KDA, arXiv:2510.26692 · Gated DeltaNet-2, arXiv:2605.22791.

What it shows

Interactions

Render tier

T2 (WebGL2 heatmaps for the [d×d] state and the two update terms; Canvas2D for the gate handles, the retention chart and the three-way comparison), with the usual Canvas2D fallback.

Wiring

layout.mount + controls (mode, alpha, L, d, seed) + an L-step transport + onPointer gate/value drag + hover tooltips + challenges. URL hooks for every handle: ?mode= ?alpha= ?g= ?b= ?w= ?v=i,val ?step=N ?L= ?d= ?seed= ?play=1 ?hover=x,y. Source: page.js.