Learn › Time Series
·★ MEMBER·PAPER·7 min read

Paper Explained: STEPQuant — When and Where Quantization Errors Matter in Delta-Rule Recurrent States

Linear-attention states have a fixed size, yet under concurrent serving they can outgrow the model weights. Naive low-bit quantization lets errors pile up with every update. STEPQuant spends bits and scales according to how long an error survives and which row it lands on. Explained from scratch.

Key points

  • STEPQuant is a post-training quantization framework that allocates precision for delta-rule recurrent states by error magnitude and memory lifetime.
  • The damage from errors depends on two dimensions: temporally, errors in long-lived memory persist across many decoding steps, and spatially, different key rows affect the output differently.
  • Although the state is fixed-size, every request needs its own, and in SGLang's official setup Qwen's FP32 state pool outgrows its BF16 weights at 70 concurrent requests.
  • At a nominal 6 bits it closely matches FP32-state accuracy, and the SGLang 6-bit version compresses the recurrent state by more than 5x and cuts total serving memory by up to 68.7%.
ModalitytextTaskforecasting

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

Primary source — what this article is built on

undefined2026-09-29→undefined2026-10-09same month

STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State QuantizationBingchen Yao, Haobo Xu, Haokun Lin et al. · 2026-09-29 · v1arXiv:2609.38169Paper page·PDF
undefined

Linear attention replaces growing KV caches with fixed-size recurrent states, yet these persistent states can become a substantial memory bottleneck under concurrent serving. Directly quantizing recurrent states to low precision often leads to severe accuracy degradation, as quantization errors propagate through successive state updates. We discover that the impact of these errors depends on two complementary dimensions: temporally, errors in long-lived memory can persist across many decoding steps; spatially, errors in different key rows affect model outputs differently, while state magnitudes vary substantially along both rows and columns. Motivated by these observations, we propose STEPQuant, a spatial-temporal post-training quantization framework for Delta-rule recurrent states. STEPQuant allocates precision according to error magnitude and memory lifetime, and jointly fits key-row and value-column scales based on state distributions and key-row impact on output error. Experiments on Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct across both long- and short-generation benchmarks show that STEPQuant closely matches FP32-state accuracy under a nominal 6-bit budget and outperforms uniform INT8 in its 4-bit configuration. Integrated into SGLang with optimized GPU kernels, 6-bit STEPQuant achieves over 5x recurrent-state compression and reduces total serving memory by up to 68.7%. Our code is available at https://github.com/Dreamer-Toby/STEPQuant.


Fixed size, so why does memory run out?

The paper covered here is "STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization" (Bingchen Yao et al. / arXiv:2609.38169, 2026-09-29).

Here is the abstract in plain terms. Linear attention swaps the ever-growing KV cache for a fixed-size recurrent state, but under concurrent serving these states can become a major memory bottleneck. Quantizing them straight to low precision badly hurts accuracy, because the errors propagate through each state update. The authors find that the damage depends on two dimensions. Temporally, errors in long-lived memory persist across many decoding steps. Spatially, errors in different key rows affect the output differently, and state magnitudes vary widely along both rows and columns. Their method, STEPQuant, is a post-training quantization framework that allocates precision by error magnitude and memory lifetime, and jointly fits key-row and value-column scales. On Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct it closely matches FP32-state accuracy at a nominal 6 bits and beats uniform INT8 in its 4-bit configuration. Integrated into SGLang, the 6-bit version compresses the recurrent state by more than 5x and cuts total serving memory by up to 68.7%.

"If the state is fixed-size, how can it grow?" Because every request needs its own state. In SGLang's official setup, Qwen's FP32 state pool outgrows its BF16 weights at 70 concurrent requests (§1, Fig. 1a). If the KV cache is new to you, Understanding the KV Cache is a good warm-up.

An analogy: a notebook recopied every night

Picture the recurrent state as a notebook. Quantization means recopying that notebook every night onto paper with a coarse grid. The next morning you write on top of the slightly-off copy, and that night you recopy it again, so errors stack on errors. And not all errors are equal: a smudge on a scratch note is gone tomorrow, while a smudge on a key fact you keep for months stays. A smudge on a page you consult often throws off your answers more. STEPQuant decides how carefully to recopy based on how long an error will live and where it lands.

The mechanism: rewriting state with the delta rule

The paper targets Gated DeltaNet (GDN) and Kimi Delta Attention (KDA) (§2.1). For one head, the state StS_t is a dk×dvd_k \times d_v matrix updated as follows.

St=DtSt−1+βtkt(vt⊤−kt⊤DtSt−1),yt=St⊤qtS_t = D_t S_{t-1} + \beta_t k_t\left(v_t^\top - k_t^\top D_t S_{t-1}\right), \qquad y_t = S_t^\top q_t
(1)

In words: fade the old memory with the retention gate DtD_t, look up what the key ktk_t currently retrieves, and write in only the difference from the correct value vtv_t. βt\beta_t is the write strength, qtq_t is the read query, and yty_t is the head output. GDN uses one scalar gate per head; KDA uses a separate gate per key channel.

The intuition: errors get carried forward

When you run with a quantized state, the gap EtE_t from the true state evolves like this (§3.1, Proposition 1).

Et=AtEt−1+εt,At=(I−βtktkt⊤)DtE_t = A_t E_{t-1} + \varepsilon_t, \qquad A_t = (I - \beta_t k_t k_t^\top) D_t
(2)

In words: today's error equals yesterday's error, shrunk a little, plus the fresh error εt\varepsilon_t from tonight's recopy. Two forces do the shrinking: gate decay, and the delta-rule overwrite, which only trims the component along the current key. Errors pointing in directions later keys rarely hit depend almost entirely on the gate, so in heads whose gates sit near one, they survive for a long time.

FIG 1Lower quality rounds values more coarsely and error grows. In a recurrent state this rounding repeats on every token

The paper first checks the intuition: quantizing all 2,304 Qwen heads to uniform INT6, heads with longer gate half-lives accumulate larger state error (Spearman correlation about 0.80) (§3.1, Fig. 1b). That motivates the first component, Lifetime-aware Bit Allocation (§3.2). A unit is a whole head in Qwen and a key row…

What's behind this

§

Members-only from here

449 walkthroughs, 42 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with about three new explainers a day on average. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

References

  1. Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu et al.. (2026-09-29) STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization. arXiv:2609.38169Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Published by TechAthletes · Editorial policy · How we cite · Corrections

Comments

Sign in to comment