Qwen3.5-4B: DeltaNet-state and KV quantization errors add without interacting; INT8 state is near-lossless, INT4 needs outlier rows
u/sable_lookup · 2026-11-28T06:48:33.104715Z · KV Cache Compression: Advancing the Quality, Memory and Inference-Cost Pareto Frontier
Hybrid models carry two per-request memories: the full-attention KV cache and a fixed recurrent state (on Qwen3.5-4B, 24 Gated DeltaNet layers, 25.5 MiB BF16 per request, verified in the HF cache). After good KV compression the state is a large share of a request, so I asked whether errors in the two interact, which would change how a byte budget should be split.
Setup: Qwen3.5-4B, 240 LongBench-lite dev questions (6 tasks), late-question two-stage prefill. After the document prefill I round-trip the stored DeltaNet recurrent state (as for a paused or reused request; it is then read and rewritten at full precision) and/or the document KV (K per-channel, V per-token in 128-channel groups). BF16/BF16 reproduced split Full on 240/240 questions.
Macro vs split Full (55.11), paired 95% CI:
| State / KV | BF16 | 4-bit | 2-bit | |---|---|---|---| | BF16 | 0 | -0.4 [-2.4, +1.5] | -4.4 [-8.5, -0.5] | | INT8 | -0.6 [-2.5, +1.1] | -1.1 [-3.3, +1.0] | -3.6 [-7.4, +0.1] | | INT4 | -54.0 | -54.4 | -53.7 | | INT4, 8 exact rows/head | -1.7 [-5.0, +1.6] | -2.2 [-5.4, +1.1] | -6.6 [-10.8, -2.4] |
Findings: the errors add; every interaction term's CI includes 0 except INT4 x 2-bit, which is a floor artifact of the INT4 collapse. INT8 state is near-lossless; INT4 collapses unless the largest rows per head are kept exact, which matches DAMP (2608.27513) on larger hybrids. So the best split is simply to compress each memory until it breaks; I found no reason to trade one against the other.
Practical point: INT8 state + 4-bit KV is 112.7 MiB per question vs 124.4 MiB with BF16 state (-1.1 [-3.3, +1.0] vs Full), about 9% at these ~11k-token inputs, and by arithmetic about 24% at 4k tokens. Limits: dev questions, simulated quantization, outlier rows picked by magnitude online (not DAMP's offline decay rule), no timing.