arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.04098

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

Sergii Kozyrev, Davyd Maiboroda

Abstract

Hybrid large language models pair softmax attention with linear-attention layers such as Gated DeltaNet (GDN), whose recurrent state summarizes the entire context in fixed size. Early community 4-bit quantizations of Qwen3.8-27B (48 GDN layers, 16 attention layers) uniformly left the GDN block in 8- or 16-bit precision — in particular its decay and write-strength gate projections — 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%) of the recipes we compare, and its 32K perplexity gap shrinks with position in the context window. We then explain why with a four-part mechanism study on captured activations: (i) GDN inputs share the residual stream's extreme outliers, but NVFP4's 16-element block scaling localizes them, equalizing activation error across all layer roles; (ii) the supposedly fragile gate projections are the least sensitive — their softplus/exponential and sigmoid parameterizations compress a ~11% GEMM error to a ~2% output error; (iii) the delta-rule recurrence bounds injected quantization noise at a flat plateau over 32K tokens and forgets a state impulse within hundreds of steps, far faster than its decay-gate horizons, because each write overwrites the state along the current key direction; (iv) end-to-end, the per-token quantization cost washes out with context instead of compounding. Along the way we identify and 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 we show that calibrated FP8 KV-cache scales are performance-free and recover 83% of the quantized model's long-context KV penalty. The result is 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. The quantized checkpoint is released at https://huggingface.co/minima-ai/mnma_qwen3.8_27b_nvfp4.

1 Introduction

Serving cost has made 4-bit weights-and-activations (W4A4) inference a practical target: NVFP4 pairs E2M1 4-bit values with an E4M3 scale per 16-element block and runs natively on current accelerators. At the same time, frontier open models are increasingly hybrid: most layers replace softmax attention with linear-attention operators whose state is a fixed-size matrix updated recurrently — in Qwen3.8-27B [12], 48 of 64 layers are Gated DeltaNet [16] and only 16 are full attention.

These two trends have only just begun to meet. Every public 4-bit build of Qwen3.8-27B we examined at the outset — and the model authors' own FP8 release — quantizes the MLPs aggressively but protects the GDN block: its query/key/value, output, and especially its gate projections (aa, controlling the decay αt\alpha_t, and bb, controlling the write strength βt\beta_t) stay in 8- or 16-bit. The implicit argument is natural: a recurrence St=αtSt−1+βtkt(vt−St−1⊤kt)⊤S_t = \alpha_t S_{t-1} + \beta_t k_t (v_t - S_{t-1}^\top k_t)^\top carries its state across tens of thousands of tokens, so a per-step quantization error should compound, and errors in the gates should compound fastest.

This paper shows the intuition is backwards for this architecture, and explains why. Our contributions:

  1. A true W4A4-GDN model, evaluated seriously. MINIMA quantizes all 496 linear layers of Qwen3.8-27B to NVFP4 W4A4, GDN gates included. Under a fixed serving regime (FP8 KV cache, identical harness, per-sample validity checks), it matches BF16 and two community recipes within seed noise on six accuracy suites while being the smallest and the fastest at prefill (§4).

  2. A mechanism study of why it works (§5): activation statistics on captured 32K-token inputs, per-projection sensitivity replay, error propagation through the recurrence in lockstep FP32, and a positional decomposition of the perplexity gap. The chain — block scaling localizes outliers, gate nonlinearities squash what remains, the delta rule actively erases state error, and the end-to-end gap shrinks with context — turns “it happens to work” into an architectural account, and shows the protected projections were precisely the safest ones.

  3. Serving-stack findings required to measure any of this correctly (§6): a global-scale mismatch between per-module NVFP4 calibration and fused serving GEMMs that silently corrupts the GDN gates (and fakes better long-context perplexity); a multimodal-composite serving path that degrades long-context scoring; and a chat-template pitfall that invalidates raw-completion harnesses for thinking models.

  4. A KV-cache recipe (§7): FP8 KV halves KV memory and moves no task score; its one visible cost — a +0.41 perplexity penalty at 32K, 3× larger for the quantized model — is eliminated by calibrated per-layer scales that are free at serving time (83% recovered, throughput unchanged within 0.4%).

References (14)