Why transformers and Mamba can't track state — and what changes
Transformers and diagonal linear RNNs (Mamba, GLA) sit inside a proven complexity ceiling — they cannot track arbitrary permutation-group state such as parity, no matter how much they scale. DeltaNet escapes this because its recurrence is secretly one step of gradient descent, which produces a Householder reflection as its state-transition matrix. DeltaProduct takes that idea further by chaining multiple reflections per token.
Left branch: architectures bounded by the TC0 circuit-complexity ceiling. Right branch: DeltaNet's gradient-descent reinterpretation, and DeltaProduct's generalization of it — explored in the next tab.
One reflection vs. two: why Cartan–Dieudonné matters
DeltaNet's update is I − β k kᵀ — a generalized Householder reflection derived from one gradient
step on an associative-recall objective. DeltaProduct takes n_h steps per token, composing n_h reflections. Toggle
below to see why going from one reflection to two is a qualitative jump, not an incremental one.
Dashed lines are the two mirror (reflection) planes. v₀ (cyan) is the initial state vector.
Group word problems: S3, S4, A5, S5
Trained on sequences of 128 permutations, tested for extrapolation to 512. Color = generalization accuracy past training length at a single layer, for a given n_h. Hover any cell for the exact reading.
Illustrative data reflecting the paper's reported trends, not the exact reported numbers.
Layers needed: DeltaNet (n_h=1) vs. DeltaProduct at optimal n_h
S5 never fits the training length under plain DeltaNet even at 10 stacked layers; DeltaProduct solves it in 1 layer at n_h=4 — the same reflection count the theorem predicts (n−1).
Real language models: 200M – 1.3B params, FineWeb
Length extrapolation is tested past the 4096-token training context on CodeParrot, OpenThoughts-Math, and TriviaQA. Switch the metric below to see why n_h=2 is the practical sweet spot.
n_h 1→2 produces a sharp improvement; n_h 2→3 nearly flattens. DeltaNet's state keeps accumulating rank past 4096 tokens, drifting out of distribution; gated DeltaProduct heads learn to reset and bound it. Illustrative data reflecting the paper's reported trends.
Does the gap survive scale?
Parameter-matched by scaling head dimension (Figure 10 in the paper). DeltaProduct (n_h=2) keeps its edge to the largest scale tested, 1.3B params — the recurrence itself costs n_h× the sequential compute per token, clawed back partly by a Triton kernel ~20% faster than DeltaNet's baseline.
The n_h dial: expressivity vs. compute
Move the slider to see which group word problems become solvable in a single layer at each n_h, against the linear compute cost it buys.
Architecture comparison
| Metric | DeltaNet (n_h=1) | DeltaProduct n_h=2 | DeltaProduct n_h=3 | RWKV-7 |
|---|---|---|---|---|
| State-tracking ceiling | Diagonal + rank-1; S3/S4/A5 fail past training length | S3, S4, A5 solved; S5 fails | S3, S4, A5 solved; S5 improves, not solved | Proven: any regular language, 4 layers (theory) |
| Sequential compute / token | 1× | 2× | 3× | Variable — no head-to-head run in this paper |
| Spectral norm bound | ≤ 1 (stable) | ≤ 1 (stable) | ≤ 1 (stable) | Not bounded — trades stability for per-layer expressivity |
| Largest scale tested | 1.3B params, FineWeb only | Not directly compared here | ||
What this paper doesn't show
Verdict: an elegant mechanism, tied to a real theorem, that measurably buys expressivity DeltaNet lacks — with the S4/A5 isomorphism a genuine surprise. Good NeurIPS-caliber science on a specific mechanism; not a settled verdict on linear RNNs beating Transformers at scale.