Open weights · Field guide

STEPQuant follows errors through a recurrent model's state

A quantization error can travel forward through a recurrent state. STEPQuant studies the accuracy and storage consequences when that state survives many updates.

In this article
A processor die with individually traced contacts.

Rounding an intermediate value once may have little effect. Rounding a state that feeds the next state can influence an entire sequence. STEPQuant examines this problem in models with recurrent state, where fixed-size storage can still become expensive when many requests run concurrently. The location of an error and the number of later updates through which it survives both matter.

The core challenge was that applying uniform quantization to these states leads to severe accuracy degradation. Each update to the state uses an approximate value, and errors accumulate over time as decoding proceeds. Because recurrent states are reused across many steps, small inaccuracies can grow into large deviations in output, especially during long-generation tasks where reasoning depth is critical. The team observed that not all parts of the state contribute equally to final outputs—some key rows have a much stronger influence on model behavior than others, and some state entries vary widely in magnitude.

To address this, they designed STEPQuant as a spatial-temporal post-training quantization framework specifically for Delta-rule recurrent states. Rather than applying fixed precision across all elements of the state matrix, STEPQuant allocates bits based on both error sensitivity and memory lifetime. It evaluates how much each row contributes to output error—called row-impact weighting—and adjusts precision accordingly. At the same time, it considers the spatial structure of the state by fitting scales along both key rows and value columns, recognizing that different dimensions behave differently under quantization.

The evaluation focused on two hybrid models: Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct. These were chosen because they use gated Delta-rule recurrent memory, which is central to the problem. The team tested both short- and long-generation benchmarks, including reasoning tasks like AIME and HMMT, where output quality depends heavily on state fidelity. Under a nominal 6-bit budget, STEPQuant achieved accuracy close to full-precision (FP32) states on both models. Even under a tighter 4-bit budget—where uniform INT8 quantization typically fails—it outperformed standard methods, particularly on Qwen.

A key insight came from ablation studies that isolated the contributions of spatial and temporal components. Row-impact weighting consistently improved accuracy across all benchmarks. Meanwhile, when temporal components (like mixed-precision allocation and FP16 pivots) were used without spatial fitting, performance remained suboptimal. The combination of both designs yielded the best results.

This suggests that such methods induce overthinking, where the model produces more text due to internal instability rather than better understanding. In contrast, STEPQuant maintained output lengths close to those of full-precision models, indicating it preserves both logical coherence and computational efficiency.

To validate their approach beyond just accuracy, they compared STEPQuant against other quantization baselines, including a version of Q-Mamba’s dual-axis state quantization (DSQ). Even when using the same bit allocation and FP16 pivots, STEPQuant consistently outperformed DSQ. This confirmed that the spatial design—specifically the row-impact weighting and dual-axis scaling—is more effective at preserving output fidelity.

The architecture was implemented with optimized kernels integrated into SGLang, enabling real-time deployment. On Qwen, this reduced total memory consumption—including weights and states—by 68.7%, while on Kimi it dropped by 53.7%. These reductions are critical for scaling serving systems to support high concurrency without hardware upgrades.

Ultimately, STEPQuant demonstrates that error propagation in recurrent states is not uniform—it depends on both temporal persistence and spatial structure. By aligning precision allocation with these dimensions, the method avoids the pitfalls of blanket quantization. The results show that targeted, data-driven compression can preserve accuracy while reducing memory overhead, offering a practical path forward for efficient serving of large models with linear attention.

Compressing the state versus compressing the service

The STEPQuant researchers report more than fivefold recurrent-state compression for their six-bit implementation and up to a 68.7 percent drop in total serving memory. These quantities use different starting points. The first concerns the representation of a particular state; the second includes other allocations that may be unchanged. A service running many simultaneous sequences can devote a larger share of its memory to state than one running a single short request. That is why both the number of concurrent requests and the accounting boundary matter to reproducing the reported saving.

The Spatial-Temporal Precision Allocation Mechanism

STEPQuant assigns bit precision to recurrent state elements based on their error impact across time and space. It computes error propagation through a recurrence model’s state evolution, identifying which parts of the state contribute most to output inaccuracies over long sequences. The method allocates higher precision to elements with persistent or high-impact errors—those that remain active across many decoding steps or strongly influence downstream predictions. Simultaneously, it fits row-scale and column-scale parameters using statistical analysis of state distributions and their effect on final outputs. This joint fitting ensures that both the magnitude of state values and their spatial position in the key-value matrix are considered when determining precision levels.

Experimental Evaluation Across Long and Short Generation Tasks

The method was tested under real-world inference conditions using two large language models: Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct. Evaluations included both long reasoning tasks—where the model must maintain context over hundreds of tokens—and short-generation benchmarks, such as simple question answering with a few generated tokens. For long tasks, STEPQuant at 6 bits achieved mean accuracy levels very close to the full-precision (FP32) baseline: 80.59% on Qwen and 61.47% on Kimi. In contrast, uniform INT6 quantization dropped to only 45.04% and 45.70%, respectively. At 4 bits, the performance gap widened significantly; uniform INT4 failed to produce valid answers in several short-generation cases. These results show that the method preserves accuracy even under tight bit constraints, particularly when output validity is critical.

Interpreting the Efficiency and Accuracy Trade-Off

This saving stems primarily from compressing the recurrent state representation: state memory decreased by 80.1% (a compression ratio of 5.03), and state-update time dropped by 65.6% (a speedup of 2.91 times). At the state level, memory dropped by 80.3%, with a compression of 5.08. These reductions are not just theoretical; they occur in real-time serving using SGLang, where packed states are directly integrated into the inference pipeline without requiring full-precision shadow matrices.

This indicates that STEPQuant achieves better accuracy-to-storage trade-offs without relying on selective FP16 protection.

The results also hold under practical deployment conditions involving weight quantization. With AWQ weights at four bits, the team gives Kimi an average accuracy of 58.62 percent at the six-bit STEPQuant setting. The matching result for Qwen is 79.27 percent. The relevant reference in each case is its own higher-precision baseline.

Importantly, the method maintains performance across varying sequence lengths. In long-context evaluations (Table 5), both 6-bit and 4-bit STEPQuant preserved accuracy regardless of context length, showing that error propagation dynamics are stable over time. This stability suggests that the spatial-temporal precision allocation adapts effectively to different reasoning demands.

Memory accounting included both total serving memory and recurrent state-specific usage. The decode timing protocol tracked time between CUDA start events across tensor-parallel ranks, excluding prefill, warmup, and output delivery phases.

In sum, STEPQuant’s method is grounded in measurable error dynamics: it identifies where errors persist or grow over time and allocates precision accordingly.

The Distinction Between Error Propagation and Spatial Sensitivity

The core distinction between STEPQuant’s design and prior approaches lies in whether quantization error dynamics are primarily governed by temporal persistence or spatial heterogeneity within the state matrix. Earlier work on recurrent states often treats memory lifetime as a uniform risk factor, assuming that longer-lived states accumulate errors more severely regardless of internal structure. In contrast, STEPQuant introduces a dual-axis framework where both time and space are independently evaluated: temporal components assess how error persists across decoding steps via retention gate dynamics, while spatial components evaluate how different key rows contribute unequally to output error due to their distinct roles in readout computation. This separation allows for targeted precision allocation—higher bits assigned not just to long-lived states, but specifically to key rows that have a disproportionate influence on downstream outputs. A test distinguishing these views would involve isolating the spatial component while maintaining identical temporal allocation.

The Boundary of Evidence for Lifetime-Dependent Risk

The evidence presented supports a strong link between memory lifetime and quantization risk, but does not establish whether this relationship is causal or merely correlative. The observed degradation could stem from either (1) genuine error accumulation over time due to persistent quantization noise, or (2) an artifact of how state updates are measured and aggregated across tasks. These settings lack variability in state evolution—such as sudden key reassignments or rapid context resets—that might reveal whether lifetime effects are consistent under more complex usage. Without a controlled experiment that varies the rate of state update and key rotation, it remains unclear if lifetime weighting is robust across diverse generation behaviors.

The Open Question on Row-Impact Weighting and Generalization

A central open question remains: can row-impact weighting generalize beyond the specific architectures and datasets used in evaluation? STEPQuant’s spatial component assigns higher precision to key rows based on their measured influence on output error, using a dual-axis fitting procedure that jointly optimizes row and column scales. This approach performs well on Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct under controlled benchmarks, but it is unclear whether such weighting would be effective in models with different state update dynamics or attention mechanisms. Additionally, the current evaluation does not include out-of-distribution tasks involving abrupt shifts in context or multi-turn dialogues with evolving state dependencies. A future test could involve applying STEPQuant’s spatial fitting to a model with a different key selection policy—such as one using dynamic key pruning—and measuring if the row-impact weighting still improves performance. If it fails, this would suggest that the spatial design is not universally applicable and may require adaptation to match specific state evolution patterns. Until such tests are conducted, the role of row-impact weighting remains a promising but unverified component of low-bit quantization.

Prediction Drift as a Temporal Integrity Test

The evidence from B.2 Prefill and Decode Prediction Drift reveals a critical mechanism by which recurrent state quantization fails—not through sudden collapse, but through gradual divergence over time. In this experiment, a model begins with an uncompressed state during prefill, evolving naturally to a stable, full-precision representation. Once the prefill completes, the system compresses that state and reuses it throughout decoding—after every token, the compressed state is read and rewritten. This creates a repeated cycle of state access and update, which acts as a stress test for error propagation: if quantization introduces inaccuracies into the state, those errors will accumulate with each iteration, leading to drift in output predictions.

The data shows that without intervention, mean excess NLL (a measure of prediction error) rises sharply from prefill to decode. For Qwen INT6, it jumps from 0.102 to 2.102 over just the first and last 256 readouts—indicating a severe degradation in temporal fidelity. Similarly, KDA INT6 sees its error grow from 0.0228 to 0.1422. This pattern suggests that even small initial quantization errors are amplified through repeated state updates, especially when the state is reused across many tokens. The drift reflects not just numerical instability but a failure of the model’s internal memory to maintain consistency over time—a key requirement for reliable generation.

STEPQuant mitigates this by allocating precision based on both error magnitude and temporal persistence. In its 6-bit configuration, the mean excess NLL over all 6,144 decode steps remains at just 0.0011 across both Qwen and KDA. This near-zero drift implies that the quantization scheme preserves state integrity throughout long sequences. The mechanism behind this is not merely statistical smoothing but a targeted correction: by assigning higher precision to state components that are more likely to be reused or that carry larger error magnitudes over time, STEPQuant prevents small errors from growing into large ones.

In the uniform case, every key row in the state receives equal precision regardless of how often it is accessed or how sensitive its values are to downstream outputs. Over time, such a system would allow errors to accumulate in frequently updated rows—especially those involved in early decoding steps that influence later tokens. These errors could compound through successive updates, leading to noticeable drift. In contrast, STEPQuant’s lifetime-aware allocation identifies which state elements persist longer and thus carry more risk of error propagation. It assigns higher precision to these long-lived components, effectively “protecting” them from degradation.

This distinction is vital because it shifts the focus from static accuracy at a single point in time to dynamic stability over a sequence. A model may appear accurate during prefill or after a few tokens, but if its state drifts under repeated reads and updates, it fails in real-world serving where long sequences are common.

Once the system stabilizes, the error remains negligible, suggesting that STEPQuant’s precision allocation effectively suppresses long-term drift. This outcome underscores a deeper principle: effective state quantization must be evaluated not just by final accuracy but by how well it resists degradation under repeated use—especially when memory is reused across many decoding steps. The evidence here shows that such resistance is achievable through a spatial-temporal design that accounts for both the structure and lifetime of errors in recurrent states.

A Hypothetical Memory Trade-Off: Two Scenarios in Concurrent Serving

Imagine a service that runs two distinct types of user requests simultaneously. These sequences are brief and complete within seconds.

The key difference lies not in hardware, but in memory usage patterns. In Scenario A, the recurrent states—those internal memory buffers that track context—are updated frequently and for short durations. In Scenario B, the same model must retain state over many steps, and errors in those states accumulate over time. Because of this, the model’s internal state becomes more critical and longer-lived.

Now consider how memory savings from STEPQuant might play out differently under these two conditions. In Scenario A, where state lifetimes are short and requests are brief, the system may already be using minimal state memory. Thus, even with STEPQuant’s 6-bit compression, the total memory reduction might appear smaller because much of the memory budget is already dedicated to transient operations.

In contrast, in Scenario B, where long-lived states dominate, the savings from compressing recurrent states become more significant. In this case, STEPQuant’s precision allocation—based on error magnitude and temporal persistence—would be especially effective at preserving accuracy while cutting memory use.

Two different outcomes are possible. First, if the system observes that short sequences still produce valid outputs even with reduced state precision, it might conclude that STEPQuant is robust to low-precision errors in transient contexts. This would suggest that the framework works well under light load and high concurrency. Second, if long reasoning tasks begin to show accuracy drops when state memory is compressed too aggressively, the system could infer that error propagation in persistent states remains a critical challenge—even with smart precision allocation.

Ultimately, STEPQuant’s performance appears highly context-sensitive. This makes the framework more effective in high-load, long-context environments—where persistent state becomes a bottleneck—and less impactful in low-latency, transient-serving scenarios.