Joint KV-Cache and Recurrent-State Quantization in Hybrid Linear-Attention LLMs
Abstract
Hybrid language models that interleave linear-attention layers with softmax attention keep two inference memories: a KV cache that grows with the context and a fixed-size recurrent state. Post-training quantization has studied each in isolation, but a serving engine must split one budget between them. We present the first joint study of post-training, calibration-free quantization of both memories in Gated DeltaNet hybrids (Qwen3.5, 0.8B to 9B), with a Mamba-2 hybrid (Falcon-H1) as control. The asymmetry is large: 4-bit KV costs at most 0.03 nats, whereas a 4-bit state costs about one nat; in the Mamba-2 hybrid the same 4-bit state costs nothing, pointing to the delta rule. The two errors are only weakly super-additive, so the memories can be allocated almost independently. A noise-matched control shows that round-to-nearest is idempotent, which keeps state error far below a worst-case bound, while per-layer sensitivity is concentrated in the first layer rather than following the decay half-life. The limiting memory is task dependent: retrieval is bounded by the KV cache and reasoning by the state, where an 8-bit state lowers GSM8K accuracy from 0.600 to 0.345 unless error feedback is used. On Qwen3.5-4B, 4-bit KV with a 6-bit state and error feedback uses 32% of the bf16 cache for 0.04 nats and GSM8K 0.555, and 4-bit KV with an 8-bit state and error feedback is lossless at 40%.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- 18 pages, 14 figures. Code: https://github.com/skytinstone/hybridquant
Related papers
Direct access attention: associative recall at a fraction of the compute of softmax, linear attention and state-space models
Shared title terminologycs.LGSimon Dennis, Rivaan Patil, Hao Guo et al.
Linear Attention Has Superlinear Capacity
Shared title terminologycs.LGHao Guo, Sudhaunshu Hardikar, Simon Dennis et al.
Local Affine Quantization for KV Caches: From Shared Ranges to Prediction Error
Shared title terminologycs.LGShrey Shah, Rohith Kukkala
NestMSQ: Nested Multi-State Quantization for Fast and Accurate LLM Prefill and Decoding
Shared title terminologycs.LGSimon Kurz, Sebastian Buschjäger, Basile Lewandowski et al.
Average-Case Lower Bounds For Sparse-Attention LLMs (Or: Why Open-Source LLMs Are Falling Behind?)
Shared title terminologycs.LGYoulong Ding
Append-Observational Geometry and Nonlinear Widths of Softmax Attention States
Shared title terminologycs.LGJun He, Deying Yu