Kimi Delta Attention (KDA) is a linear attention mechanism that refines the gated delta rule with fine-grained, per-channel gating, letting a compact recurrent memory hold long context cheaply. Moonshot AI introduced it in the Kimi Linear paper as the attention core behind Kimi K3, the company’s flagship model, where it replaces most of the standard full-attention layers a large language model would otherwise need. The result is a hybrid design that keeps quality on par with full attention while using a fraction of the memory.
That trade-off matters because attention memory, not raw compute, is often what caps how long a context window a model can practically serve. KDA attacks that bottleneck directly — and you can put it to work in a live chat over at bota.chat.
KDA refines the gated delta rule with fine-grained, per-channel gating so a compact recurrent memory can hold long context cheaply. Instead of storing a growing list of past key-value pairs the way standard attention does, KDA compresses everything seen so far into a fixed-size state and updates it one token at a time. Each update decides, at the level of individual feature channels, what to keep and what to overwrite — a distinction that separates it from both plain linear attention and its immediate predecessor, Gated DeltaNet.
Standard softmax attention compares every token to every other token in a sequence, so its cost grows quadratically with sequence length — doubling the context window quadruples the work. Linear attention breaks that scaling: instead of an ever-growing table of past keys and values, it keeps a fixed-size state that updates as new tokens arrive, so cost grows linearly instead.
The delta rule treats that fixed-size state as an associative memory — a lookup table compressed into a matrix. At each step, the model writes a new key-value association into the state and, critically, first removes whatever old association used to sit at that key before writing the new one. This “erase, then write” pattern is what “delta” refers to: the update is the difference between what should be there and what already is, not a blind accumulation of everything seen so far.
Without some way to forget, a fixed-size memory eventually saturates — old and new information overwrite each other in ways that destroy earlier context. A few mechanisms have tackled that problem, each adding a gate that decides how much of the old state to keep at each step:
GDN’s head-wise gate is the direct ancestor of KDA — the last stop before gating got fine enough to become channel-wise.
GDN’s forget gate is head-wise. Its Gated DeltaNet architecture applies one scalar forgetting rate per attention head, so every feature dimension inside that head decays at the same speed regardless of what it represents.
KDA gives each channel its own forgetting rate. Rather than one decay value per head, KDA computes a separate gate for every feature channel within a head, so some channels hold onto information for many steps while neighboring channels in the same head decay quickly.
That precision comes from a Diagonal-Plus-Low-Rank update. KDA’s channel-wise gate is structured as a Diagonal-Plus-Low-Rank (DPLR) transition matrix — a diagonal term handles the per-channel decay while a low-rank term captures interactions across channels, keeping the update cheap despite the added granularity.
| Mechanism | Gating granularity | State update |
|---|---|---|
| Mamba2 | Scalar, shared across a channel block | Diagonal decay |
| Gated DeltaNet (GDN) | One scalar gate per attention head | Delta rule + head-wise gate |
| Kimi Delta Attention (KDA) | One gate per feature channel | Delta rule + channel-wise DPLR gate |
The added granularity is not free — it means more gate values per step — but it pays for itself precisely in workloads that depend on pulling one specific detail out of a long context rather than summarizing it broadly:
A coarser gate loses precision first on exactly these tasks.
Kimi Linear, the architecture built around KDA, doesn’t replace full attention outright — it interleaves the two, with each block of layers split as follows:
That single MLA layer gives the model a full, uncompressed look back across the entire context whenever the ratio calls for it, while the surrounding KDA layers keep the per-token cost low. Because most layers use KDA’s fixed-size state instead of storing key-value pairs for every token, the architecture cuts KV cache usage by 75% compared to a model built entirely from full attention, and reaches up to 6x higher decoding throughput at a 1-million-token context length. On the RULER long-context benchmark at 128,000 tokens, the hybrid scored 84.3% against 81.3% for a full-attention baseline — evidence the memory savings didn’t cost retrieval accuracy.
| Metric (at 1M-token context) | Full attention | KDA hybrid (3:1) |
|---|---|---|
| KV cache usage | Baseline | -75% |
| Decoding throughput | Baseline | up to 6x |
| RULER @ 128k | 81.3% | 84.3% |
Those figures come from Moonshot’s own technical report rather than an independent benchmark, worth keeping in mind when judging how directly they transfer to a different workload.
Kimi Linear outperforms full attention with a sizeable margin across all evaluated tasks, while reducing KV cache usage by up to 75% and delivering up to 6x decoding throughput at a 1M context length.Kimi Team, “Kimi Linear: An Expressive, Efficient Attention Architecture”
Anyone judging whether a hybrid attention design is worth adopting for a given workload can run through the same checklist Moonshot’s own comparisons implicitly follow:
KDA is an attention-layer decision, and it sits alongside a separate architectural choice about how a model routes computation across its parameters: sparse mixture of experts (MoE) routing. The two answer different questions about the same model:

Because those are independent design axes, a model can combine an efficient attention mechanism like KDA with an efficient routing mechanism like MoE without either one constraining the other. The same hybrid ratio and channel-wise gating logic could, in principle, sit inside a dense model or a different MoE configuration entirely, which is why readers comparing open-weight versus open-source AI models will run into KDA again wherever a lab publishes both its weights and the architectural detail behind them.
A linear attention mechanism that refines the gated delta rule with per-channel gating, letting a fixed-size recurrent state hold long context far more cheaply than standard full attention.
Gated DeltaNet applies one forget gate per attention head, so every channel in that head decays at the same rate. KDA computes a separate gate for every feature channel, giving it much finer control over what the memory retains.
An update rule that treats a fixed-size state as associative memory: at each step it removes the old association stored at a given key before writing the new one, rather than simply accumulating information without ever erasing it.
Because a single decay rate per head is too coarse — different feature channels often need to forget at different speeds. Channel-wise gating, implemented through a Diagonal-Plus-Low-Rank update, lets each channel keep or discard information independently.
No. Kimi Linear interleaves KDA with full attention in a 3:1 ratio, using Multi-head Latent Attention for the remaining layers so the model still gets a periodic, uncompressed view of the full context.