AI inference glossary
Model architecture

Linear attention

Also known as GatedDeltaNet, recurrent attention, constant-state attention

In plain English

Linear attention keeps a fixed-size running summary instead of every past token, so its memory does not grow as the conversation does.

Technical definition

Linear attention replaces the growing key and value cache with a recurrent state of constant size that is updated as tokens arrive.

Engineering details

Standard attention stores state proportional to sequence length and rereads it every step. A linear or gated recurrent layer carries a fixed-size state instead, trading exact recall of every position for bounded memory. Architectures such as GatedDeltaNet apply this on a fraction of layers, leaving full attention elsewhere to preserve precise long-range lookup.

Why it matters

For long context the storage saving is substantial, but the state changes what caching means. It cannot be reconstructed from surrounding tokens the way a window tail can, so if it is dropped the only way back is replaying the sequence, and reuse requires an explicit checkpoint mechanism rather than ordinary block reuse.

How to read it in InferenceX

InferenceX serves models using these layers, and engine support for checkpointing and transferring recurrent state is part of the recipe. A model can be day-zero servable and still lack reuse of that state, which shows up as unexpectedly high prefill cost on repeated turns.