JA EN
LearnHow Transformers Work
·★ MEMBER·PAPER·10 min read

Paper Explained: Why Gated DeltaNet Survives 4-Bit Quantization — NVFP4 W4A4 in a Hybrid 27B

A walkthrough of the paper that tested — and overturned — the belief that the recurrent half of a hybrid LLM is too fragile for 4-bit quantization, and explained mechanistically why log-space gates and the delta rule erase quantization noise.

ModalitytextTaskarchitecture

Why Gated DeltaNet Survives 4-Bit Quantization: NVFP4 W4A4 for the Recurrent Half of a Hybrid 27B LLM

Primary source — what this article is built on

undefined2026-09-03undefined2026-09-06same month

Why Gated DeltaNet Survives 4-Bit Quantization: NVFP4 W4A4 for the Recurrent Half of a Hybrid 27B LLMSergii Kozyrev, Davyd Maiboroda · 2026-09-03 · v1arXiv:2609.04098Paper page·PDF
undefined

Hybrid LLMs pair softmax attention with linear-attention layers such as Gated DeltaNet (GDN), whose recurrent state summarizes the context in fixed size. Early community 4-bit quantizations of Qwen3.8-27B (48 GDN layers, 16 attention layers) left the GDN block in 8- or 16-bit precision -- especially its decay and write-strength gates -- on the intuition that errors in a recurrence accumulate over long contexts. We test that intuition by building Minima: NVFP4 W4A4 on all 496 linear layers, GDN included. Across perplexity at 4K/32K, MMLU-Pro, GSM8K, AIME'25, GPQA-Diamond, LiveCodeBench, and RULER retrieval to 64K, Minima matches BF16 within seed noise (5-task average -0.52) while being the smallest (17.5 GiB) and fastest-prefill (+14-19%) recipe we compare, and its 32K perplexity gap shrinks with position. A four-part mechanism study explains why: (i) NVFP4's 16-element block scaling localizes the residual stream's extreme outliers, equalizing activation error across layer roles; (ii) the supposedly fragile gate projections are the least sensitive -- softplus/exponential and sigmoid parameterizations compress ~11% GEMM error to ~2% output error; (iii) the delta-rule recurrence holds injected noise at a flat plateau over 32K tokens and forgets a state impulse within hundreds of steps, because each write overwrites the state along the current key direction; (iv) the per-token quantization cost washes out with context instead of compounding. We also repair a global-scale mismatch that arises when per-module-calibrated NVFP4 checkpoints are served by kernels that fuse those modules into one GEMM, and show calibrated FP8 KV-cache scales are performance-free. The result: a practical recipe -- quantize everything, ship KV scales -- and a mechanistic account of why the recurrent half of a hybrid LLM is the easy half to quantize. Checkpoint: https://huggingface.co/minima-ai/mnma_qwen3.8_27b_nvfp4


Questioning the intuition that recurrence is fragile

The paper read here is "Why Gated DeltaNet Survives 4-Bit Quantization: NVFP4 W4A4 for the Recurrent Half of a Hybrid 27B LLM" (Sergii Kozyrev, Davyd Maiboroda / arXiv:2609.04098, 3 Sep 2026).

Here is its abstract in plain terms. Frontier open models are increasingly hybrid: most layers replace softmax attention with a linear-attention operator whose state is a fixed-size matrix summarizing the whole context — in Qwen3.8-27B, 48 of 64 layers are Gated DeltaNet (GDN) and only 16 are full attention. Yet every early 4-bit build of that model left the GDN block, and especially its decay and write-strength gate projections, at 8 or 16 bits, on the reasoning that errors inside a recurrence accumulate. The paper tests that reasoning by building Minima: NVFP4 W4A4 across all 496 linear layers, GDN included, and evaluating it on perplexity at 4K/32K, MMLU-Pro, GSM8K, AIME'25, GPQA-Diamond, LiveCodeBench, and RULER retrieval to 64K. Minima matches BF16 within seed noise (5-task average 0.52-0.52) while being the smallest (17.5 GiB) and fastest-prefill (+14–19%) recipe compared — and its 32K perplexity gap shrinks with position. A four-part mechanism study explains why.

An analogy: broken telephone, or an overwritten whiteboard?

The fear about recurrence is the game of broken telephone. Each person mishears a little; a hundred people later nothing survives. Inject 4-bit rounding error into a layer that updates a state StS_t every step, the argument goes, and thirty thousand tokens later it must be wrecked.

What the paper shows is that GDN's state behaves more like a shared whiteboard. Each new token erases and rewrites the slot corresponding to its own key. Old writes do not merely fade — they get deleted. Errors disappear at the same rate.

Background 1: what rounding to 4 bits actually does

NVFP4 stores values in E2M1 (1 sign, 2 exponent, 1 mantissa bit) with one E4M3 scale per 16-element block (set to blockmax/6) plus one FP32 scale per tensor. W4A4 means both weights and activations are quantized at that granularity, so the GEMM runs on native 4-bit tensor cores (§2).

Two consequences matter later. First, a block's largest value fixes its scale, so an outlier degrades only its own 15 neighbors. Second, within a block max/RMS16=4\max/\mathrm{RMS}\le\sqrt{16}=4, which bounds how "one-hot" a block can get. The fastest way to feel what coarse quantization does is to watch it in image compression.

FIG 1Quantize more coarsely and error appears block by block. NVFP4 shares the idea — pick a scale per 16-element block, then round.

Background 2: what Gated DeltaNet computes

A GDN layer projects the residual stream through four linear maps: in_proj_qkv (which passes a depthwise causal convolution and SiLU before splitting into qt,kt,vtq_t,k_t,v_t), the output gate in_proj_z, and two scalar-per-head gate projections in_proj_a and in_proj_b. The gates are parameterized in log space (§2).

gt=exp(Alog)softplus(at+dt_bias),αt=egt(0,1),βt=σ(bt)(0,1)g_{t}=-\exp(A_{\log})\,\operatorname{softplus}(a_{t}+\mathrm{dt\_bias}),\qquad \alpha_{t}=e^{g_{t}}\in(0,1),\qquad \beta_{t}=\sigma(b_{t})\in(0,1)
(1)

Read it aloud: ata_t is the raw projection output; pushed through softplus and an exponential it becomes αt\alpha_t, how much to keep (closer to 1 means forgetting less); and btb_t through a sigmoid σ\sigma becomes βt\beta_t, how hard to write. Note where quantization noise lands — not on α\alpha itself but on ata_t, upstream of the nonlinearity. That detail carries the whole result.

The per-head state StS_t (a K×V=128×128K\times V = 128\times128 matrix) then evolves over 2\ell_2-normalized keys and queries:

St=αtSt1+βtkt(vtSt1kt) ⁣,ot=St(qt/K)S_{t}=\alpha_{t}S_{t-1}+\beta_{t}\,k_{t}\bigl(v_{t}-S_{t-1}^{\top}k_{t}\bigr)^{\!\top},\qquad o_{t}=S_{t}^{\top}\bigl(q_{t}/\sqrt{K}\bigr)
(2)

The term in parentheses, vtSt1ktv_t-S_{t-1}^{\top}k_t, is the point: it is the difference between what the state currently answers for key ktk_t and the value vtv_t we actually want stored. GDN does not accumulate vtv_t; it replaces whatever sat along the direction of ktk_t with vtv_t. That is why it is called the delta rule.

So five weight matrices per GDN layer are candidates for quantization, and the community consensus protects aa and bb entirely while keeping the rest at 8 bits. Minima instead quantizes 496 tensors — 240 GDN, 64 attention, 192 MLP projections — leaving only embeddings, lm_head, the GDN conv1d, the norms, and AlogA_{\log}/dt_bias in BF16, calibrated on a frozen set of 128 samples × 32K tokens and served text-only on a single RTX PRO 6000 with native NVFP4 support (§3).

Main result: quantize all of it, nothing breaks

Four checkpoints, one regime (vLLM 0.27.1, TP=1, a single RTX PRO 6000, FP8 KV cache, identical harness) (§4): BF16, Minima, and the two public builds Unsloth Dynamic v3 and RadixArk — both of which keep GDN and attention at FP8 W8A8 with aa/bb in BF16 and quantize only the MLPs to NVFP4. Three things come out of the comparison, and the third one is where the paper's argument actually starts.

That direction — the gap shrinking as context grows — is the thread the rest of the paper pulls.

What's behind this

§

Members-only from here

371 walkthroughs, 26 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with three new explainers every day. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

References

  1. Sergii Kozyrev, Davyd Maiboroda. (2026-09-03) Why Gated DeltaNet Survives 4-Bit Quantization: NVFP4 W4A4 for the Recurrent Half of a Hybrid 27B LLM. arXiv:2609.04098Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Comments

Sign in to comment