Hybrid Attention
Hybrid attention mixes different sequence-processing mechanisms within one model stack. In the architectures covered here, most layers use a recurrent linear-attention or state-space module. A smaller number retain softmax attention for direct content lookup.
The combination addresses two costs of long contexts. During prefill, standard self-attention compares all token positions and its score computation grows quadratically with sequence length. During autoregressive decoding, each attention layer also keeps a key-value (KV) cache that grows with the context. Recurrent layers such as Gated DeltaNet or Mamba-2 carry a fixed-size state instead.
Keeping some full-attention layers gives the model periodic access to individual cached tokens. The recurrent layers handle most of the sequence at lower cost. For this reason, I find the layer ratio more informative than the label “hybrid attention” alone. Qwen uses three recurrent layers per attention layer, while other models choose different mechanisms and ratios.
Summary
Most blocks use a cheaper recurrent sequence module, while periodic attention layers retain direct token lookup
Why keep attention
A recurrent state compresses the past; attention layers can revisit individual cached tokens
Example architectures
Qwen3-Next 80B-A3B, Qwen3.5 397B, Kimi Linear 48B-A3B, Ling 2.5 1T, Nemotron 3 Nano 30B-A3B, and Nemotron 3 Super 120B-A12B
How the Qwen pattern works
Qwen3-Next 80B-A3B has 48 layers arranged as 12 repetitions of the 3:1 pattern. Three Gated DeltaNet blocks are followed by one Gated Attention block. This means 36 layers use recurrent linear attention and 12 layers retain softmax attention.
Inside a Gated DeltaNet block, the model computes query, key, and value vectors together with two learned gates (alpha and beta). It writes to a small fast-weight memory using a delta-rule update. The state acts as a running summary of the past. One gate controls memory decay, and the other controls how strongly the new value updates that state.
The state size does not grow with the sequence. A Gated Attention layer has the familiar token-to-token attention path and keeps a KV cache, so it remains more expensive at long context lengths. Only one quarter of Qwen’s layers pay that cost.
Qwen3.5 keeps the same 3:1 backbone in Qwen’s main model family. For example, the 60-layer Qwen3.5 397B-A17B model repeats the four-layer group 15 times. The model differs from Qwen3-Next in scale and other parts of its architecture, but the sequence-mixing schedule remains recognizable.
Kimi Linear changes both halves
Kimi Linear uses 20 Kimi Delta Attention (KDA) layers and 7 gated Multi-Head Latent Attention (MLA) layers. This is approximately the same 3:1 schedule as Qwen3-Next.
KDA refines the Gated DeltaNet memory update. Qwen3-Next uses one scalar decay gate per head. KDA learns a separate decay value for each feature channel, giving the recurrent state more control over what it retains. The periodic MLA layers provide softmax attention while compressing their keys and values into a smaller latent representation.
The useful comparison is the division of work. KDA compresses the processed history into a fixed-size state. MLA can revisit specific earlier tokens, although its KV cache still grows with the sequence.
Ling 2.5 uses Lightning Attention
Ling 2.5 uses another recurrent linear-attention mechanism called Lightning Attention. Its stack has one MLA layer for every seven Lightning Attention layers. This 1:7 ratio places even more of the sequence processing on the recurrent path than the Qwen and Kimi layouts.
The MLA layers compress the KV representation and retain direct content lookup. Lightning Attention carries the remaining layers with a recurrent state. Ling therefore follows the same general recipe with a different lightweight mechanism and a different ratio.
The Ling team reports 3.5 times the throughput of Kimi K2 at a 32k-token sequence length. Both models have roughly one trillion total parameters, although their active parameter counts and architectures differ. This is a vendor-reported system comparison. It measures the complete Ling implementation and does not isolate Lightning Attention.
Nemotron uses Mamba-2 layers
The Nemotron 3 models use Mamba-2 as the cheaper sequence module. Mamba-2 is a state-space model and serves a similar role in the hybrid. It maintains a recurrent state and avoids a sequence-length-dependent KV cache.
Nemotron 3 Nano has a 52-layer stack with 23 Mamba-2 layers, 23 sparse mixture-of-experts layers, and 6 attention layers. The attention layers are only a small part of the stack. Mamba-2 handles most of the sequence processing, and the MoE layers handle the feed-forward computation.
Nemotron 3 Super scales this layout to 40 Mamba-2 layers, 40 Latent MoE layers, and 8 attention layers. It also adds shared-weight Multi-Token Prediction (MTP). Latent MoE affects expert computation, while MTP supports speculative decoding. Both are separate from the choice to interleave recurrent and attention layers.
What the hybrid trades away
A recurrent state has fixed size, so it cannot preserve every earlier token as a separate entry. The state must decide what to retain as new tokens arrive. Periodic attention layers compensate by giving the model direct access to their cached history, but they do not remove this compression from the intervening recurrent layers.
The design also reduces KV-cache growth without eliminating it. The remaining attention or MLA layers still cache past tokens. Their number, placement, and attention type determine how much memory the hybrid saves.
Model-level results include many other choices, including training data, MoE design, numerical precision, and optimized kernels. Without matched ablations, a throughput or quality comparison cannot be assigned to the hybrid schedule alone.
Sources