Manuscript Offprint

arXiv:2610.02815

iS-KV: Online Low-Rank KV Cache Compression via Block-Incremental SVD

Yiren Zhao, Guanghui Song, Tianrui Qin, Kejiang Ye, Cheng-zhong Xu, Xitong Gao

ABSTRACT

Long chain-of-thought reasoning substantially increases KV-cache memory during autoregressive decoding, as every generated token introduces new key and value states and causes the cache to grow linearly with decoding length. Existing KV-cache compression methods typically control this growth through token eviction, but irreversible deletion can remove historical states that later reasoning may need to revisit. SVD-based low-rank compression provides an alternative by retaining all positions with a more compact representation. However, extending it from a fixed prompt cache to online decoding is non-trivial. Through our investigation, we find that if the basis is updated for new tokens while old tokens keep their coordinates in the old basis, the stored history drifts substantially. Based on this observation, we propose iS-KV, an online low-rank KV-cache compression method for long-horizon reasoning. iS-KV keeps a recent window exact while incrementally folding older states into bounded-rank representations. As the low-rank basis evolves, it synchronizes historical coordinates with the updated basis to maintain representation consistency. On DeepSeek-R1-Distill-Llama-8B, iS-KV achieves 82.6% accuracy at 4.06×4.06\times persistent-KV compression, close to the original model's 83.6%. On Qwen3-8B, it achieves 89.2% accuracy at 5.64×5.64\times compression. Under matched memory budgets, iS-KV consistently outperforms token-eviction baselines.

1 INTRODUCTION

Long chain-of-thought (CoT) reasoning increases the memory needed during generation. Each generated token adds key and value states to the KV cache, so a long reasoning trace can require substantially more KV cache storage than its prompt (Guo et al., 2025; Yang et al., 2025). The challenge is to reduce the KV storage cost during the decoding-phase without losing information that later reasoning may need.

Two observations motivate our design. First, old tokens can become important again. A token that receives little attention at the current step may receive strong attention thousands of tokens later. Once evicted, it cannot be recovered. On Qwen3-8B, for example, R-KV reduces MATH-500 accuracy from 94.4% to 68.8% at about 5.6×5.6\times compression. Second, KV states have strong low-rank structure, so old tokens can be compressed instead of deleted. Doing this online requires care: when the low-rank basis changes as new tokens arrive, the coordinates of previously compressed tokens must change with it. Otherwise, the stored history no longer represents the same states.

Token-eviction methods reduce cache size by keeping selected positions and removing the rest, typically using attention scores, recency, or redundancy (Zhang et al., 2023; Xiao et al., 2024; Cai et al., 2026). These signals describe which tokens appear important under the queries seen so far, but they cannot predict all future queries. Figure 1(a) illustrates this issue on long reasoning traces from

*Corresponding author: xt.gao@siat.ac.cn.

(a) Old tokens matter later

Figure

(b) KV states are low-rank

(c) Basis-only updates drift

Figure 1: Keep old positions, compress their KV states, and update them together. (a) At step 1024, we mark the 75% least-attended tokens (none are removed) and plot the share that later receives strong attention. (b) Singular values of generated K/V states, divided by the largest. (c) Drift of the stored history caused by each update. Dashed: the basis is updated but old coordinates are kept. Solid: the basis and old coordinates are updated jointly, which equals the iS-KV update in exact arithmetic. Bands show observed ranges; Section A.3 gives all settings.

DeepSeek-R1-Distill-Llama-8B and Qwen3-8B on MATH-500, AIME 2024, and AIME 2025. At decoding step 1024, we mark the 75% of tokens with the lowest recent attention, without removing them. As decoding continues, many of these tokens become important again. On AIME, about 30% receive strong attention again within the next 8K tokens, and this fraction grows to about 60% by 30K tokens. At matched memory, actual eviction by R-KV loses 5.4–11.0 points on DeepSeek-R1-Distill-Llama-8B and 23.0–33.6 on Qwen3-8B (Table 1).

Low-rank compression offers a different approach: keep every token position, but store each old state more compactly. Each position is represented by a short coefficient vector over a basis shared across positions. Figure 1(b) shows that generated KV states are indeed low-rank. Keys have the fastest singular-value decay before rotary positional embeddings (RoPE), consistent with prior work (Sun et al., 2025), while values decay more slowly and are harder to compress. The main difficulty appears during online decoding. As new states arrive, the low-rank basis must adapt. But the coefficients of old states were computed in the previous basis. If the basis is updated while the old coefficients remain unchanged, the reconstructed historical states change as well. In other words, the same coefficients represent different vectors under a new basis. Figure 1(c) measures this drift. At step 256, updating only the basis gives a drift of 1.55 for keys and 1.40 for values. Updating the old coefficients together with the basis reduces these values to 0.023 and 0.051. This result shows that adapting the basis and preserving old states must be handled together.

We therefore propose iS-KV, an online low-rank KV-cache compression method designed for long-horizon reasoning. iS-KV keeps recent states at their original precision and folds older states into separate low-rank K and V representations. Using block incremental SVD (Brand, 2006), it updates both the low-rank basis and the coefficients of all previously compressed positions. Keys are compressed before RoPE, where their low-rank structure is stronger. During attention, the reconstructed historical states are combined with the recent exact states. Every token position thus remains available to future queries, although older states are approximate. A fixed rank reduces the storage per old token, so iS-KV slows cache growth rather than making it constant in size.

On MATH-500, iS-KV achieves 82.6% accuracy at 4.06×4.06\times persistent-KV compression on DeepSeek-R1-Distill-Llama-8B, close to the original model's 83.6%. On Qwen3-8B, it achieves 89.2% at 5.64×5.64\times compression, compared with 68.8% for matched-memory R-KV. It outperforms both R-KV and SnapKV at all six matched-memory operating points and remains within 1.0–6.6 accuracy points of the original model. On AIME 2024 at rank 192, iS-KV on Qwen3-8B matches the original model with 23 of 30 correct answers, compared with 13 for matched-memory R-KV. Memory matching counts low-rank factors, exact entries, and R-KV's staging buffer at the original model's output lengths. This avoids counting shorter generations as compression gains. Our contributions are:

• Online K/V compression. We develop iS-KV to retain every token position, keeping recent states exact while storing older states in bounded-rank form.

• Consistent history updates. We show that a basis-only update makes the stored history drift, and update the basis and old coefficients jointly via block incremental SVD.

• Reasoning accuracy at matched memory. On two 8B models, iS-KV outperforms R-KV and SnapKV at all six matched MATH-500 operating points. AIME, RULER, ablation, and latency results further show its strengths and limitations.

References (31)