Raindrop lab · Glossary

hybrid model

How to explain it

A model whose layers are not all the same kind. Qwen3.5-4B has two kinds of layer, which take turns: three of one kind, then one of the other, eight times over. Lesson 4 calls this three whiteboards per archive.

A model that stacks two kinds of layer. In Qwen3.5-4B the 32 layers come in a fixed rhythm: 3 linear-attention layers, then 1 full-attention layer, 8 times over, so 24 and 8 in all. Both kinds read the same residual stream and add to it; they differ in how a token learns about the tokens before it. Lesson 4 pictures the first kind as a whiteboard and the second as an archive.

Full attention lets each position look back at every earlier position, at a cost that grows with the length of the text; linear attention keeps a memory of fixed size instead, so its cost per token stays flat. A hybrid stacks both. Qwen3.5 uses Gated DeltaNet for its linear-attention layers, in the cadence 3 linear to 1 full: 8 groups of 3 and 1 in the 4B, 24 and 8 of its 32 layers. Every member of the Qwen3.5 family keeps that cadence, from 0.8B to 397B.

Qwen3.5-4B's config lists its layer_types with full_attention_interval 4: layers 4, 8, …, 32 are full attention, 8 in all, and the other 24 of the 32 are Gated DeltaNet (Yang, Kautz and Hatamizadeh, 2024), a linear-attention layer whose state is a fixed-size matrix updated by a delta rule, with a short convolution in front: 8 groups of 3 and 1. The 3 to 1 cadence came with Qwen3-Next, and the whole Qwen3.5 family keeps it, from 0.8B to 397B (checked against each model's config, 2026-10-20).

The two kinds are mixed because each has a price. One kind has a memory that never grows, so it is cheap on long texts but cannot keep every detail. The other keeps everything, so it gets more costly the longer the text.

Why mix them? A linear-attention layer's memory never grows, so it costs the same at any length but cannot keep every detail. A full-attention layer keeps every token, so it recalls exactly but costs more with every token read. Putting full attention on 1 layer in 4 keeps exact recall at a quarter of the growing cost. The two kinds also seem to end up carrying different things: in Qwen3.5-4B, exact details are recalled mostly from the full-attention layers, while the linear-attention ones carry broader things, such as which language to answer in.

The trade-off is recall against cost. Experiments that vary the mix find that language modelling is nearly as good at any ratio, while recall improves as full-attention layers are added, which is why hybrids settle near 3 linear layers to 1 full. What each kind carries is not fixed by the design: in models built only from linear attention, exact details live in its state, while in a hybrid they move to the full-attention layers. So neither kind is the lesser reader; in a hybrid each carries what the other does not.

Wang et al. (2025, A Systematic Analysis of Hybrid Linear Attention): the linear-to-full ratio "primarily controls recall", with language modelling stable across ratios, and they recommend 3 to 1 up to 6 to 1. With full attention on 1 layer in 4, Qwen3.5-4B's keys and values grow at a quarter of the rate of a model with full attention throughout (lesson 4's probe, from the cache). On what each kind carries: Lee et al. (2026) find that the recalled item sits in the recurrent state of purely linear models and almost entirely in the keys and values of hybrids, Qwen3.5-4B among them; Afendulev et al. (2026) find attention recalling items and recurrence carrying behaviour; Raindrop's split-prefill runs repeat both on our model. For a fact stored in the weights, Raindrop's studies 2.10 to 2.12 found two overlapping routes to the answer, one through the full-attention layers' reads and one through the linear-attention layers; the Mechinterp curriculum has the details.