Manuscript Offprint

arXiv:2610.05685

Spend Bytes on Breadth: Precision-Count Trade-offs for Decode-Time KV Compression in Long Chain-of-Thought Reasoning

Runguo Li

Abstract

Reasoning models write most of their KV cache while decoding long chains of thought (CoT), so the cache has to be compressed online under a fixed memory budget. Decode-time methods mostly decide which tokens to evict. We ask how a fixed byte budget should be split between the number of cached tokens and their precision. BreadthKV spends the bytes on more tokens at low precision, combining quantization with eviction, and picks the bit-width for each model and budget with a 60-problem end-to-end calibration, since offline attention error does not predict it reliably. On three reasoning models and four math and science benchmarks, it scores above eviction alone in 17 of 18 settings and produces shorter outputs. Much of what eviction loses comes from derailed runs, which keep reasoning until the length cap without reaching an answer. On Qwen3-8B at our tightest budget, eviction sends 91% of AIME samples to the cap and BreadthKV 40%. Under the same protocol, BreadthKV is statistically indistinguishable from a joint rate-distortion allocator (RDKV) that uses 27% more KV memory-time, and it outperforms our re-implementation of ThinKV.

1 Introduction

Long-CoT reasoning models generate 10–30K tokens per problem, and the KV cache grows with every decoded token. At 32K tokens, a single Qwen3-8B sequence holds 4.5 GiB of KV cache in bf16, so four sequences already take more memory than the model's 16 GB of weights. The cache has to be compressed online, and there is no fixed query to guide it, as there is when compressing a prompt. Token importance also shifts during decoding, since reflection steps often return to early intermediate results, and errors accumulate over the trace. Under eviction, models can fall into loops that run until the length limit (Chang et al., 2026b; Cheong et al., 2026), and a smaller cache can make the model write more tokens, which offsets part of the memory saved (Liu et al., 2025; Zhu et al., 2026).

Recent decode-time methods decide which tokens to keep, using attention scores (Zhang et al., 2023; Li et al., 2024), redundancy-aware scores (Cai et al., 2025), thought-type heuristics (Ramachandran et al., 2026), or value ranges combined with stochastic eviction (Chang et al., 2026b). Concurrent work finds that uniform random eviction, with the prompt kept, does about as well as these scores at 4×4\times compression (Wang et al., 2026b).

A simple offline measurement shows why the other axis, precision, deserves attention. Even an oracle that knows which tokens future queries will attend to loses about 13% of their attention mass when it keeps 10% of the tokens (§4). A long CoT keeps going back to its own intermediate results, and an evicted token cannot be recovered. A token stored at 2 bits is noisy, but a later reflection step can still find it. At a fixed byte budget, a head can keep K tokens in fp16, about 3K at 4 bits or about 6K at 2 bits, so the question becomes how to trade noise per token against coverage. Zhang et al. (2025) studied this trade-off for long inputs, where pruning plus quantization beats pruning at equal memory. Long-CoT decoding differs in two ways: the cache is written during generation, so errors compound over tens of thousands of steps, and a lossy cache changes what the model writes, including how long it runs. Kim et al. (2026) compare quantization and eviction for reasoning models, but separately, and find 2-bit quantization lossy.

We combine the two at equal KV bytes and much tighter budgets. On three models and four benchmarks, the byte split matters more than the token scorer. With the bit-width chosen by a short end-to-end calibration, a method we call BreadthKV, the low-bit hybrid scores above SnapKV-style eviction in 17 of 18 settings ( §5.1§5.1). The best bit-width depends on the model and budget, and neither offline

(a) Same bytes, different split (one KV head, at a compression step)

decode-token budget: bytes of B fp16 tokens

Eviction (SnapKV-D)

prompt (fp16)

B = 512 tokens, 16-bit

evicted

BreadthKV

fp16 window

prompt (fp16)

B=512,b=2:B = 512, b = 2:

Bb=2,412B_{b} = 2,412 tokens

BbB_{b} tokens at b bits (KIVI format:

K per channel, V per token)

Every 128 decode steps:

① quantize full 64-token blocks outside the 128-token fp16 window;

② evict with SnapKV-D to Bb=160+(B−160)⋅16/(b+0.5)B_{b} = 160 + (B - 160) \cdot 16/(b + 0.5) tokens.

(b) Choose b end to end

calibration set: 60 AIME 2022–23 problems × 4

run byte-matched b∈{2,3,4}b \in \{2, 3, 4\} hybrids

43.3

30.4

20.8

2-bit

3-bit

4-bit

calibration accuracy (%)

Qwen3-8B, B = 512

pick b∗=2b^{*} = 2 (3 runs, no training)

(c) More breadth, less derailment

runs hitting the 32K cap (%)

accuracy (%)

Qwen3-8B, AIME24/25, B = 512

91.0

65.4

54.8

38.1

40.4

SnapKV-D

4-bit

3-bit

2-bit

fewer bits per token, more tokens (same bytes)

Figure 1: Overview of BreadthKV. (a) At the same KV byte budget per head, eviction keeps B full-precision decode tokens, whereas BreadthKV quantizes older tokens to b bits in the KIVI format and keeps BbB_b of them plus a 128-token fp16 window; both compress every 128 decode steps and keep the prompt in full. (b) The bit-width is chosen for each model and budget by running the byte-matched {2,3,4}\{2, 3, 4\}-bit hybrids on 60 held-out AIME problems. (c) At equal bytes, fewer bits per token lower the share of runs that reach the 32K cap and raise accuracy (FullKV: 10.2% capped, 69.8% accuracy). Squares are not to scale.

attention error nor a per-head online probe finds it ( §5.2–5.3§5.2–5.3). Eviction loses mostly through derailed runs that never conclude, and keeping more tokens at lower precision makes them rarer, down to about 2 bits ( §5.6–5.8§5.6–5.8). We also run RDKV (Zhang et al., 2026b) with the authors' code, where we found and fixed a zero-point clamp in the released quantizer, and our re-implementation of ThinKV (Ramachandran et al., 2026) under the same protocol ( §5.4–5.5§5.4–5.5). Last, we measure the latency of an int4 decode kernel ( §5.9§5.9).

References (53)