arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.39418

LinQuant: Functional Invariances for Low-Precision Linear Recurrences

Neehal Tumma, Philipp Nazari, Rohan Cherukuri, Daniela Rus, T. Konstantin Rusch

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

ABSTRACT

Linear recurrences are emerging as practical alternatives to softmax attention in large language models, appearing in both standalone and hybrid architectures. However, despite their rapid emergence, low-precision inference remains much less developed for these models than for softmax attention. During prefill, chunkwise-parallel algorithms cast much of the recurrence as dense matrix multiplications, suggesting a natural path to low-precision execution. Simply quantizing these operations in their native form, however, can be fragile. In this work, we identify functional invariances that preserve the full-precision computation while making the operands more amenable to quantization. Building on this observation, we introduce LinQuant, a framework for low-precision recurrent prefill based on seven such invariances, including rotations, diagonal rescalings, and alternative placements of recurrent decay and write factors. We derive when these transformations remain valid across common recurrence families spanning linear, gated, and delta-rule updates, and show that they provide complementary degrees of freedom for improving low-precision accuracy. Finally, we translate this framework to production by augmenting SSDi8, an existing low-precision prefill pipeline for Mamba-2, with the applicable invariances. LinQuant improves perplexity at matched latency on Mamba-2 1.3B, 2.7B, and 8B and Nemotron-H 8B, demonstrating the practical utility of invariance-based quantization for recurrent models.

github.com/ntumm120/LinQuant

1 INTRODUCTION

Linear recurrences offer an efficient, sub-quadratic alternative to softmax attention for sequence modeling (Katharopoulos et al., 2020; Dao & Gu, 2024; Yang et al., 2025; Team et al., 2025). They summarize past tokens in a fixed-size state, avoiding the growing key-value cache of softmax attention, and are increasingly used in both standalone and hybrid language models (NVIDIA, 2025; Amini et al., 2025; Peng et al., 2025; Beck et al., 2024). For prefill, these models are typically evaluated using chunkwise-parallel algorithms, which process blocks of tokens in parallel through dense matrix multiplications while propagating a recurrent state between them (Dao & Gu, 2024; Yang & Zhang, 2024). This mirrors the blockwise organization of efficient attention kernels such as FlashAttention and makes recurrent prefill naturally amenable to low-precision execution.

Low-precision attention has been studied extensively, with optimized integer and floating-point kernels now forming a mature part of the Transformer inference stack (Zhang et al., 2025; Shah et al., 2024). In contrast, low-precision kernels for linear recurrences remain largely unexplored. Prior work has studied quantization of recurrent models (Xu et al., 2025; Chiang et al., 2025), largely targeting the projections and activations surrounding the Mamba-2 recurrence. SSDi8, on the other hand, executes the recurrent computation in low precision, demonstrating an efficient INT8 implementation specific to Mamba-2 (Kim et al., 2026). We instead study the space more generally, investigating low-precision computation across the design space of modern linear recurrent architectures.

∗^{*}Equal contribution. Correspondence: ntumma@mit.edu.

Table 1: Applicability of the seven invariances introduced in Section 3 to common linear recurrences. ×: not applicable. √: applicable. (√): applicable under constraints.

Nr.TransformationLAMamba-2GLADNGDNKDA
(1/7)RQK\mathbf{R}_{QK}✓✓(✓)✓✓(✓)
(2/7)DQK\mathbf{D}_{QK}✓✓✓×××
(3/7)RV\mathbf{R}_V✓✓✓✓✓✓
(4/7)DV\mathbf{D}_V✓✓✓✓✓✓
(5/7)((Γ[i]→)η,(Γ[i]→)1−η)((\mathbf{\Gamma}_{[i]}^{\rightarrow})^{\eta}, (\mathbf{\Gamma}_{[i]}^{\rightarrow})^{1-\eta})×✓(✓)×✓(✓)
(6/7)(E[i]η,E[i]1−η)(\mathbf{E}_{[i]}^{\eta}, \mathbf{E}_{[i]}^{1-\eta})×✓✓×✓✓
(7/7)(B[i]ξ,B[i]1−ξ)(\mathbf{B}_{[i]}^{\xi}, \mathbf{B}_{[i]}^{1-\xi})(✓)(✓)(✓)✓✓✓

Executing sequence mixers in low-precision can come at the cost of performance. One powerful lever to mitigate this is functional invariances. Such transformations preserve the full-precision operator while changing the numerics presented to a quantizer. Figure 12 in the appendix illustrates this principle through write-factor absorption. We distinguish two broad classes. Mixer-agnostic invariances act on the residual stream or individual linear layers and do not depend on the algebra of the sequence operator (Xiao et al., 2023; Ashkboos et al., 2024; Liu et al., 2025). Because these transformations are largely independent of the mixer, they transfer naturally to recurrent architectures and have already been adopted by methods such as MambaQuant and Quamba2 (Xu et al., 2025; Chiang et al., 2025). Mixer-specific invariances instead rely on the sequence operator itself, and can be classified as either mixer-external or mixer-internal. The former materialize as changes of basis and can be applied outside of the sequence-mixer, while the latter are functions of a recurrence's algorithmic realization (Figure 1). Transformer PTQ has exploited such invariances within softmax attention, for example through transformations of its query, key, and value representations (Ashkboos et al., 2024; Liu et al., 2025). In contrast, the mixer-specific invariances of linear recurrences have yet to be characterized.

Linear recurrences present a qualitatively different invariance structure from softmax attention. Their transformations must remain consistent with a state that is updated and carried across chunks, while decay, gating, and delta-rule updates impose additional algebraic constraints. At the same time, these same mechanisms create new degrees of freedom that have no direct attention analogue. We therefore ask which attention-inspired invariances survive in recurrences, what new restrictions arise from the recurrent computation, and what additional invariances are unique to linear recurrences. Our main contributions are summarized as follows:

  • We introduce LinQuant, a framework for computing low-precision linear recurrences based on both mixer-agnostic and mixer-specific functional invariances, and characterize their applicability across common recurrent architectures.

  • Across a controlled set of linear recurrences, we show how recurrence structure, query-key normalization, quantization scale granularity, and state-storage basis determine which functionally equivalent realization is most robust to low precision.

  • We implement LinQuant in INT8 chunkwise kernels and fuse query-key transformations into SSDi8 without increasing measured prefill latency.

  • We apply LinQuant to production W4A8 models with INT8 recurrent states, improving over SSDi8 on Mamba-2 1.3B, 2.7B, and 8B and Nemotron-H 8B.

References (100)

Couldn't load all references. Reload the page to try again.