# STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization

STEPQuant lowers recurrent state memory by allocating bits by error lifetime

Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu, Ziyu Guo, Renrui Zhang and 3 more · arXiv · 2026-9-29

- **Problem** Quantizing linear attention's recurrent state to low bits hurts accuracy badly. Each Delta update starts from the already rounded state, so rounding errors carry into later steps.
- **Method** STEPQuant gives long-lived, high-error state units more bits. It fits separate key-row and value-column scales instead of one axis.
- **Results** On Qwen3.8-27B, 6-bit STEPQuant averages 80.59 on seven long reasoning benchmarks, against 80.60 for FP32 state.

## Why low-bit recurrent states break

Linear attention keeps a fixed-size recurrent state in place of a KV cache that grows with the sequence. That state is fixed in size across context length, but each concurrent request keeps its own persistent copy. Serving systems may also reserve extra state slots for caching and scheduling, so the pool grows with concurrency even for short contexts.

That memory overhead is the reason the authors pursue compression of recurrent states rather than of the KV cache.

Quantization breaks down in the update loop, because each Delta update starts from an already approximate state. The update then produces a newly quantized state, so the rounding error from one step carries into the next. To explain this, the authors study the error along two axes: when it accumulates and where in the state it sits. Temporally, the state is re-quantized at every decoding step, so errors pile up over time.

Figure 1(b) shows that across 2304 Qwen heads under uniform INT6 quantization, longer-lived state units accumulate larger errors. State magnitudes also vary strongly along both key rows and value columns, so one scaling axis cannot fit both patterns. These two questions motivate the two components that the paper designs in its later sections.

## How an error survives the Delta update

The Delta rule first multiplies the previous state by a retention gate, then corrects the result along the current key. Writing the update as St = At St-1 + Bt isolates the transition At = (I - βt kt kt^T) Dt, which the analysis studies. GDN keeps one scalar retention gate per head, so the whole head decays at a single rate. KDA uses channel-wise gates, so each key row decays at its own rate.

Applying the same transition to the accumulated error gives Et = At Et-1 + εt, so old error carries forward while new quantization error enters at each step. Under the conditions on the key norm, the write strength and the gate, the spectral norm of At is at most 1. Because of that bound, the transition can't amplify the error by itself. The Delta term then reduces the error along the current key kt, while leaving components orthogonal to kt unchanged.

Error in directions that later keys rarely touch therefore depends mainly on gate decay. When retention is close to one, that error can persist for many decoding steps. The authors treat memory lifetime as the key predictor of recurrent-state quantization risk. They tested this on all recurrent heads of Qwen3.8-27B under uniform INT6 state quantization on C4.

Heads with longer gate half-lives show larger accumulated state error, with Spearman's ρS ≈ 0.80. Fig. 1(b) plots this relation, and Appendix B.5 gives more detail.

## Giving long-lived units more bits

Lifetime-aware Bit Allocation treats each unit as a whole head in Qwen and as one key row in KDA. For each unit, the authors estimate the reconstruction distortion at each candidate bit width, along with the mean log retention averaged over calibration tokens. Retention gates are GDN's scalar alpha\_t and KDA's per-row decay d\_t,i, and a larger mean log retention marks a longer memory lifetime.

Retention multiplies the error by about exp(j·ℓ\_u) after j steps, so the squared error shrinks by about exp(2j·ℓ\_u).

Summing these squared decay factors over H steps gives the lifetime weight L\_u, which grows with the retention of the unit. Bit widths are chosen from a candidate set to minimize the sum of L\_u times each unit's distortion. The objective is constrained so that the element-weighted average bit count stays within the budget b̄. This objective weighs both how large the quantization error is and how long it persists through later updates.

A few units remain hard to quantize even after mixed-precision allocation, so the authors keep the highest-risk units in FP16 as sparse pivots. Pivot selection and bit allocation run during offline calibration, and their results stay fixed across requests. The paper points to Appendix C.2 and D for further details of this procedure.

## Which key rows matter and where outliers sit

Key rows in the recurrent state don't all matter equally, because readout error depends on where it lands. The readout error is a sum over key rows, and each row is weighted by an entry of A\_t transposed times q\_t. So an error of equal norm confined to one key row moves the readout more when its weight g\_t,i is larger. To handle variation across decoding steps, the authors define the row-impact score omega\_i as the calibration average of g squared.

They rank key rows within each head by omega\_i and split them into eight groups. Quantizing one group at a time to INT4, with the other rows kept in full precision, raises perplexity, and groups with larger omega\_i generally cause greater degradation in both models. The authors take this as support for using the row-impact score to guide scale selection.

The second spatial property is that the state has large magnitudes along both key rows and value columns. Most prior LLM quantization work targets outliers along one dominant axis, such as channels or tokens. Figure 2(c) shows that these magnitude differences persist along both axes throughout decoding.

STEPQuant answers this with Key-Row-Aware Dual-Axis Fitting, which gives key rows and value columns separate scale factors. Each updated entry is reconstructed as r\_i times c\_j times the low-bit integer z\_ij. The row factor r\_i has to reflect the current magnitude of a row and the row's impact on readout error. The authors estimate row magnitude m\_i as the mean absolute value of X\_ij across value columns.

Rows with larger m\_i need a wider range, and rows with larger impact scores omega\_i are more vulnerable, so both pull r\_i in different directions.

## Fitting row and column scales

STEPQuant stores each entry of the updated state as an integer level scaled by a row factor and a column factor. The row factor starts from the mean absolute value of each key row, which the authors call m\_i. The row factor also takes the impact score w\_i, which is normalized within each head. Rows with a larger magnitude m\_i get a wider quantization range, so the row factor grows with m\_i.

With the row factors fixed, STEPQuant fits the column factors c\_j by minimizing an impact-weighted squared reconstruction error. Each squared error is weighted by w\_i squared, so errors on high-impact key rows are penalized more. Each scaled entry X\_ij divided by r\_i c\_j is rounded to the nearest level at the bit width b\_i assigned to its row.

The reconstructed state is then the row factor times the column factor times the integer level. Lifetime-aware bit allocation and FP16 pivot selection run offline, so the scale fitting adds no per-token allocation step.

## Running the packed state during decoding

STEPQuant fixes its bit allocation, FP16 pivots and row-impact scores before serving, using 32 WikiText-2 training segments of 2048 tokens each. Lifetime-aware Bit Allocation and FP16 pivot selection run offline, so decoding adds no per-token allocation overhead. The packed layout stays fixed across requests, so every active state is read in the same format.

The paper ties this fusion to lower memory traffic during decoding. Once the head output is ready, later layers keep processing the same token.

This overlap lets scale updates proceed alongside model computation. The updated state is quantized again after each step, producing the stored state that the next step reads. Each active request keeps its own persistent state, so keeping that state compressed between tokens matters for serving memory.

The authors run these kernels in SGLang on four NVIDIA A800 GPUs. They evaluate Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct with BF16 and 4-bit AWQ weights. They compare against SGLang's default FP32 SSM-state precision and symmetric rowwise-absmax INT4, INT6 and INT8 baselines. The next section reports accuracy on seven long-generation reasoning benchmarks and six short-generation tasks.

## Long and short reasoning accuracy

The authors test whether 6-bit recurrent states stay near FP32 and whether 4-bit STEPQuant can beat uniform INT8. Seven long-generation reasoning benchmarks use temperature 1.0, top-k 20, top-p 0.95, and at most 65536 generated tokens per sample. Six language understanding tasks are scored from one greedy answer per example, with T set to 0.

Scoring generated answers instead of candidate likelihoods matches the autoregressive decoding setting that STEPQuant targets.

On Qwen with BF16 weights, STEPQuant at 6 bits averages 80.59, close to the FP32 average of 80.60. Uniform INT6 on the same Qwen tasks drops to 45.04 on average. On Kimi-Linear, the 6-bit STEPQuant average is 61.47, compared with 61.52 for FP32.

The 4-bit STEPQuant configuration on Qwen averages 80.51, far above the uniform INT8 average of 71.86. Uniform INT4 falls to 12.73 on Qwen and 21.63 on Kimi, showing that plain low-bit scaling fails. Uniform INT4 degrades sharply on the long tasks, while STEPQuant stays competitive across all seven.

On the six short-generation tasks, 4-bit STEPQuant trails FP32 by 0.15 points on Qwen, at 87.63 against 87.78. On Kimi, the 4-bit configuration trails FP32 by 0.25 points, reaching 68.11 against 68.36. Uniform INT4 averages 65.74 on Qwen short tasks and 42.24 on Kimi, which the authors report can fail to yield valid answers. The authors read these results as recurrent states working below 8 bits with limited accuracy loss.

They note that the concurrent DAMP work treats this low-bit regime as challenging, while DAMP keeps 9.9 bits per state value.

## Which component carries the gain

Spatial fitting is tested alone in the Spatial only variant, which keeps uniform precision and applies key-row-aware dual-axis fitting. At 4 bits, Spatial only reaches 73.95 on Qwen, compared to 7.64 for the Q-Mamba DSQ baseline. The authors credit this gap to folding key-row impact into the dual-axis quantization. At 6 bits, Spatial only averages 80.19 on the same three tasks, while Q-Mamba reaches 75.95.

The temporal branch uses calibrated mixed-precision allocation with FP16 pivots, and a variant removes the pivots. On Qwen at 4 bits, the temporal-only average moves from 6.17 without pivots to 12.87 with them. Protecting only 1.39% of Qwen heads with FP16 pivots raises the 4-bit three-task average by 6.70 points. The same pivot protection also lifts the 6-bit AIME accuracy by 14.16 points, which the authors tie to protecting high-risk units.

Combining both parts gives 84.72 at 4 bits, compared to 73.95 for spatial only and 12.87 for temporal only. At 6 bits, the full STEPQuant reaches 84.51, against 80.19 for spatial only and 75.63 for temporal only. Both full-method results sit close to the FP32 average of 84.61. The authors describe the spatial and temporal components as complementary, since each contributes benefits the other lacks.

Table 4 reports these ablations on Qwen, while the Kimi results appear in Appendix E.4. The ablation averages AIME 2026, GPQA Diamond and LiveCodeBench v6 under BF16 weights and nominal 4- and 6-bit budgets. The authors report similar trends on Kimi under both bit budgets. They didn't run these component ablations on the short-generation tasks.

## Serving memory and generation length in practice

STEPQuant's serving gains start from a practical question: how much total memory does a Qwen server need at batch size 512? The authors run SGLang on A800 GPUs with W4 weights and compare the FP32 state against STEPQuant at 6 bits. Total serving memory falls from 419.73 GiB to 131.18 GiB, a 68.7% reduction that includes the model weights.

Recurrent-state memory itself drops by 80.1%, a 5.03× compression, which is the part STEPQuant directly targets. State-update time drops by 65.6%, a 2.91× speedup over the FP32 state in the Fig. 3(d) setting at batch size 512.

On Kimi, the same 6-bit setting gives 5.08× recurrent-state compression and cuts total memory by 53.7%. The authors measure memory at batch sizes from 32 up to 512 for Qwen with W4 weights.

Uniform quantization also lengthens generations, which matters because reasoning runs stop at 65536 generated tokens per sample. At 4 bits, Kimi averages 63.40K tokens on AIME and 64.22K on HMMT, approaching that cap. These long outputs come with near 0 accuracy on both tasks, so the extra length brings no reasoning gain.

## Limits of the evidence

At 4 bits, STEPQuant nearly matches FP32-state performance on Qwen but keeps a modest gap on Kimi. The Kimi counterparts of that ablation sit in Appendix E.4, so the main text doesn't show them.

The 4-bit ablation numbers show Temporal only at 12.87%, far below STEPQuant at 84.72%. The efficiency numbers come from Qwen at batch size 512 with W4 weights. Kimi's state-memory and update-time results appear only in Appendix F, so the main text can't compare them directly. The short-generation tables use BF16 weights, and the 4-bit AWQ weight results appear separately in Table 3.

Calibration uses 32 WikiText-2 segments of 2048 tokens each, and the paper doesn't test other calibration corpora.

Some units stay in FP16 as pivots, so compression is only partial for those units. The pivot protection result rests on 1.39% of Qwen heads, and the paper doesn't report the same fraction for Kimi. Uniform quantization lengthens generations, and STEPQuant keeps lengths close to FP32 on the seven long tasks. The paper's claims on Kimi rest on the reported KDA results, not on a sweep over other Kimi checkpoints.

## Paper info

- **Authors**: Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu, Ziyu Guo, Renrui Zhang, Zhichao Lu, Zhenan Sun, Ying Wei
- **Venue**: arXiv · Preprint
- **First published**: 2026-9-29
- **Added**: 2026-10-20
- **Updated**: 2026-9-29
- **Version**: v1
- **arXiv**: 2609.38169
- **Category**: cs.CL · cs.AI · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2609.38169v1) · [PDF ↗](https://arxiv.org/pdf/2609.38169v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu, Ziyu Guo, Renrui Zhang, Zhichao Lu, Zhenan Sun, Ying Wei (2026). STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization. arXiv:2609.38169v1. https://arxiv.org/abs/2609.38169v1

**BibTeX**

```
@misc{yao2026stepquant,
  title = {{STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization}},
  author = {Bingchen Yao and Haobo Xu and Haokun Lin and Yichen Wu and Ziyu Guo and Renrui Zhang and Zhichao Lu and Zhenan Sun and Ying Wei},
  year = {2026},
  eprint = {2609.38169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38169v1}
}
```

## Related papers

- [Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning](https://refivu.com/en/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed-dolphin-a-programmable-framework-for-scalable-neurosymbolic.md)
- [ResQAdam: Residual-Preserving Adaptive Optimization for Memory-Efficient Quantization Aware Training](https://refivu.com/en/papers/8334faf5-0339-44da-beec-bc9e0f68356f-resqadam-residual-preserving-adaptive-optimization-for.md)
- [One Scale, Four Texts: Gaps, Overlaps and Silent Repairs in Published Grading Schemes](https://refivu.com/en/papers/7382b199-bae9-4bd2-bc8a-099292ab3de8-one-scale-four-texts-gaps-overlaps-and-silent.md)
- [Sable: A Small-Field Sumcheck Argument for Bit-Exact Inference of Large Language Models](https://refivu.com/en/papers/c9634c12-f842-44ee-beb7-6b7a10ebcb75-sable-a-small-field-sumcheck-argument-for-bit.md)
- [AREX-2: Advancing Self-Improving Agents through Long-Horizon Reflective Tasks](https://refivu.com/en/papers/c92f4142-8e27-430d-91e3-21df64a353e0-arex-2-advancing-self-improving-agents-through-long.md)
- [CORE: Coarse-to-Fine Search with Context Management for Deep Research](https://refivu.com/en/papers/87b167da-c0eb-41e0-8faf-5641918f7377-core-coarse-to-fine-search-with-context-management.md)

## Other paper commentary

- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/en/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [Fast Inference from Transformers via Speculative Decoding](https://refivu.com/en/papers/41a03564-b5d1-4b7f-8db4-502dbc43fbe0-fast-inference-from-transformers-via-speculative-decoding.md)
- [GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers](https://refivu.com/en/papers/46a31638-80a6-4626-a5e7-028ae5ccea93-gptq-accurate-post-training-quantization-for-generative-pre.md)
- [ZeRO: Memory Optimizations Toward Training Trillion Parameter Models](https://refivu.com/en/papers/30a4fae5-65d8-4fa2-8552-c186c4a4d88f-zero-memory-optimizations-toward-training-trillion-parameter.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/en/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [Reformer: The Efficient Transformer](https://refivu.com/en/papers/0dd490a3-709f-4bac-ae3f-de0bc9e197db-reformer-the-efficient-transformer.md)
- [SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis](https://refivu.com/en/papers/0489caed-4754-4b04-a53a-1a6eb3b53727-sdxl-improving-latent-diffusion-models-for-high-resolution.md)
- [DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation](https://refivu.com/en/papers/be406a52-c06c-4d4e-849c-ca0a795fcb8a-dreambooth-fine-tuning-text-to-image-diffusion-models.md)
- [Generative Agents: Interactive Simulacra of Human Behavior](https://refivu.com/en/papers/3638efc4-db4a-48d9-bc16-5a758d9198fd-generative-agents-interactive-simulacra-of-human-behavior.md)
- [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://refivu.com/en/papers/1cf41e87-39dc-4e23-9d0c-22ab7bc2a24b-swe-bench-can-language-models-resolve-real-world.md)
- [STaR: Bootstrapping Reasoning With Reasoning](https://refivu.com/en/papers/2942117a-1b64-4434-bef7-4f70b61ab603-star-bootstrapping-reasoning-with-reasoning.md)
- [Scalable Diffusion Models with Transformers](https://refivu.com/en/papers/20637697-d13d-4af8-bc4d-7f97df178df2-scalable-diffusion-models-with-transformers.md)

## Terms in this paper

- [perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [MMLU](https://refivu.com/en/terms/3036c0ba5adb-mmlu)
- [Qwen3.8-27B](https://refivu.com/en/terms/4cabdbb54f57-qwen3-8-27b)
- [C4](https://refivu.com/en/terms/87725552ed79-c4)
- [MATH-500](https://refivu.com/en/terms/7e6fbbc4b736-math-500)
- [LAMBADA](https://refivu.com/en/terms/b86e10054a54-lambada)
- [wikitext-2](https://refivu.com/en/terms/9f23241a7a2c-wikitext-2)
- [SGLang](https://refivu.com/en/terms/25f6b800e7f9-sglang)
- [LiveCodeBench v6](https://refivu.com/en/terms/317ec98d6c63-livecodebench-v6)
- [recurrent state](https://refivu.com/en/terms/704c50e81f39-recurrent-state)
- [GPQA Diamond](https://refivu.com/en/terms/467f763253b5-gpqa-diamond)
- [AWQ](https://refivu.com/en/terms/5f945404d2c2-awq)
- [DAMP](https://refivu.com/en/terms/bc7ee3e31d57-damp)
- [EvalPlus](https://refivu.com/en/terms/93078dbde91b-evalplus)
- [Kimi Delta Attention (KDA)](https://refivu.com/en/terms/6708475fed50-kimi-delta-attention-kda)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/51c79527-1b87-4343-8cdc-defd890a1f93-stepquant-when-and-where-errors-matter-in-delta)
