Pith.

Machine Learning · arXiv:2610.10381 v2 · submitted 7 Oct 2026

ResidualQuant: KV Cache Quantization for Looped Transformers with 2-Bit Residuals

Heejun Kim, Junyoung Lee, SangLyul Cho, Dongsu Han, Insu Han, Sehoon Kim

The paper says

“Looped Transformers improve parameter efficiency by applying shared Transformer blocks over recurrent loops, increasing computational depth without increasing the parameter count.”

more of the abstract

However, KV cache memory still scales with loop count, becoming a key memory bottleneck that limits batch size and inference throughput. KV cache quantization can alleviate this bottleneck, but existing methods often suffer substantial accuracy degradation at aggressive low-precision regimes. We observe that looped Transformers offer a unique opportunity: KV states across loops are highly similar. Based on this observation, we propose ResidualQuant, which uses the final-loop KV states as a reference and represents the remaining loops with low-precision residuals. Our method further combines least-square scaling and rotation-based quantization, as well as loop-wise mixed precision, to enable accurate quantization down to INT2 while retaining efficient reconstruction. Across multiple looped Transformer models and mathematical reasoning and code generation benchmarks, ResidualQuant consistently improves the accuracy-memory tradeoff over state-of-the-art rotation-based KV quantization. In particular, our method retains accuracy close to BF16 under mixed-precision settings while reducing theoretical KV storage by 80.7%, achieving up to 13.0% higher accuracy than the rotation-based baseline at nearly the same memory budget. On an RTX 5090, reduced KV memory traffic improves fixed-batch decode throughput by up to 3.66x, while the smaller memory footprint enables up to 8x larger batches, improving peak throughput by up to 5.38x.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 8 Oct 2026 · of version 1 of the paper; version 2 is newer · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up, with conditions. A real, internally consistent INT2 KV-cache scheme for looped transformers whose headline numbers come from a single run selected on the same benchmark cell — worth refereeing carefully, with variance reporting requested. This line is wrong

2 major objections · 5 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the references say.

The paper says, at §5.2, Table 3; §5.1, Table 2; Appendix G.1

The review did not quote this passage.

Pith says: Objection 1 of 2 · major

The headline accuracy comparison is not yet separated from selection and sampling noise. The paper states in §5.2 that 'All accuracy comparisons use Ouro-1.4B on MATH500', and this same cell determines the reference policy, LS scaling, rotation method, group size, and the [2,2,2,4] schedule.

more of objection 1

That cell is then part of the headline result: Ouro-1.4B MATH500 scores of 76.0 vs. 75.0 for BF16, and the 8-cell average of 52.37 vs. 52.94. MATH500 has 500 items, so the 1.0-point Ouro gain is only 5 questions and lies within a binomial standard error of roughly 1.9 points; rotation calibration is fixed to seed 0 (Appendix G.1), and no repeated calibration seeds, repeated evaluation runs, or resampling-based intervals are reported anywhere. I therefore ask for repeated calibration seeds with paired runs, or a validation protocol using model-benchmark cells not used for component selection, together with confidence intervals for the average gap, before the 'nearly matches BF16' claim is regarded as established.

The paper says, at §3.1, Eq. (3.1); §5, Table 2; Appendix E

The review did not quote this passage.

A classifier read this sentence of the paper as acknowledging the concern (probability 0.71):

“While these approaches reduce storage, sharing KV states across loops can discard loop-specific information and degrade accuracy when representations differ across loops.”

Pith says: Objection 2 of 2 · major

The applicability of residual quantization depends on inter-loop similarity, but the manuscript supplies no diagnostic that tells a reader when the residuals will actually be small. Eq. (3.1) only bounds the KV difference by ||W_X|| times the hidden-state change; for non-convergent loop trajectories, a point the paper itself raises for Huginn-3.5B in §3.1, that bound need not be small, and in that regime residual quantization degrades toward direct quantization.

more of objection 2

The risk is acknowledged in Section 1 for shared-KV methods, and the empirical evidence for the two evaluated models is reasonably strong, so I do not regard this as a fatal flaw. However, the manuscript should report per-group reconstruction error or residual norms for the Huginn-3.5B eight four-loop groups, and ideally a sensitivity test on a setting with larger inter-loop drift, so that the scope of the 80.7% storage and near-BF16 accuracy claims is explicit.

5 minor objections

The paper says, at §3.2 and throughout

Pith says: minor objection 1 of 5

'Least-square' should be 'least-squares' in the section heading and in the associated text.

The paper says, at §5.3, Figure 4

Pith says: minor objection 2 of 5

The throughput plots report three-run averages but show no spread; please state per-run values or add error bars, and clarify whether the BF16-vs-ResidualQuant comparison isolates memory-traffic effects from kernel-implementation effects.

show 3 more

The paper says, at §5.4, Appendix H.1

Pith says: minor objection 3 of 5

The LoopQ baseline is reproduced without the authors' code, as stated in Appendix H.1; this caveat should also appear in the main text of §5.4, since the reported +ResidualQuant deltas over LoopQ depend on that reproduction.

The paper says, at Appendix E, Table 8

Pith says: minor objection 4 of 5

The anchor-interval study reports only GSM8K; please either report at least one additional benchmark or state explicitly why GSM8K is sufficient for this sensitivity analysis.

The paper says, at Abstract and §5.1

Pith says: minor objection 5 of 5

The phrase '13.0% higher accuracy' should be '13.0 percentage points higher accuracy' to avoid ambiguity between relative and absolute improvement.

What would settle it

Hold out Ouro-1.4B MATH500 as a pure test cell. Fix the full configuration (Last-loop, LS scaling, OptR-H, g=32, [2,2,2,4]) using only the other seven cells and, if needed, the Huginn anchor-interval results, while repeating rotation calibration under seeds 0-4 and, where feasible, different 128-example calibration subsets. Then run the full Table 2 protocol for all eight cells and report per-cell means, standard deviations, and paired 95% confidence intervals for the mixed INT2/4 average minus BF16 and for ResidualQuant minus OptR-H. If the held-out MATH500 mean lies within sampling error of 76.0 and the 95% CI for the average ResidualQuant-minus-BF16 gap lies entirely above -1 point, the selection/noise concern is resolved; if the held-out score drops by several points or the CI includes a gap below -1 point, the headline near-BF16 claim is not established.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 8 Oct 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic partly agrees 2 min 7 s · 29,763 tokens read, 20,383 written
  3. Editor wrote the verdict above 26 s · 30,805 tokens read, 4,487 written
  4. Referee major revision: 2 major objections, 5 minor 47 s · 30,061 tokens read, 7,411 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

Two things to know before you read ResidualQuant. First, it is a genuine idea, not a repackaging: quantize each loop's KV as a residual against a shared final-loop anchor, with LS scaling, shared rotations, and an INT4 anchor with INT2 residuals. The result is the first INT2-class KV scheme for looped transformers that lands near BF16 on average (52.37 vs 52.94), and the arithmetic behind the 80.7% storage claim reproduces cleanly. Second, the main weakness is evidential, not mechanical: the whole design was selected on the Ouro-1.4B MATH500 cell that then headlines the paper, and nothing anywhere reports variance.

The novelty is real. Rotation-based KV quantizers (QuaRot, OSCAR, OptR-H) treat each KV state independently; KV-sharing methods (MoR, PLT, MELT) drop loop-specific states. ResidualQuant keeps per-loop states but exploits inter-loop redundancy. The design-space work — Previous/Next/First/Last references, unit vs norm-ratio vs LS scaling, rotation on residuals, loop-wise precision — is substantial, and the Last-loop choice is well-motivated both by reconstruction error and by memory traffic (two reads per loop instead of a chain). The extension to W4A4 activation quantization is a bonus, not the core.

I checked the internal consistency myself. Eq A.1 gives b_eff ≈ 3.09 for [2,2,2,4] with g=32, matching the 80.7% reduction; ablation tables agree with Table 2; the 13.0-point abstract claim matches the Ouro MATH500 mixed INT2/4 cell. The paper is also honest where it counts: it flags that logical access counts are not byte traffic, admits the Ouro LoopQ bundle lacks a calibration record, and engages FlashLoop directly rather than hiding it.

Soft spots, in proportion. (1) Section 5.2 states outright that all ablations use Ouro-1.4B on MATH500, and that same cell drives reference choice, scaling, rotation, group size, and the [2,2,2,4] schedule. The headline 76.0 vs 75.0 is one deterministic run, seed 0, and a 500-item test carries roughly two points of binomial noise — so the "matches BF16" claim is not yet shown stable. To be fair, the 13-point gap over OptR-H is large enough to survive that noise, so the qualitative conclusion is fine; it is the near-BF16 exact numbers that need seeds and repeated calibration. (2) The throughput results depend on a custom CUDA kernel and vLLM backend that are not released; the protocol is reported (three runs after warm-up), but the 2.73x and 4.15x numbers are not independently checkable yet. (3) The W4A4 comparison rests on a re-implementation of LoopQ; the authors flag the missing calibration record themselves. Minor relative to the KV claim.

Who should read it: anyone working on serving looped or recurrent transformers, and the KV-quantization crowd will want the reference-choice analysis. It deserves a serious referee. My recommendation: send it out, asking for variance reporting and at least one held-out selection checkpoint.

The strongest objection

Internally, the storage and table arithmetic reproduce: Eq. A.1 gives b_eff about 3.09 for [2,2,2,4] with g=32, matching the 80.7% reduction, and the 13.0-point and 52.37-vs-52.94 claims are consistent with Table 2. The load-bearing weakness is evidential. The method's components were chosen by ablations on Ouro-1.4B MATH500: Section 5.2 states 'All accuracy comparisons use Ouro-1.4B on MATH500', and this cell decides Last-loop vs First/Previous/Next references, LS vs norm-ratio vs unit scaling, OptR-H vs OSCAR, group sizes, and the [2,2,2,4] schedule. The same cell then appears in the headline comparison. No accuracy variance or repeated calibration is reported anywhere; Appendix G.1 fixes seed 0 for rotation calibration, and evaluations are single deterministic runs. Consequently the key support, 76.0 vs 75.0 on MATH500 and 52.37 vs 52.94 on average, is a single draw under selection on the test cell. The MATH500 difference is within the sampling uncertainty of a 500-item test, and without paired seed and calibration variance the average 0.57-point gap cannot be separated from noise. The inter-loop similarity premise itself is reasonably supported by Figure 2, Table 1, and Appendix E, so the unresolved risk is whether the specific headline numbers are stable, not whether the mechanism exists.

I read the central claim as an empirical one: the mixed INT2/4 configuration preserves near-BF16 accuracy at 80.7% lower theoretical KV storage. The paper's arithmetic is internally consistent: I reproduced the b_eff calculation from Eq. A.1, the Table 2 averages, the 13.0-point Ouro MATH500 gain, and the 80.7% reduction. The design choices are also transparently documented, and the paper gives credit for the similarity premise with empirical evidence in Figure 2, Table 1, and the Huginn anchor-interval study in Appendix E. I therefore do not attack the inter-loop residual mechanism itself; that premise is acknowledged to be empirical and is supported on the two evaluated model families. The load-bearing soft spot is that the central numbers were selected on the same benchmark cell that anchors the headline result, and no variance or repeated-calibration information is reported. Section 5.2 explicitly confines the ablation comparisons to Ouro-1.4B MATH500, while Appendix G.1 uses seed 0 for rotation calibration and the reported evaluations are single deterministic runs. On a 500-item benchmark a one-point difference is within ordinary binomial sampling uncertainty, and without paired intervals the 0.57-point average gap to BF16 is not established as a real effect. This does not invalidate the method; it makes the quantitative claim conditional, which is exactly the reader's verdict. The additional concerns about the unreleased CUDA/vLLM backend and the LoopQ reimplementation calibration record in Appendix H.3 are real reproducibility issues, but they are secondary to the statistical status of the headline accuracy claim. Since my concern reinforces the reader's CONDITIONAL verdict rather than moving it, I recommend UNCHANGED.

The referee's report

If the headline results are stable, this is a practically valuable contribution: it shows that INT2-level KV compression is viable on looped Transformers through anchored residual reconstruction, and it provides a working system demonstration with concrete throughput numbers rather than only storage arithmetic. The paper also has clear strengths that should be credited: the storage accounting is internally consistent, since Eq. A.1 reproduces the reported effective bitwidths, the 80.7% and 5.2x reductions, and the abstract's 13.0-point claim; the ablation values in Tables 3, 4, and 5 are consistent with Table 2; and the paper is transparent that all ablation accuracy comparisons use Ouro-1.4B on MATH500. The residual-reconstruction mechanism is supported by the per-loop similarity evidence in Figures 2 and 5, Table 1, and Appendix E. The main unresolved issue is evidential rather than mathematical: the headline accuracy numbers come from a single deterministic run under a fixed calibration seed, with model components selected on the very cell that is then reported as the headline result.

Pith's reading of the paper (a machine's summary, not the authors')

ResidualQuant claims that looped Transformers—models that deepen computation by reusing the same blocks across recurrent loops—produce key and value states so similar from loop to loop that their cache can be stored as small low-precision differences rather than as full states. The method anchors on the final loop's KV states and represents every earlier loop as an INT2 residual from that anchor, after a least-squares rescaling and a learned rotation shared across loops, reserving INT4 for the anchor itself. Under this mixed [2,2,2,4] configuration with group size 32, the paper reports average accuracy of 52.37 against BF16's 52.94 on math and code benchmarks while reducing theoretical KV storage by 80.7%, with up to 13.0 points over a rotation-based baseline at the same memory budget. The smaller cache raises fixed-batch decode throughput up to 2.73x and peak throughput up to 4.15x on an RTX 5090, and the same residual principle lifts 4-bit weight-activation (W4A4) quantization when added to existing methods.

What carries the argument. The carrying object is the anchored residual reconstruction $\hat{X}_r = \alpha_r R_r + Q(X_r - \alpha_r R_r)$ with least-squares coefficient $\alpha_r = \langle X_r, R_r\rangle / \|R_r\|_2^2$ and final-loop anchor $R_r = \hat{X}_L$, so the anchor carries the shared signal and the stored codes carry only loop-specific corrections. Three further choices make the residual small and cheap to use: the Last-loop anchor gives shared-anchor reconstruction (two cache reads per loop, versus $L(L+1)/2$ chained reads for previous-/next-loop designs); a learned orthogonal rotation (OptR-H) is applied to the residual rather than the raw state and is shared across loops so its storage does not grow with sequence length; and loop-wise mixed precision puts INT4 on the anchor while residuals stay INT2, because every reconstruction depends on the anchor's quality. A custom CUDA attention kernel reconstructs anchor and residuals tile by tile in shared memory, reuses dequantized-value lookup tables for INT2 codes, and defers quantization of the current token until the final loop completes.

Core claim. On its own terms, ResidualQuant is the claim that inter-loop similarity is a compression resource: instead of quantizing each loop's KV states independently, keep the final loop's states as a shared anchor and store each earlier loop as a quantized residual $\hat{X}_r = \alpha_r R_r + Q(X_r - \alpha_r R_r)$, with $\alpha_r = \langle X_r, R_r\rangle/\|R_r\|_2^2$ chosen by least squares to minimize the residual's norm. Because the shared projections bound inter-loop KV differences by $\|X(r)-X(r-1)\|_2 \le \|W_X\|_2\,\|z(r)-z(r-1)\|_2$, the residuals inherit the smallness of successive recurrent hidden states; for Huginn-3.5B's 32 loops the scheme operates within independent four-loop groups, each with its own final-loop anchor. On Ouro-1.4B and Huginn-3.5B across GSM8K, MATH500, HumanEval, and MBPP, the full configuration—Last-loop anchor, LS scaling, shared OptR-H rotations, and a [2,2,2,4] precision schedule—nearly matches BF16 on average (52.37 vs 52.94) while cutting theoretical KV storage by 80.7%, and Ouro-1.4B MATH500 reaches 76.0% against BF16's 75.0%, where direct INT2 quantization scores 27.8% and OptR-H alone 55.4%. The paper further reports that the same anchor-and-residual construction, applied to activations with the previous loop as reference, improves W4A4 accuracy for Naive, FlatQuant, and LoopQ in nearly all measured cells.

The premise it rests on. The load-bearing premise is that a looped model's key and value states stay similar enough across loops—equivalently, that the hidden states feeding the shared projections barely move—that an INT2-quantized difference from a final-loop anchor still reconstructs each loop's attention inputs faithfully, so on models or inputs where loops differ sharply the residuals grow to the size of the states and the method degrades toward direct quantization.

If the paper is right (Pith's inferences, not the authors')

INT2-level KV compression becomes viable for looped Transformers: at the [2,2,2,4] precision schedule with group size 32, average accuracy is 52.37 against BF16's 52.94 while theoretical KV storage falls 80.7%, a point on the accuracy–memory curve that direct quantization and rotation-only baselines do not reach.

Shared-anchor reference selection matters as much as precision: the Last-loop policy needs $2L-1$ logical cache reads versus $L(L+1)/2$ for previous-/next-loop chaining (about 1.43x fewer at 4 loops and 8.38x fewer at 32), so reconstruction traffic does not eat the memory savings.

Compression translates into measured system gains: up to 2.73x fixed-batch decode speedup from reduced KV traffic and up to 4.15x peak throughput at 16k context on an RTX 5090, because the smaller footprint doubles the largest feasible batch.

Residual structure transfers to activations: applying anchor-plus-residual quantization to W4A4 (4-bit weight, 4-bit activation) schemes improves Naive, FlatQuant, and LoopQ in nearly all model–benchmark cells without retraining.

Deep recurrences can trade a little accuracy for more compression: lengthening Huginn-3.5B's anchor groups from 4 to 16 loops moves GSM8K from 42.61 to 42.30 (BF16: 42.84) while effective bitwidth falls from 3.1 to 2.8 at group size 32.

The accuracy gain over rotation-only baselines should be predictable from a cheap per-token statistic—the residual-to-state norm ratio $\|X_r - \alpha_r R_r\|_2/\|X_r\|_2$—which the paper measures as reconstruction error but does not turn into a deployment diagnostic for when INT2 residuals can be trusted on a given input.

Because the anchor is the final loop, the scheme targets fixed-depth recurrences; adaptive or early-exit looped models would need per-exit anchors, and a natural extension is to anchor at the loop where a token actually stops rather than at the configured maximum.

The same 'quantize the increment' recipe should apply to any shared projection acting on slowly-moving states, such as MLP blocks in cross-layer-shared models, so the activation results suggest a general quantization pattern for iterative-refinement architectures rather than a KV-cache-only trick.

The throughput figures are hardware-dependent: because the method cuts memory traffic rather than computation, the 2.73x and 4.15x numbers should shrink on GPUs with higher bandwidth-to-compute ratios, which a rerun of the batch-size sweep on another accelerator would reveal.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

Looped Transformers improve parameter efficiency by applying shared Transformer blocks over recurrent loops, increasing computational depth without increasing the parameter count. However, KV cache memory still scales with loop count, becoming a key memory bottleneck that limits batch size and inference throughput. KV cache quantization can alleviate this bottleneck, but existing methods often suffer substantial accuracy degradation at aggressive low-precision regimes. We observe that looped Transformers offer a unique opportunity: KV states across loops are highly similar. Based on this observation, we propose ResidualQuant, which uses the final-loop KV states as a reference and represents the remaining loops with low-precision residuals. Our method further combines least-square scaling and rotation-based quantization, as well as loop-wise mixed precision, to enable accurate quantization down to INT2 while retaining efficient reconstruction. Across multiple looped Transformer models and mathematical reasoning and code generation benchmarks, ResidualQuant consistently improves the accuracy-memory tradeoff over state-of-the-art rotation-based KV quantization. In particular, our method retains accuracy close to BF16 under mixed-precision settings while reducing theoretical KV storage by 80.7%, achieving up to 13.0% higher accuracy than the rotation-based baseline at nearly the same memory budget. On an RTX 5090, reduced KV memory traffic improves fixed-batch decode throughput by up to 3.66x, while the smaller memory footprint enables up to 8x larger batches, improving peak throughput by up to 5.38x.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-10-08

The authors' main claim, as the classifier picked it out 0.98

“Across multiple looped Transformer models and mathematical reasoning and code generation benchmarks, ResidualQuant consistently improves the accuracy-memory tradeoff over state-of-the-art rotation-based KV quantization.”

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.05 · states limitation 0.12 · human participants 0.02 · controlled comparison 0.94 · randomized assignment 0.01 · states quantitative result 0.99 · compares with prior results 0.98 · mentions code or data availability 0.02

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Looped Transformers improve parameter efficiency by repeatedly applying shared Transformer blocks over multiple recurrent loops, increasing computational depth without increasing the parameter count. background 1.00 0.06 0.02 asserted 1.00
However, KV cache memory still scales with the number of loops, becoming a key memory bottleneck that limits batch size and inference throughput. background 0.94 0.15 0.03 asserted 1.00
KV cache quantization can alleviate this bottleneck, but existing methods often suffer substantial accuracy degradation at aggressive low-precision regimes. gap 0.55 0.05 0.02 asserted 0.94
We observe that looped Transformers offer a unique opportunity: KV states across loops are highly similar. result 0.59 0.86 0.05 asserted 0.99
Based on this observation, we propose ResidualQuant, which uses the final-loop KV states as a reference and represents the remaining loops with low-precision residuals. contribution 0.56 0.87 0.09 asserted 1.00
Our method further combines least-square scaling and rotations applied to the residuals, as well as loop-wise mixed precision, to enable accurate quantization down to INT2 while retaining efficient reconstruction. method 0.96 0.92 0.08 asserted 1.00
Across multiple looped Transformer models and mathematical reasoning and code generation benchmarks, ResidualQuant consistently improves the accuracy-memory tradeoff over state-of-the-art rotation-based KV quantization. result 1.00 0.95 0.62 asserted 1.00
In particular, our method retains accuracy close to BF16 under mixed-precision settings while reducing theoretical KV storage by 80.7%, achieving up to 13.0% higher accuracy than the rotation-based baseline at the same memory budget. result 1.00 0.96 0.48 asserted 1.00
On an RTX 5090, the reduced KV memory traffic improves fixed-batch decode throughput by up to 2.73x, while the smaller memory footprint enables up to 2x larger batches, improving peak throughput by up to 4.15x. result 1.00 0.94 0.16 asserted 1.00

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.94

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-08: 1 request, 7,090 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Cited by 7 Pith papers

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment