计算机科学 > 机器学习
[提交于 2026年11月28日]
标题:Joint KV-Cache and Recurrent-State Quantization in Hybrid Linear-Attention LLMs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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%.
提交历史
来自:Minseok Shin[v1] 2026年11月28日 星期六 16:46:08 UTC (575 KB)