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

Manuscript Offprint

arXiv:2608.27513

DAMP: Decay-Aware Mixed-Precision Recurrent-State Quantization

Tao Zhang, Jianchao Tan, Pingwei Sun, Yanqi Yu, Zixu Jiang, Yuchen Xie, Xunliang Cai, Ziqian Zeng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Softmax attention stores key and value vectors for every preceding token, causing inference memory to grow with sequence length. Recent language models incorporating Gated DeltaNet (GDN) or Kimi Delta Attention (KDA) reduce this cost by replacing the KV cache in most layers with fixed-size recurrent states. However, these recurrent states are commonly stored in FP32 and consume substantial GPU memory; their updates are memory-bandwidth bound and contribute significantly to decoding latency. To our knowledge, we are the first to study post-training quantization of recurrent states in GDN and KDA based language models. We find that uniform quantization provides a poor accuracy–storage trade-off: INT8 and FP8 already degrade accuracy on complex reasoning tasks, while INT4 and NVFP4 reduce it to near zero. We further find that most quantization-error energy is concentrated in a small subset of channels and that the relative decay strength of state channels remains stable across prompts and tasks. Motivated by these findings, DAMP uses both quantization-error energy and decay-based persistence to identify high-risk channels during offline calibration. It stores these channels at higher precision and the remainder in INT8. We evaluate DAMP on Qwen3.6-35B and Kimi-Linear-48B across six benchmarks covering mathematical reasoning, general reasoning, and code generation. At 9.9 bits per state value, DAMP maintains average accuracy close to the FP32 baseline. DAMP reduces recurrent-state storage by 69.1%, accelerates the recurrent-state update kernel by up to 2.01×2.01\times, and lowers full-model TPOT by up to 10.9%.

1 INTRODUCTION

Complex reasoning and agentic applications increasingly rely on long contexts and extended sequences of reasoning and interaction (Kimi Team, 2025; 2026). Softmax attention, however, stores a key and value vector for every processed token, making the KV cache a major memory bottleneck as these trajectories grow. To reduce this cost, recent models adopt hybrid architectures that use Gated DeltaNet (GDN) or Kimi Delta Attention (KDA) in most layers while retaining full attention in a smaller subset (Zhang et al., 2025; Qwen Team, 2026; Kimi Team, 2026).

In each linear-attention layer, past information is maintained in a fixed-size recurrent matrix (Yang et al., 2025; Zhang et al., 2025). In current serving systems, these states are commonly stored in FP32, with one copy per active request. In our measurements of Qwen3.6-35B at batch size 256, recurrent states alone occupy 15 GB of GPU memory. State updates also read and write the full matrix at every decoding step, making them memory-bandwidth bound; in the same profile, they account for 24.3% of decoding latency (Figure 1a). The most direct way to reduce both costs is to quantize the recurrent state.

∗^{*}Work done during internships at Meituan.

†^{\dagger}Corresponding author.

Figure

(a) Decode latency breakdown

Figure

(b) Accuracy-storage trade-off

Figure 1: Recurrent-state update cost and accuracy-storage trade-off on Qwen3.6-35B. (a) Decode latency breakdown at batch size 256. (b) AIME 2026 accuracy versus effective state-storage bits.

Recurrent-state quantization differs from both weight and KV-cache quantization. Quantized weights remain fixed during inference (Frantar et al., 2023), whereas KV-cache entries are appended during decoding and reused by later tokens (Liu et al., 2024). A recurrent state, by contrast, is read, transformed, and written back at every step. In GDN and KDA, each update applies a learned decay gate to the previous state and adds a delta-rule correction along the current key direction (Yang et al., 2025; Zhang et al., 2025). Consequently, a quantization residual introduced during one state write is transformed by every later recurrence. We formalize this error-feedback process in Section 3.3. Prior work develops Mamba-specific quantization for weights and activations (Chiang et al., 2025b; Xu et al., 2025) and for cached SSM states (Chiang et al., 2025a; Tianqi et al., 2025). To our knowledge, however, recurrent-state quantization for GDN and KDA remains unexplored.

We find that uniform quantization provides a poor accuracy-storage trade-off: quantizing the FP32 state to INT8 or FP8 already degrades accuracy on complex reasoning tasks, while INT4 and NVFP4 reduce it to near zero (Figure 1b). To understand this accuracy loss, we examine the structure of the recurrent state. Both architectures exhibit strong variation across key channels and value coordinates (Figure 2a–b). After applying the Hadamard transform, the remaining INT8 reconstruction error is still concentrated in a small subset of key channels (Figure 2c). However, reconstruction error alone does not determine a row's accumulated risk, because decay controls how long an injected residual persists. Although instantaneous decay varies across tokens, its decay strength ordering remains stable across prompts and tasks (Figure 2d–f), allowing persistence to be estimated offline.

Motivated by these observations, DAMP estimates each channel's accumulated-error risk from its quantization-error energy and decay-based persistence. Under a fixed state-storage budget, it assigns higher precision to the channels with the largest risk and stores the remainder in the low precision format. The resulting layout is calibrated once and reused throughout inference, requiring neither retraining nor token-wise selection.

We evaluate DAMP on the released Qwen3.6-35B-A3B and Kimi-Linear-48B-A3B-Instruct (Qwen Team, 2026; Zhang et al., 2025). At 9.9 bits per state value, DAMP remains close to the FP32 baseline on both models across complex mathematical, general, and coding benchmarks. Relative to FP32-state inference, it reduces effective state storage by 69.1%, accelerates the recurrent-update operator by up to 2.01×, and reduces full-model time per output token (TPOT) by up to 10.9%. Our contributions are summarized as follows:

  • To our knowledge, we are the first to study post-training quantization of recurrent states in GDN and KDA based language models. We evaluate uniform floating-point and integer formats and show that 8-bit quantization already causes substantial accuracy loss, with 4-bit formats degrading accuracy further.

  • GDN and KDA states exhibit strong magnitude concentration along both matrix axes. After the Hadamard transform, most quantization error energy remains concentrated in a small subset of key channels, while the decay ordering is stable across prompts and tasks. These findings motivate DAMP, which ranks key channels using quantization-error energy and decay-based persistence to construct a static mixed-precision layout.

  • Across math, general and code benchmarks on Qwen3.6-35B-A3B and Kimi-Linear-48B-A3B-Instruct, DAMP retains near-FP32 accuracy at 9.9 bits per state value. It reduces recurrent-state storage by 69.1%, accelerates the recurrent-state update kernel by up to 2.01×, and lowers full-model TPOT by up to 10.9%.

References (34)

  • Quarot: outlier-free 4-bit inference in rotated llms
  • Quamba2: A robust and scalable post-training quantization framework for selective state space models
  • Quamba: A post-training quantization recipe for selective state space models
  • FP4 all the way: Fully quantized training of large language models
  • Beyond benchmarks: Matharena as an evaluation platform for mathematics with LLMs
  • OPTQ: Accurate quantization for generative pre-trained transformers
  • The pile: An 800gb dataset of diverse text for language modeling
  • Kvquant: towards 10 million context length llm inference with kv cache quantization
  • RULER: What's the real context size of your long-context language models? In First Conference on Language Modeling, 2024
  • LiveCodeBench: Holistic and contamination-free evaluation of large language models for code
  • Awq: Activation-aware weight quantization for on-device llm compression and acceleration
  • Kivi: a tuning-free asymmetric 2bit quantization for kv cache
  • Towards robust mathematical reasoning
  • Fp8 formats for deep learning
  • On state reduction in linear attention
  • GPQA: A graduate-level google-proof Q&A benchmark
  • Q-mamba: Towards more efficient mamba models via post-training quantization
  • Mmlu-pro: a more robust and challenging multi-task language understanding benchmark
  • Smoothquant: accurate and efficient post-training quantization for large language models
  • Mambaquant: Quantizing the mamba family with variance aligned rotation methods
  • Gated delta networks: Improving mamba2 with delta rule
  • When good enough is optimal: Multiplication-only matrix inversion approximation for quantized gated deltanet
  • Kimi linear: An expressive, efficient attention architecture
  • Sglang: efficient execution of structured language model programs
  • The global scale contributes less than 0.01 bit per value for the evaluated states and is omitted after rounding to one decimal place
  • We sample eight documents from each of four domains: DM Mathematics, PubMed Abstracts, GitHub, and StackExchange
  • We use the domain-balanced empirical expectation
  • We estimate the two score components as
  • The corresponding squared-energy profile is $a_{\mathrm{eff},u}^{2j}$; summing this profile and applying the cap $1/\tau$ gives $\mathcal{P}_{u}$ in Equation 9
  • $Q^{\mathrm{lo}}$ contains the codes produced after the block-Hadamard transform
  • Subsequent prefill chunks and decoding steps read that compressed representation
  • ><tr><td>State format</td><td>4K</td><td>8K</td><td>16K</td><td>32K</td><td>64K</td><td>128K</td></tr><tr><td colspan=
  • Head-level decay measures how long an error is retained, rather than its injected magnitude or complete effect on generation
  • The persistence score summarizes the diagonal decay path and does not model the complete time-varying, key-dependent transition