In preparation · arXiv cs.CL / cs.LG

Beyond the KV-Cache: A Survey of Transformer-Alternative Language Model Architectures

Nineteen architectures, three evolutionary phases, one unified notation. The Architecture Atlas on this site is the survey's living companion — the paper gives each node the full mathematical treatment.

16 architectures 3 evolutionary phases 1 unified notation View coverage ↓

Working abstract

Modeling long sequences with Transformers incurs a quadratic-time attention cost and a linearly growing key–value cache, which together bottleneck both training and inference. This has spurred a wave of architectures that abandon or augment the canonical attention-plus-autoregression recipe. This survey organizes nineteen representative architectures into three evolutionary phases: (1) the Linear-Sequence Revolution, which replaces the KV-cache with a fixed-size recurrent state (RNNs, 1-bit and MatMul-free models, linear-attention variants, hybrids, and pure state-space models); (2) Latent Reasoning Loops — active in-context execution that spends adaptive test-time compute inside a latent state (test-time-training layers, multi-token prediction, hierarchical and tiny recursive reasoning models, recursive language models, context language models); and (3) Beyond Causal Autoregression, the paradigm shifts that drop left-to-right decoding (energy-based models, diffusion language models, variational autoencoders, normalizing flows, flow matching, joint-embedding predictive architectures, world models, and typed “System One” decision models). A unified notation expresses every method as a transformation over a hidden state, a set of latent variables, and/or an energy function, with a master comparison across training parallelism, inference complexity, state size, recall ability, and generation paradigm (an early version is live as the Atlas's master comparison table).

The unifying idea

Nearly every Phase-1 model is a special case of a single gated matrix-state recurrence:

$$ S_t = G_t \odot S_{t-1} + k_t^{\top} v_t, \qquad o_t = q_t S_t $$

Linear attention drops the gate; GLA makes it data-dependent and diagonal; Mamba-2 restricts it to scalar-times-identity (the State-Space Duality); DeltaNet replaces the additive write with a delta-rule correction, and Gated DeltaNet puts Mamba-2's gate back on top. And the delta rule itself is provably a step of test-time gradient descent — which is exactly where Phase 2 begins. The survey's contribution is making that cross-walk explicit, in one notation, with the receipts — the table below is its first draft.

The gate \(G_t\) is the whole argument in one control: push it toward the identity and the state is preserved, push it toward zero and the state is overwritten. Every Phase-1 architecture in the survey is a different answer to who decides that value.

Seven models, one recurrence

The claim above, with the receipts. Each row writes one model as a gate \(G_t\) applied to the old state plus a write term — the two slots of the unified recurrence. Select a row to light up the terms it fills in the equation above and see the model's own update written in that notation.

Phase-1 recurrences and test-time training in one notation
Model · source Decay / gate \(G_t\) Write rule (added to \(G_t \odot S_{t-1}\)) State (per head)
Katharopoulos et al., 2020 · arXiv:2006.16236 \(\mathbf{1}\) — no decay \(\phi(k_t)^{\top} v_t\), with \(\phi = \mathrm{elu}+1\) and a running normaliser \(z_t = z_{t-1} + \phi(k_t)\) \(d_k \times d_v\)
Yang et al., 2023 · arXiv:2312.06635 \(\alpha_t^{\top}\mathbf{1}\), with \(\alpha_t = \sigma(x_t W_\alpha^{1} W_\alpha^{2})^{1/\tau} \in (0,1)^{d_k}\) — data-dependent, one rate per key channel \(k_t^{\top} v_t\) \(d_k \times d_v\)
Dao & Gu, 2024 · arXiv:2405.21060 \(a_t = \exp(\Delta_t A)\) — one scalar per head (scalar × identity) \(B_t^{\top}(\Delta_t x_t)\): \(B \leftrightarrow k\), \(x \leftrightarrow v\), and \(C \leftrightarrow q\) on readout \(N \times P\) (state size × head dim)
Schlag et al., 2021 · arXiv:2102.11174; Yang et al., 2024 · arXiv:2406.06484 \(\mathbf{1}\) — no decay \(\beta_t\, k_t^{\top}(v_t - k_t S_{t-1})\), \(\beta_t \in (0,1)\): write the error, not the value \(d_k \times d_v\)
Yang, Kautz & Hatamizadeh, 2024 · arXiv:2412.06464 \(\alpha_t \in (0,1)\) — one scalar per head, Mamba-2's parameterisation \(\beta_t\, k_t^{\top}(v_t - \alpha_t k_t S_{t-1})\) \(d_k \times d_v\)
Peng et al., 2025 · arXiv:2503.14456 \(w_t^{\top}\mathbf{1}\), with \(w_t = \exp(-e^{-0.5}\,\sigma(d_t))\) — vector-valued, per channel \(\tilde{k}_t^{\top} v_t - (a_t \odot \hat{\kappa}_t)^{\top}(\hat{\kappa}_t S_{t-1})\): generalised delta rule with separate removal key \(\hat{\kappa}_t\), replacement key \(\tilde{k}_t\) and vector in-context learning rate \(a_t\) \(64 \times 64\)
Sun et al., 2024 · arXiv:2407.04620 \(\mathbf{1}\) — the state is the inner model's weights \(W_t\) \(-\eta\,\nabla_W \ell(W_{t-1}; x_t)\), \(\ell = \lVert f(\theta_K x_t; W) - \theta_V x_t \rVert^2\). For linear \(f\), one example per step, without the LayerNorm and residual: \(2\eta\, k_t^{\top}(v_t - k_t S_{t-1})\) — the delta rule \(d \times d\) (TTT-Linear); MLP weights (TTT-MLP)

One convention throughout: row vectors, \(S_t \in \mathbb{R}^{d_k \times d_v}\), \(o_t = q_t S_t\) — GLA's. The DeltaNet, Gated DeltaNet, RWKV-7 and TTT papers write the transposed state (\(S_t k_t\), \(v_t k_t^{\top}\)); the rows above are transposed to match, and each was checked against the paper's own update equation. Short convolutions, output gates and q/k normalisation are left out — they change the parameterisation, not the recurrence.

Figures in progress

One mechanism per phase, drawn.

Interactive drafts of the mechanism figures the survey argues from. Each one is the load-bearing claim of its phase — what the state does, what the loop does, and what happens when you drop autoregression or drop precision entirely.

The recurrence is associative, so training stays parallel even though inference is sequential — this is the property that makes a fixed-size state competitive at all. Deep-dive: Mamba: From Intuition to Proof →.

The 1-bit / MatMul-free node: ternary weights collapse matrix multiplication into additions, and the accuracy gap at the 2B scale is about a point. Deep-dive: How BitNets Run a Transformer With (Almost) No Multiplication →.

Latent reasoning loops spend test-time compute inside the state rather than in emitted tokens. Deep-dive: Tiny Recursion Models →.

Diffusion language models drop causal autoregression altogether — the answer is denoised in parallel, so decoding cost is set by the number of denoising steps, not the number of tokens.

Coverage map

Nineteen architectures. One deep-dive each.

Every architecture in the survey gets its own published article first — the deep-dives are how each section earns its place. Eight deep-dive pages are live on the Writing page, plus the multi-token prediction piece on Towards AI — 9 deep-dives in all. The rest are queued in survey order.

Phase 3 · Beyond Causal Autoregression

Status

Last updated 15 Nov 2026

  • Scope: the nineteen anchor architectures mapped in the Atlas, field state verified as of November 2026 (System One / Jev and Context LMs added on release; variational autoencoders added for their latent-space comeback in CALM and Parallel LMs; normalizing flows and flow matching added as the continuous-generation lineage that diffusion LLMs inherit).
  • Skeleton complete: three-phase taxonomy (tree above), unified notation table (the cross-walk above), master comparison table (live in the Atlas), per-architecture template.
  • Drafting now: Phase-1 subsections, beginning from the published deep-dives on the Writing page.

A note on System One / Jev. Jev is a commercial product, not a paper: TypeSafe has published a launch post and documentation, but no technical report. It is in the survey as an industry data point for Phase 3, and its claims — latency, calibration, no type errors — are cited as TypeSafe's own, including the documented option-order bias of jev-1.13. None of them has been independently reproduced here.

Interested in the draft, or in collaborating? Reach me via Medium or GitHub.