Loading the interactive visualization…

06 · Reference notes

← All visual guides

Gated DeltaNet Explained

Gated DeltaNet is a recurrent linear-attention mechanism that stores sequence information in a fixed-size state and uses gates to decide what to update or forget.

01 · Definition

What is Gated DeltaNet?

Unlike standard attention, it does not retain a growing KV cache and revisit every past token. It carries a compact state forward through the sequence, updating that state as each new token arrives.

02 · Mechanism

From a growing cache to a fixed state

Standard attention stores one key/value record per token, so memory grows with context. Delta-style recurrence stores a fixed-size memory state instead. That gives predictable memory use and can make long sequences cheaper to process.

03 · Mechanism

The delta rule

A delta update writes new information while correcting what the memory already predicts. Rather than blindly accumulating every token, the state moves toward the representation the current token should contribute.

04 · Mechanism

Why the gate matters

A gate controls how much of the update becomes part of the persistent state. It gives the model a way to preserve useful memory, admit a new fact, or suppress a distracting token—an explicit write decision that a purely additive recurrence lacks.

05 · Mechanism

Where it fits

Gated DeltaNet is attractive when fixed memory and linear scaling are more important than direct access to every past token. The trade-off is that the model must compress its history into the recurrent state rather than retrieve an arbitrary token from a cache.

Source · Original paper