Manuscript Offprint
arXiv:2611.01735CacheWeave: Learning to Recompute for Efficient Position-Independent KV Caching
ABSTRACT
Position-independent caching reuses chunk KV caches across positions and requests. Independent encoding, however, omits cross-chunk interactions and can degrade accuracy. In our study, neither PIC training nor rule-based recomputation, alone or combined, consistently recovers full-prefill accuracy. Oracle-guided recomputation on PIC-trained models improves accuracy at the same budget, motivating better selection. We present CacheWeave, which adapts the full backbone to PIC, then freezes it and trains a model-native block selector on the adapted model's oracles. The selector uses compact cached chunk features and question hidden states without extracting backbone attention scores. It selects contiguous token blocks aligned with KV blocks to support efficient recomputation and limit copy-on-write amplification. Its runtime, CacheWeave-Serve, supports private and shared KV caches, keeps selection and recomputation on the GPU, and stages sliding-window KV for hybrid attention models. Across three models and four tasks, CacheWeave outperforms CacheBlend and ProphetKV by 7.2 and 3.5 percentage points on average at a 5% recomputation budget, with a mean relative accuracy loss of 1.6% to full prefill. With 32-token blocks, CacheWeave-Serve cuts single-request TTFT by up to 16.1× over full prefill and 1.7× over ProphetKV, and raises SLO goodput under load by up to 7.8×.
1 INTRODUCTION
LLM requests often reuse the same context in different combinations. Retrieval-augmented generation (RAG) draws documents from a shared corpus, while coding agents revisit source files and tool outputs as a task evolves (Yang et al., 2024; Wang et al., 2025; Fang et al., 2026; Lewis et al., 2020; Wu et al., 2024; Geng et al., 2026). Reusing the key-value (KV) states of these recurring chunks can avoid repeated prefill computation. Prefix caching exploits this opportunity when requests share an identical token prefix (Zheng et al., 2024; Kwon et al., 2023). However, a chunk's KV states generally depend on its preceding context. Prefix caching therefore recomputes a recurring chunk if its preceding context changes, even when the chunk's tokens are identical.
Position-independent caching (PIC) broadens reuse by encoding chunks independently and assembling their cached KV for each request (Gim et al., 2024; Lu et al., 2024; Hu et al., 2025). This avoids repeated chunk prefill but removes cross-chunk interactions from the cached representations, which can hurt tasks that combine evidence across
chunks. Existing remedies follow two approaches (Table 1). Training-free methods selectively recompute tokens using predefined criteria, such as KV deviation or question attention, without changing model weights (Yao et al., 2025; Wang et al., 2026). Training-aware methods instead adapt how the model constructs or consumes independent chunk caches, avoiding per-request chunk recomputation (Ma et al., 2025; Chen et al., 2026b; Xie et al., 2026).
Our study finds that neither PIC training nor selective recomputation consistently recovers the base model's full-prefill accuracy across the models and tasks we evaluate (Section 3). Applying ProphetKV or CacheBlend to PIC-trained models also yields inconsistent gains and can reduce multi-hop QA accuracy. Yet at the same 5% recomputation budget, oracle selectors on these models improve over ProphetKV by up to 9.7 percentage points. These oracles require information unavailable during normal PIC inference, but demonstrate room for better selection at a fixed budget. This motivates learning a selector from the adapted model's own oracles.
Better selection must also preserve PIC's serving advantage. Extracting the backbone's attention probabilities can require materializing matrices that fused attention kernels normally avoid storing (Dao et al., 2022). In our Qwen3-4B measurements at 16K context, ProphetKV's selection and 5% recomputation reduce warm PIC's speedup over full prefill from 14× to 3.1× (Section 3.4). Updates also affect
*Work done during internship at Xiaohongshu Inc. †Corresponding authors. ¹École Polytechnique Fédérale de Lausanne ²Independent Researcher. Correspondence to: Qianchao Zhu and Yuliang Liu.
Preprint.
Table 1. Comparison of PIC approaches. Restoration gives selected tokens access to preceding chunks; model-native selection is learned for the adapted model. Online cost is extra work beyond PIC: denotes the recomputed token fraction, probe an early-layer KV deviation pass, pass question prefill with attention probabilities, and selector learned block scoring. Accuracy is relative to full prefill in our evaluation; Attuner, SemPIC, and block distillation are represented by our reader-only, writer-only, and full-model training variants.
| Family | Method | Training | Attention restore | Query-aware selection | Model-native selection | Online cost | Accuracy |
|---|---|---|---|---|---|---|---|
| Training-free selective recompute | CacheBlend | ✕ | ✓ | ✕ | ✕ | probe + | Low |
| EPIC | ✕ | ✓ | ✕ | ✕ | Low | ||
| ProphetKV | ✕ | ✓ | ✓ | ✕ | Q pass + | Medium | |
| Training-aware PIC (partial) | Attuner | reader | ✕ | – | – | none | Low |
| SemPIC | writer | ✕ | – | – | none | Low | |
| Training-aware PIC (full) | Block distillation | ✓ | ✕ | – | – | none | Medium |
| Native recompute | CacheWeave | ✓ | ✓ | ✓ | ✓ | selector + | High |
memory sharing: in a block-based KV cache (Kwon et al., 2023), recomputing scattered tokens can require copying many shared blocks. A small token budget can therefore incur substantial execution and memory costs. Effective recomputation requires choosing both which states to update and how to execute and store those updates.
We present CacheWeave, which couples PIC adaptation with a learned, model-native recomputation selector. Using cached chunk features and question hidden states, the selector chooses contiguous token blocks aligned with the engine’s KV blocks, without extracting backbone attention probabilities (Section 4.1). We first fine-tune the full backbone under PIC by self-distillation on the base model’s full-prefill responses, then freeze it and train the selector on oracles computed from that adapted backbone (Section 4.2). For a fixed block size, one selector supports multiple recomputation budgets without retraining. Our runtime, CacheWeave-Serve, uses block alignment to bound copy-on-write amplification, supports private and shared GPU caches, and keeps selection and recomputation on the GPU. It also supports hybrid attention models by staging sliding-window KV layer by layer (Section 4.3).
We evaluate CacheWeave on three models from two families and four tasks covering multi-hop QA and retrieval (Section 5). At a 5% recomputation budget, CacheWeave outperforms CacheBlend and ProphetKV on the same PIC-trained models over all model-task pairs, gaining 7.2 and 3.5 points on average. Its relative accuracy loss to full prefill averages 1.6% and is at most 8.3%; its average lead over ProphetKV persists at every tested block size. At 24K material tokens, with 32-token blocks as recompute granularity and a 5% budget, CacheWeave-Serve achieves single-request time-to-first-token (TTFT) speedups of 13.9× over full prefill and 1.46× over ProphetKV on Qwen3-32B, and 16.1× over full prefill on Gemma4-12B. Under load, CacheWeave-Serve raises peak SLO goodput by up to 7.8×.
We make the following contributions:
-
A diagnosis of PIC accuracy and cost: either PIC training or rule-based recomputation stays far from full-prefill accuracy. Simple combination can still leave the gap wide. Oracle selections at the same budget do much better, and inefficient recomputation can consume a lot of PIC’s prefill speedup (Section 3).
-
A model-native selector and a two-stage recipe that trains it on the PIC-trained model’s own oracles, with no attention scores at inference and selector granularity aligned with KV block sizes (Section 4.1–4.2).
-
CacheWeave-Serve, a serving design providing private and shared GPU memory modes with an analysis of when sharing pays, efficient GPU-resident selection and recomputation, and support for hybrid sliding-window models (Section 4.3).
-
An evaluation on three models from two families and four tasks, demonstrating higher accuracy at matched recomputation budgets and substantial single-request TTFT reductions at long contexts (Section 5).

(c) Selective recompute
Figure 1. Attention patterns for system prefix , chunks , and question ; rows attend to coloured columns. (a) Full prefill. (b) PIC removes cross-chunk interactions. (c) Selective recomputation restores selected tokens' access to preceding context (dashed), and reads their refreshed KV. Training-aware PIC retains (b) and adapts the model's weights.
where is a shared system prefix, are material chunks, and is the request-specific question, followed by the answer . Let denote the span containing input token , and the starting position of .
Beyond prefix caching. Under full causal prefill, token attends to
so a chunk's KV states generally depend on its preceding context. Prefix caching therefore reuses states only when the entire token prefix matches (Zheng et al., 2024; Kwon et al., 2023). Position-independent caching broadens reuse by encoding each chunk independently (Gim et al., 2024; Lu et al., 2024; Yao et al., 2025):
At serving time, cached chunks are assembled at their request positions, and only Q is prefilled (Figure 1a–b). With rotary position embeddings, a cached key at chunk-local position j is relocated as , leaving its value unchanged. Position alignment leaves cross-chunk interactions missing, causing substantial accuracy loss on tasks requiring reasoning across chunks. Prior work mitigates this loss in two ways (Table 1): training-free selective recomputation restores some of the missing interactions at inference time, while training-aware PIC trains the model to use independently encoded caches.
Training-free selective recomputation. These methods recompute a small set of chunk tokens with access to their full preceding context, while retaining PIC for the rest (Figure 1c):
where limits the recomputed fraction. Selected tokens are recomputed against the reused cache, and the question reads their refreshed KV.
The methods differ in how they select . Query-agnostic methods choose it without seeing the query: CacheBlend (Yao et al., 2025) and KVShare (Yang et al., 2025b) recompute the tokens whose KV deviates most between PIC and full prefill in early layers; EPIC (Hu et al., 2025) recomputes the first tokens of each chunk; RedKnot (Liu et al., 2026) recomputes selected attention heads instead of tokens; and Cache-Craft (Agarwal et al., 2025) couples targeted recomputation with chunk-cache management. Query-aware methods, such as ProphetKV (Wang et al., 2026), InfoFlow KV (Teng et al., 2026), QCFuse (Yan et al., 2026) and RelaxKV (Qi et al., 2026), choose from the query's attention to the chunks. All of them leave the model unchanged, choose by a fixed rule, and trade accuracy against the recomputation budget .
Training-aware PIC. These methods train the model to use independently encoded chunks without per-request KV recomputation. Block-Attention (Ma et al., 2025) trains the whole model by supervised fine-tuning (SFT) under PIC prefill, and block distillation (Li et al., 2026) further distills from a full-attention teacher. Others add trainable components: KVLink (Yang et al., 2025c) trains link tokens jointly with the model, KV Packet (Chen et al., 2026a) wraps each cached chunk in trainable boundary embeddings, and COMB (Zhao et al., 2026) adds a trained chunk encoder and cross-attention interface to a frozen decoder. Two recent methods train one side of the interaction: SemPIC (Xie et al., 2026) adapts the writer side, how chunks are encoded, and Attuner (Chen et al., 2026b) adapts the reader side, how the question reads fixed caches. These approaches improve cache construction or consumption but leave cached chunk KV unchanged in the request-specific context.
Serving costs of PIC. Accuracy recovery must preserve PIC's latency and memory benefits. Selection adds runtime overhead, especially when it requires attention scores that fused kernels (Dao et al., 2022) do not expose. Meanwhile, KV allocation and sharing determine batch capacity (Kwon et al., 2023); request-specific recomputation can reduce the memory savings from sharing through copy-on-write. Efficient PIC therefore requires coordinating cache management, data movement, and selective recomputation.
3 MOTIVATION FOR LEARNED RECOMPUTATION
We examine the accuracy and cost of PIC training and selective recomputation, separately and in combination, using the models and benchmarks in Section 5.1. We use the

Figure 2. Each PIC method alone. Lines: non-native recomputation on the untrained base model at 5–20% recomputation budget. Dashed: lossless (base model, full prefill), base PIC, and trained PIC without recomputation (green). Trained PIC still trails lossless by 36.9 (Qwen3-4B) and 10.7 (Gemma4-12B) points on MV, and by at most 13.8% of lossless on multi-hop QA.
base model's full-prefill accuracy as the lossless reference and denote PIC-trained inference without recomputation as trained PIC. For selective recomputation, we evaluate ProphetKV (Wang et al., 2026) and CacheBlend (Yao et al., 2025). We refer to their selection policies as non-native: they use predefined rules rather than selectors trained for the PIC-adapted model.
3.1 Each Family Alone Leaves Accuracy Gaps
We first measure PIC training without recomputation and selective recomputation on the base model (Figure 2). PIC training alone leaves accuracy gaps that vary across models and tasks. On the RULER MV retrieval task, trained PIC still loses 36.9 points on Qwen3-4B and 10.7 on Gemma4-12B. On multi-hop QA, the gap is small for Gemma4-12B (2.6% to 6.1% of lossless) but remains larger for Qwen3-4B, up to 13.8% (36.7 against 42.6 on MuSiQue). Even after PIC training, the model thus cannot make up for the missing cross-chunk attention in every setting.
Selective recomputation also leaves substantial gaps, even with a large budget. On 2WikiMQA, base Qwen3-4B scores 2.5 under PIC against 80.0 lossless; recomputing 20% of the chunk tokens raises it to 59.5 with ProphetKV and 64.5 with CacheBlend, still 15 to 21 points short. How much each method helps also depends on the model and the task. On Gemma4-12B, ProphetKV helps multi-hop QA little: at 20% it gains only 3 to 12 points over base PIC. CacheBlend, in turn, stays far from lossless on MV for both models, reaching 26.6 and 17.9 at 20% against 88.6 and 93.5 lossless.
Takeaway. Neither PIC training nor selective recomputation alone consistently recovers full-prefill accuracy, and their remaining gaps vary across models and tasks. This motivates us to examine whether combining them closes these gaps.

Figure 3. Non-native recomputation on PIC-trained models: accuracy minus lossless (percentage points; three draws). Trained PIC reads the PIC cache without recomputation; ProphetKV and CacheBlend recompute 5% or 10% of the chunk tokens.
3.2 Combining Them Gives Inconsistent Gains
We next apply ProphetKV and CacheBlend to the three PIC-trained models to test whether recomputation closes the gaps left by training (Figure 3).
ProphetKV improves retrieval but provides inconsistent gains on multi-hop QA. Pooled over the three models, at 5% it gains 19.9 points over trained PIC on MV. On 2WikiMQA it makes answers worse: at 5% it is 2.9 points below trained PIC (95% CI [-3.3, -0.8]), and all three models score below their trained-PIC baselines. Even on Qwen3-4B, which keeps the largest multi-hop loss after training, ProphetKV at 5% changes HotpotQA, MuSiQue and 2WikiMQA by +1.7, -1.2 and -5.5 points respectively.
CacheBlend offers limited gains even on MV retrieval: even at 10%, it changes accuracy by only -4.0 to +3.2 points across models, leaving the gap to lossless wide. It never improves multi-hop QA significantly at any budget; its pooled

Figure 4. Task accuracy of two oracle selectors minus ProphetKV, all at a 5% budget on the same PIC-trained model (percentage points; three draws).
change stays between -1.0 and +1.7 points. Stacking a non-native method on a PIC-trained model thus does not reliably recover the loss training leaves on multi-hop QA.
Takeaway. Non-native recomputation does not reliably improve PIC-trained models and can even reduce accuracy on tasks requiring cross-chunk reasoning. These results motivate a closer examination of token selection.
3.3 Better Selection Improves Recovery
Do these limitations come from recomputation itself or from which tokens are selected? We compare ProphetKV with two oracle selectors at the same 5% budget. Both oracles are infeasible in deployment; they bound what a better selector could achieve.
Full-prefill attention oracle (Q-full). The Q-full oracle applies ProphetKV's selection rule to full-prefill KV rather than PIC states. Let be the chunk tokens, the full-attention layers (our ProphetKV extension excludes sliding-window layers), and the attention of question token to chunk token in head of layer under full prefill. The score of averages its attention, renormalized over the chunk tokens, over question tokens, heads and layers:
and the top tokens are recomputed. ProphetKV uses the same score method against the PIC KV cache. Q-full is infeasible in deployment because it requires the full prefill.
Multi-round utility oracle. The utility oracle estimates how replacing a token's cached KV with its full-prefill KV

Figure 5. ProphetKV recomputation overhead on Qwen3-4B with 1024-token chunks. Left: warm PIC (question-only prefill), plus 5% recomputation, then selection. Right: recomputation latency versus granularity at 16K context, with 5% and 10% budgets.
would affect the likelihood of the full-prefill answer , generated by the same PIC-trained model:
where , likewise, and is the inner product. The gradient measures how sensitive the answer is to the token's KV, and the difference measures how wrong the reused KV is; their product estimates how much recomputing the token would help. Because tokens interact, the estimate is iterative: selection is greedy over rounds of equal size, and each round recomputes the tokens chosen so far exactly and re-linearizes Equation 6 at the new state. We empirically use eight rounds for 10% budget, and the first four rounds form the set for 5%. The utility oracle is also infeasible in deployment because it requires both the full-prefill answer and KV cache.
Results. Figure 4 compares the oracles with ProphetKV; we omit CacheBlend, which trails ProphetKV (Section 3.2). Both oracles match or beat ProphetKV on every model and task, by up to 9.7 points (utility on Qwen3-4B, 2WikiMQA). Since Q-full, like ProphetKV, sees only the question, part of ProphetKV's loss comes from scoring tokens on the PIC cache rather than the full-prefill state.
Takeaway. Better selection improves recovery without increasing the recomputation budget. These oracles provide supervision for learning a selector tailored to the PIC-trained model.
3.4 Selection and Recomputation Must Be Cheap
Accuracy recovery comes at a runtime cost. Figure 5 measures the cost of ProphetKV on Qwen3-4B. At 16K context, on top of warm PIC's 25 ms, selection alone adds 43 ms, because ProphetKV needs the question's attention score, which fused attention kernels do not expose. Recomputing 5% of the chunk tokens adds another 46 ms. Together, these overheads reduce the speedup over full prefill from

Figure 6. Block scoring at one layer: offline writer keys are scored by question-derived reader heads. Learned weights combine layer distributions to select blocks for recomputation.
14× to 3.1×. Recomputation cost depends on budget and granularity. Increasing the budget from 5% to 10% raises recomputation latency by 1.7×, while grouping selected tokens into contiguous runs reduces latency at either budget.
Takeaway. Selection and recomputation can consume most of PIC's prefill speedup. Preserving this speedup requires low-overhead selection and a small recomputation budget spent on efficiently processed token blocks.
4 CACHEWEAVE DESIGN
CacheWeave combines PIC adaptation with a model-native block selector (Section 4.1). We first adapt the backbone, then train the selector on the adapted model's oracles (Section 4.2). At inference, selection uses cached chunk features and question hidden states without extracting attention probabilities. CacheWeave-Serve coordinates block-aligned recomputation and cache sharing to limit copying and preserve PIC's speedup (Section 4.3).
4.1 Model-Native Selector
Selector granularity. We partition chunks into contiguous selector blocks of tokens. Selector and KV blocks share a chunk-local origin, with dividing the KV block size (), so each selector block touches at most one KV block. From selector blocks , we select with for budget and recompute their tokens with preceding context (Equation 4). The question then reads the refreshed KV. Alignment limits both scattered computation and copy-on-write amplification.
Offline block key construction. A writer projection maps independently computed chunk hidden states to dimensions and averages them within each
block :
These keys are stored with the chunk's KV cache (Figure 6).
Online learned block scoring. Question prefill over PIC KV produces hidden states , from which the reader derives heads and gates :
where and the temperatures are learned. contains all full-attention layers: 36 on Qwen3-4B, 64 on Qwen3-32B, and 8 on Gemma4-12B.
Selector overhead. Selection uses hidden states and cached keys, requiring no attention scores or changes to fused attention kernels. Compared with ProphetKV, query-key scoring uses and fewer scalar multiplications on Qwen3-4B and Qwen3-32B at , excluding reader projections and other costs. Both methods use 128-dimensional scoring heads on these models, but the selector scores blocks with four heads rather than tokens with 32 or 64 heads. For full blocks on Qwen3-4B, selector keys add 144 values per token at , about 0.2% of KV storage at equal precision. Parameter overhead is 1.5% on Qwen3-4B, 0.6% on Qwen3-32B, and 0.2% on Gemma4-12B.
4.2 Two-Stage Training
Stage 1: PIC self-distillation. We generate target responses with the base model under full prefill, then fine-tune the entire backbone under the PIC mask (Equation 3) using cross-entropy loss. The model thus learns to predict full-context targets from independently encoded chunk caches, without external reference answers. Updating all backbone parameters jointly adapts cache encoding and reading. Our ablation supports this choice: on Qwen3-4B's 2WikiMQA, full-backbone PIC-SFT scores 71.8, compared with 13.5 and 61.5 for our reader-only (Attuner-like (Chen et al., 2026b)) and writer-only (SemPIC-like (Xie et al., 2026)) variants.
Stage 2: oracle-supervised selection. We freeze the adapted backbone and train the selector using oracles from that backbone (Section 3.3): utility for multi-hop QA and Q-full for retrieval, chosen on the development set. For oracle block distribution and prediction , the loss is

Figure 7. Cache layout and HBM modes. (a) Chunk IDs index KV blocks and selector keys. (b) Private copies updated in place. (c) Shared blocks copied before updates; unchanged blocks read from the common base (dotted).
where the subscript denotes renormalization over the union of the oracle's and selector's top blocks. For each sample, we draw and set . The first term matches the full distribution; the second emphasizes ranking near the selection cutoff. Varying the budget allows one selector to serve different budgets without retraining. Its chunk and question inputs come from the frozen backbone's PIC hidden states, so gradients update only the selector.
4.3 Efficient PIC Serving
CacheWeave-Serve executes the adapted backbone and selector over a two-tier cache. Host DRAM or a memory pool (L2) stores immutable chunk KV and selector keys (Figure 7a), while GPU HBM (L1) holds resident objects for active requests (Liu et al., 2025; Qin et al., 2024). For each request, CacheWeave-Serve reuses resident objects or loads missing ones, selects and recomputes blocks, then decodes from the refreshed cache.
4.3.1 Cached Objects and Request Layout
Requests supply tokens and content hashes for chunks . For a fixed backbone and cache format, CacheWeave-Serve indexes chunk KV and selector keys as
where hashes its arguments and identifies the selector. Each holds KV for up to consecutive tokens, with attention keys stored before RoPE for reuse at different positions. The final block has at most unused slots,
which the request's token-to-slot map excludes from attention. Matched KV is registered in the prefix tree for reuse on subsequent turns.
4.3.2 Private and Shared KV in HBM
In private mode, each request owns chunk copies and recomputes selected tokens in place. In shared mode, requests read common blocks and copy any block still read by another request before updating it. Copy-on-write operates on entire KV blocks, even when only a few tokens within a block are recomputed.
Granularity and memory savings. Consider concurrent requests, each with cached tokens eligible for sharing; a fraction is common to all requests and the rest unique. We count resident material KV in token slots, excluding block rounding, reserved buffers, and non-material state. Let be the mean shared KV copied per request. Selecting aligned blocks gives . The two modes require
where shared mode stores one common base, request-specific material, and private replacements. Sharing saves material KV when . For token-level selection (), , and , the bound cannot guarantee savings. ProphetKV touches 61–91% of all KV blocks on our models; actual copying depends on which are shared. With , copied capacity is at most twice the selected token count, giving . For and , the worst-case yields , approaching as concurrency grows; fewer copies improve this ratio.
Sharing overhead. Shared HBM keys use chunk-local RoPE positions . For an object at offset , a query at position uses rotation ; per-object attention outputs are combined using their log-sum-exp normalizers. This position handling applies to every attention call, including decode. Copy-on-write adds another cost, with worst-case copy capacity reserved at admission before selection. Private mode instead rotates keys to request positions when loading them and updates its copies in place. It avoids these sharing costs but duplicates reused KV across requests. CacheWeave-Serve defaults to private mode; sharing can benefit larger batches with substantial common material when memory savings outweigh these costs.
4.3.3 GPU-Resident Selection and Recomputation
Selection. Both steps stay on the GPU, with no host round trip between selection and recomputation (Algorithm 1).
Algorithm 1 Two-step prefill in CacheWeave-Serve.
Require: objects needed for Step 1 loaded; buffers reserved at admission
1: Step 1: prefill over PIC KV; compute block scores (Equation 8–9)
2: selector blocks by
3: blocks touched by
4: if shared mode then
5: copy blocks in still read by other requests; remap this request to the private copies
6: end if
7: Step 2: recompute tokens covered by and prefill over the updated cache view, layer by layer, at their original positions
8: return output of the last token of
Each chunk's selector keys across full-attention layers are packed into one host buffer for a single transfer. On Qwen3, transfer overlaps question prefill, and reader projections are batched after prefill; on Gemma4, projections are batched within each full-attention layer. A fused kernel applies ReLU, head gating, and the reduction in Equation 8.
Recomputation. Selected blocks form short query segments over cached prefixes. On Qwen3, contiguous runs use variable-length FlashAttention-3 at their original request positions. Gemma4 uses FlashAttention-3 for sliding-window attention (SWA) over staged windows and the question's SWA KV (Section 4.3.4), and FlashAttention-2 for full-attention layers.
4.3.4 Cache Management for Hybrid Attention
For hybrid models such as Gemma4, CacheWeave-Serve keeps cached full-attention KV in HBM and stages SWA KV on demand. Before selection, it loads only the SWA window preceding ; question states are computed during prefill. Interior recomputation may require older windows, so all chunk SWA KV is retained in L2. After selection, the required windows are staged layer by layer, overlapping transfers with recomputation. Full-attention KV can be shared across requests, whereas staged SWA KV remains private. This limits HBM residency while preserving the complete SWA cache in L2 (Section 6).
5 EVALUATION
We evaluate the accuracy of CacheWeave and the efficiency of CacheWeave-Serve across datasets, model architectures and request patterns. Our key findings are:
- Higher quality (Section 5.2). At a 5% budget, CacheWeave outperforms CacheBlend and ProphetKV
on all 12 model-task pairs, by 7.2 and 3.5 points on average, with at most 8.3% relative loss to full prefill. It also leads ProphetKV on all 12 pairs at .
-
Lower TTFT (Section 5.3). At 24K context, CacheWeave-Serve cuts single-request TTFT on Qwen3-32B by over full prefill and over ProphetKV, and by on the hybrid Gemma4-12B.
-
Higher throughput (Section 5.3). CacheWeave-Serve raises peak SLO goodput over the best baseline by up to under low sharing and under high sharing.
5.1 Experimental Setup
Models. We evaluate three models from two families: Qwen3-4B and 32B (Yang et al., 2025a), with full attention only, and Gemma4-12B (Gemma Team et al., 2026), a hybrid model with 8 full-attention layers and 40 SWA layers with a 1,024-token window. Each model is PIC-trained with its own selector (Section 4.2).
Workloads and metrics. Following prior work, we use four tasks in two categories. Multi-hop QA (DocQA): HotpotQA, MuSiQue and 2WikiMultihopQA (Yang et al., 2018; Trivedi et al., 2022; Ho et al., 2020) from LongBench (Bai et al., 2024) require reasoning across passages. Each passage forms one chunk, and a prompt holds 2 to 20 passages of evidence and distractors, up to 18K tokens. Retrieval: RULER multi-value (MV) (Hsieh et al., 2024) asks for all values of a key hidden in 2 to 12 chunks, up to 24K tokens; on the other RULER tasks trained PIC is already lossless. An LLM (DeepSeek-V4.1-Flash) judges QA accuracy, and F1 gives the same ranking; MV uses RULER's scorer. We report the mean of three samples.
Baselines. For accuracy, we compare with CacheBlend (Yao et al., 2025) and ProphetKV (Wang et al., 2026) on the same PIC-trained models and budgets, with full prefill on the base model (lossless) and trained PIC without recomputation as references. We omit EPIC (Hu et al., 2025), whose accuracy is close to or below CacheBlend's. On Gemma4-12B, we adapt ProphetKV to score with the full-attention layers only, due to the window limit of SWA; for it ranks blocks by their mean token score. For efficiency, we build CacheWeave-Serve on SGLang (Zheng et al., 2024) and compare with full prefill and prefix caching in the same engine, with ProphetKV ported into CacheWeave-Serve, and with CacheBlend's own implementation on LMCache (Liu et al., 2025).
Platform. We train and evaluate on 8 NVIDIA H200 GPUs with two 48-core Intel Xeon Platinum 8558 CPUs (192 threads) and 2TB DRAM. Unless noted, CacheWeave-Serve uses KV blocks of tokens.

Figure 8. Accuracy on the PIC-trained models against the recomputation budget, with token-level selection (). Every method starts from trained PIC at 0%. At 5%, CacheWeave loses at most 8.3% relative to lossless, against 44.5% for CacheBlend and 17.5% for ProphetKV, and it never falls below trained PIC.
5.2 Accuracy

Figure 9. Accuracy against selector block size at a 5% budget. DocQA averages HotpotQA, MuSiQue and 2WikiMultihopQA equally; CacheBlend omitted for small gains over trained PIC.
Figure 8 compares the methods at 5–15% budgets with token-level selection (), as in prior work. CacheWeave has the best four-task average on every model at every budget. At 5%, it beats both baselines on all 12 model-task pairs, by 7.2 points over CacheBlend and 3.5 over ProphetKV on average. Its worst relative loss to lossless is 8.3%, 4.4% and 3.3% at 5%, 10% and 15%, against 44.5%, 46.2% and 42.2% for CacheBlend and 17.5%, 14.2% and 7.7% for ProphetKV, and from 10% on it matches lossless on average. On 6 pairs, CacheWeave at 5% already beats both baselines at 15%. Unlike them, it never falls below trained PIC: CacheBlend does on 8 pairs, and ProphetKV, whose gains come primarily from retrieval, does on every model's QA average.

Figure 10. Single-request TTFT speedup over SGLang full prefill. We use CacheBlend in LMCache and adapt it to support Gemma4-12B. CW/PKV: CacheWeave/ProphetKV.
Figure 9 fixes the budget at 5% and varies the selector block size , with one selector trained per ; coarser blocks re-compute fewer distinct regions at lower latency and memory cost. In every model's four-task average, CacheWeave leads ProphetKV at every block size, by 6.0, 3.4 and 1.7 points at on Qwen3-4B, Qwen3-32B and Gemma4-12B. Its best setting also beats ProphetKV's best on every model, by up to 2.5 points on DocQA and 9.0 on RULER MV.
5.3 Serving Performance
Single request. Figure 10 measures TTFT one request at a time on one GPU over 30 MuSiQue-derived prompts

Figure 11. P90 TTFT. Under a 5 s P90, CacheWeave-Serve sustains 2.5–8× higher rates than the baselines. Shared mode trails private under low sharing but is up to 3.5× faster under high sharing.
of around 1K-token chunks, varying context length, budget and from a default of 16K, 5% and . We compare with CacheBlend on LMCache and with our optimized port of ProphetKV; it and CacheWeave run in private and shared mode (Section 4.3.2). Reuse pays off more at longer contexts: at 24K, CacheWeave is 7.7–16.1× faster than full prefill and 1.5–3.0× faster than CacheBlend in private mode, and 6.2–12.7× and 1.4–2.2× in shared mode, which adds sharing overheads (Section 4.3.2); Gemma4-12B reaches 11.8× over full prefill. Recomputing less makes CacheWeave much faster: a 5% budget instead of 15% cuts TTFT in private mode by 1.4×, 2.1× and 1.6× on Qwen3-4B, Qwen3-32B and Gemma4-12B, as 5% of 16K is already about 830 tokens, versus a 22–51-token question. CacheWeave can exploit this, since at a 5% budget its four-task average already matches ProphetKV's at 15% on every model (Figure 8). CacheWeave stays accurate with coarse blocks, losing at most 1.1 points from to (Figure 9), which is key to efficiency: at , selections touch 8–10× more KV blocks, fragmenting attention and raising TTFT by up to 1.8× in private and 2.7× in shared mode.
Under load. We send MuSiQue-derived requests with Poisson arrivals, each shaped like the default of Figure 10. Under low sharing, every chunk is unique; under high sharing, each group of 64 consecutive requests shares 62.5% of its material chunks. All chunks have their PIC caches prepared in the L2 store before arrivals start. Full prefill and prefix caching saturate first (Figure 11), since shared chunks appear at different positions and leave prefix caching little to reuse. We also calculate SLO goodput, the rate of requests meeting both TTFT 5 s and TPOT 150 ms. CacheWeave-Serve raises peak goodput over the better baseline by up to 7.8× under low and 7.6× under high sharing, both on Qwen3-32B.

Figure 12. TTFT breakdown at Figure 10's default setting. P/S: private/shared; Other: cache setup, CoW and serving overhead.
5.4 Ablation
TTFT breakdown. Figure 12 splits TTFT into Step 1, the question forward that selects tokens to recompute, and Step 2, the joint forward of selected tokens and the question (Algorithm 1). (1) Selection. CacheWeave's lead over ProphetKV comes from Step 1, which is 2.1–2.9× faster on Qwen3: it scores compact, precomputed block keys instead of question-to-token attention. The gap narrows on Gemma4, where both score only the eight full-attention layers. (2) Recomputation. Step 2 costs both methods about the same and dominates on Qwen3-32B and Gemma4-12B: even 5% (832 tokens) is costly on the larger Qwen3-32B, and Gemma4 also stages SWA windows. (3) Sharing. Shared mode costs more on Gemma4, due to its 512-dim full-attention heads and SWA handling in recomputation.
6 DISCUSSION
SWA storage overhead. Keeping all SWA KV in L2 adds storage overhead and limits host cache capacity: for 16K-token chunks on Gemma4-12B, it takes about 12× the space of a prefix cache that keeps only the trailing window. To reduce this overhead, bounded replay (DeepSeek-AI et al., 2026) could reconstruct the preceding window for each selected run, with PIC training adapted to the approximation. Alternatively, cross-layer sharing (Brandon et al., 2024) could derive SWA KV from full-attention KV at the cost of retraining. We leave these directions to future work.
7 CONCLUSION
PIC training and rule-based recomputation, alone or combined, leave model- and task-dependent gaps to full-prefill accuracy. CacheWeave adapts the model to PIC and trains a model-native selector on its oracles, choosing KV-aligned blocks without attention scores. CacheWeave-Serve runs selection and recomputation on the GPU over private or shared caches. At a 5% budget, CacheWeave beats CacheBlend and ProphetKV by 7.2 and 3.5 points on average; CacheWeave-Serve cuts TTFT by up to 16.1× over full prefill and raises goodput by up to 7.8×.
REFERENCES
Agarwal, S., Sundaresan, S., Mitra, S., Mahapatra, D., Gupta, A., Sharma, R., Kapu, N. J., Yu, T., and Saini, S. Cache-Craft: Managing chunk-caches for efficient retrieval-augmented generation. arXiv preprint arXiv:2502.15734v1, 2025. URL https://arxiv.org/abs/2502.15734v1.
Bai, Y., Lv, X., Zhang, J., Lyu, H., Tang, J., Huang, Z., Du, Z., Liu, X., Zeng, A., Hou, L., Dong, Y., Tang, J., and Li, J. LongBench: A bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3119–3137. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.172.
Brandon, W., Mishra, M., Nrusimha, A., Panda, R., and Ragan-Kelley, J. Reducing transformer key-value cache size with cross-layer attention. arXiv preprint arXiv:2405.12981, 2024. URL https://arxiv.org/abs/2405.12981.
Chen, C., Zhang, G. L., Yin, X., Zhuo, C., Li, B., and Schlichtmann, U. KV Packet: Recomputation-free context-independent KV caching for LLMs. arXiv preprint arXiv:2604.13226v2, 2026a. URL https://arxiv.org/abs/2604.13226v2.
Chen, X., Dong, J., Ke, C., Leong, C. T., Sun, H., Chen, K., An, S., Qiao, R., Sun, X., Li, W., and Shen, X. ATTUNER: Recomputation-free agentic context KV reuse. arXiv preprint arXiv:2609.36722v1, 2026b. URL https://arxiv.org/abs/2609.36722v1.
Dao, T., Fu, D. Y., Ermon, S., Rudra, A., and Ré, C. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. arXiv preprint arXiv:2205.14135v2, 2022. URL https://arxiv.org/abs/2205.14135v2.
DeepSeek-AI, Xu, A., Li, B., Lin, B., Xue, B., Xian, B., Xu, B., Wu, B., Zhang, B., Deng, B., Yu, C. C., Jin, C., Lin, C., Dong, C., Wang, C., Feng, C., Lu, C., Zhao, C., Deng, C., Zhang, C., Xu, C., Zhao, C., Shao, C., Wang, C., Zhang, C., Dai, D., Yang, D., Chen, D., Huang, D., Wu, D., Li, D., Li, E., Fu, E., Zhou, F., Zhou, F., Lin, F., Yuan, F., Xia, F., Dai, F., Hao, G., Li, G., Chen, G., Cao, G., Fan, G., Meng, G., Li, G., Zhang, H., Ma, H., Shen, H., Li, H., Yu, H., Zhang, H., Deng, H., Xu, H., Xu, H., Zhong, H., Guo, H., Jiang, H., Li, H., Qin, H., Wen, H., Liang, H., Huang, H., Liu, H., Zhang, H., Luo, H., Yang, H., Xu, H., Yuan, H., Huang, H., Luo, H., Cai, H., Chen, H., Ji, H., Zhang, H., Wang, H., Wu, H., Ding, H., Tang, H., Wang, H., Cao, H., Gao, H., Qu, H., Zeng, H., Yang, J., Jin, J. H., Zhang, J. H., Zou, J. X., Yu, J., Zhou, J.,
Chen, J., Huang, J., Zhao, J., Tang, J., Zhou, J., Tong, J., Li, J., Zhu, J., Wang, J., Ye, J., Li, J., Xu, J., Ding, J., Lu, J., Hu, J., Yan, J., Zhai, J., Chen, J., Hu, J., Zhou, J., Xu, J., Xiang, J., Yun, J., Yuan, J., Cheng, J., Zhu, J., Wang, J., Chen, J., Hu, J., Yu, J., Guo, J., Pei, J., Sun, J., Jiang, J., Qiu, J., Zhou, J., Liu, J., Li, J., Li, J., Song, J., Guo, J., Dong, K., Chen, K., Gao, K., Guan, K., Yuan, K., Hong, K., Xu, K., Zhao, K., Ji, K., Zhang, K., Zhou, K., Yu, K., Zhang, L., Wang, L., Zhang, L., Wang, L., Gao, L., Zhao, L., Xu, L., Guo, L., Luo, L., Fu, L., Deng, L., Wang, L., Zhang, L., Chen, L., Chen, L., Huang, L., Ma, L., Wang, L., Di, M. S., Mei, M., Ye, M., Cui, M., Zhang, M., Zhang, M., Tang, M., Zhang, M., Wei, M., Chen, M., Liu, M., Zhou, M., Xu, M., Yang, M., Wang, M., Chen, M., Shentu, N., Wang, N., Ning, N., Huang, P., Cong, P., Wang, P., Xin, P., Ren, P., Yan, P., Zhang, P., Kang, Q., Tang, Q., Wang, Q., Li, Q., Zhu, Q., Li, Q., Chen, Q., Du, Q., Guo, Q., Xu, R., Ding, R., Hu, R., Tian, R., Yu, R., Zhu, R., Xu, R., Yang, R., Xia, R., Lu, R., Geng, R., Hong, R., Ge, R., Zhang, R., Sun, R., Pan, R., Wang, R., Chen, R., Xu, R., Tian, R., Shen, R., Zhang, R., X., R., Liu, S. H., Lu, S., Zhou, S., Chen, S., Cai, S., Nie, S., Chen, S., Hu, S., Lin, S., Ran, S., Liu, S., Jia, S., Bai, S., Feng, S., Xu, S., Liu, S., Hu, S., Ma, S., Wang, S., Feng, S., Gong, S., Lin, S., Yu, S., Zhou, S., Yang, S., Wang, S., Guo, S., Pan, S., Yu, S., Cao, S., Lin, S., Chen, S., Chen, S., Zhou, S., Ni, T., Yun, T., Jin, T., Pei, T., Ye, T., Lin, T., Ji, T., Cui, T., Yue, T., Yu, T., Xiong, T., Zeng, W., Liu, W., Zhang, W., Xu, W., Zeng, W., Zhao, W., Liu, W., Liang, W., Pang, W., Luo, W., Yao, W., Gao, W., Shao, W., Yang, W., Zhang, W., Wang, W., Huang, W., Yan, W., Zhang, W., Gao, X., He, X., Li, X., Li, X., Wang, X., Zhang, X., Wei, X., Bi, X., Liu, X., Wang, X., Qu, X., Chen, X., Zhang, X., Nie, X., Zou, X., Li, X., Guo, X., Chu, X., Cheng, X., Liu, X., Xie, X., Xu, X., Liu, X., Liu, X., Yu, X., Li, X., Yao, X., Chen, X., Jiang, X., Yang, X., Yang, X., Chen, X., Wang, X., Zhong, X., Su, X., Liu, X., Lin, X., Fan, X., Zhao, X., Fu, X., Yan, Y. C., Jiang, Y. H., Wu, Y. T., M., Y. W., Wang, Y. Z., Gao, Y., Yang, Y., Zhang, Y., Ma, Y., Huang, Y., Li, Y., Li, Y., Meng, Y., Zhao, Y., Sun, Y., Wang, Y., Ye, Y., Yin, Y., Wu, Y., Qian, Y., Tao, Y., Yu, Y., Zhang, Y., Jiang, Y., Wang, Y., Ding, Y., Shi, Y., Peng, Y., Zhai, Y., Wu, Y., Xiong, Y., Wang, Y., He, Y., Zhou, Y., Luo, Y., Zhong, Y., Wang, Y., Wang, Y., Zhang, Y., Chen, Y., Tan, Y., Wei, Y., Ma, Y., Yang, Y., Liu, Y., Cai, Y., Wei, Y., Wang, Y., Yang, Y., Zhuo, Y., Guo, Y., Wu, Y., Wu, Y., Zhang, Y., Bian, Y., Cheng, Y., Ou, Y., Sun, Y., Xu, Y., Sun, Y., Li, Y., Liu, Y., Yao, Y., Han, Y., Wang, Y., Wu, Y., Meng, Y., Zou, Y., Li, Y., Wang, Y., Xiao, Y., Xiong, Y., Chen, Y., Cao, Y., Wang, Y., Chen, Y., Zhang, Y., Lin, Y., Xiao, Y., Gu, Y., Chen, Y., Huang, Y., Luo, Y., You, Y., Chen, Y., Xiang, Y., Liu, Y., Zhou, Y., Zhou, Y., Guo, Y., Huang, Y., Bai, Y., Z., Z. Y., Ni, Z., Wang, Z., Zhao, Z., Ren, Z.,
Zhao, Z., Sha, Z., Wang, Z., Zhang, Z., Du, Z., Fu, Z., Xu, Z., Xie, Z., Liu, Z., Zhang, Z., Dong, Z., Hao, Z., Wang, Z., Gou, Z., Ma, Z., Li, Z., Shao, Z., Huang, Z., Li, Z., Lu, Z., Huang, Z., Chen, Z., Chen, Z., Pan, Z., Wu, Z., Ren, Z., He, Z., Li, Z., Zhang, Z., Xu, Z., Wang, Z., Gu, Z., Zhu, Z., Zhang, Z., Li, Z., Hou, Z., Lyu, Z., Wang, Z., Xie, Z., Zhang, Z., Gao, Z., Pan, Z., Li, Z., Yao, Z., Chen, Z., Wu, Z., Ling, C., Hou, C., Chen, C., Li, D., Qi, D., Ji, D., Wei, F., Xia, F., Xie, F., Tan, F., Guo, H., Zhai, H., Zhou, H., Tan, H., Li, H., Luo, J., Song, J., Cai, J., Liang, J., Zhou, J., Gao, J., Shao, J., Chen, J., Yang, J., Chen, J., Zhang, J., Zhou, J., Wang, J., Liu, J., Sun, J., Ling, J., Zheng, J., Yang, K., Xu, K., Su, L., Xia, L., Ding, L., Zhuo, L., Ma, L., Zhu, L., Cai, L., Yao, L., Zhang, M. K., Li, M., Lin, M., Wang, M., Zhang, M., Li, M., Wang, M., Yin, M., Han, M., Cao, N., Wang, N., Ma, N., Wang, P., Lin, P., Sun, P., Zhang, P., Ying, Q., Xiang, Q., Wang, Q., Mao, Q., Jiang, Q., Jin, R., Chen, R., Tao, S., Sun, S., Wu, S., Zou, S., Lei, S., Zhang, T., Sun, T., Yin, T., Xiao, W. L., An, W., Li, W., Wang, W., Lin, W., Hou, W., Lin, X., Meng, X., Huang, X., Peng, X., Li, X., Zhang, X., Sun, X., Wang, X., Ye, X., Zhang, X., Zhang, X., Cao, X., Chen, X., Zhou, Y., Xu, Y., Xia, Y., Xu, Y., Shao, Y., Zhang, Y., Ma, Y., Tang, Y., Lou, Y., Chen, Y., Piao, Y., Chen, Y., Xiong, Y., Xuan, Y., Yang, Y., Xu, Y., Zha, Y., Ma, Y., Lin, Y., Yan, Y., Xie, Y., Sheng, Y., Zhu, Y., Zhang, Z., Ju, Z., Lin, Z., Gao, Z., Sun, Z., Yan, Z., Wu, Z., Wang, Z., Qu, Z., Yan, Z., and Wan, Z. DeepSeek-V4.1-Flash: Pushing the limits of KV cache compression. arXiv preprint arXiv:2609.19969, 2026. URL https://arxiv.org/abs/2609.19969.
Fang, Y., Wei, S., Hu, H., and Shen, X. ReCache: Efficient KV cache reuse and compression for tool-augmented LLM agents. arXiv preprint arXiv:2608.19662v1, 2026. URL https://arxiv.org/abs/2608.19662v1.
Gemma Team, Abd, S. E., Aggarwal, V., Algayres, R., Andreev, A., Bachem, O., Ballantyne, I., Brick, C., Cärbune, V., Casbon, M., Chaturvedi, M., Chawla, A., Cotruta, V., Coucke, A., Culliton, P., Dadashi, R., Dixon, L., Elhawaty, M., Evci, U., Farabet, C., Ferret, J., Galgani, F., Girgin, S., Grill, J.-B., Grootendorst, M., Guo, J., Hardin, C., He, Y., Hernandez, S. M., Homburger, O., Hussenot, L., Ji, J., Joulin, A., Kamath, A., Kassraie, P., Lacombe, O., Lahoti, P., Liu, G., Martins, G., Martins, L., Matejovicova, T., Merhej, R., Momchev, N., Mondal, S., Mullins, R., Panyam, S. R., Pathak, S., Perrin, S., Pinto, A. S., Pot, E., Pouget, A., Ramé, A., Ramos, S., Reid, D., Rim, D., Rivière, M., Roth, K., Rouillard, L., Sanseviero, O., Sessa, P. G., Settle, S., Sinopalnikov, D., Smoot, S., Stanczyk, P., Steiner, A., Stewart, L., Tolstikhin, I., Tschannen, M., Tsitsulin, A., Vieillard, N., Wu, R., Xu, P., Yang, H., Yvinec, E., Zhang, B., Zhang,
L., Zou, J., Aagnes, N., Abdelhamed, A., Adamek, J., Agrawal, S., Agrawal, S., Alabdulmohsin, I., Alayrac, J. B., Alon, U., Amarnath, C., Anand, A., Anastasiou, C., Ariefar, S., Aubet, F.-X., Axiotis, K., Barbero, F., Barral, J., Bendebury, A., Bergmann, U., Bileschi, S., Black, K., Blondel, M., Borgeaud, S., Bražinskas, A., Burnell, R., Busa-Fekete, R., Cai, M., Calandriello, D., Cameron, G., Caucheteux, C., Chaabouni, R., Chadha, G., Chan, J., Chen, B. J., Chen, J., Chen, L., Chen, X., Cheng, D., hsiang Chien, T., Chinaev, N., Chou, Y., Chu, Z., Coleman, B., Consul, P., Conway-Rahman, S., Crowell, S., Cutler, D., Dani, V., Daruki, S., Das, A., Deutsch, D., Dikkala, N., Ding, L., Ding, Q., Dodhia, S., Donhauser, K., Doshi, T., Dragan, A., Druinsky, A., Dua, S., Egyed, Z., Eisenbud, D., Eppens, D., Fan, C., Fatemi, B., Fathul-lah, Y., Feinberg, V., Ferev, M., Flennerhag, S., Fujimoto, T., Oliveira, J. G., Galatzer-Levy, I., Gante, J., Geisler, S., Ghosal, S., Girgis, A. M., von Glehn, T., Go, A., Gokhale, A., Grills, A., Gu, Y., Gupta, M., Gupta, P., Guruganesh, G., Hadsell, R., Harkous, H., Harlalka, J., Hassabis, D., Hauth, A., Heyward, J., Hosseini, A., Hsia, C.-Y., Hsu, I.-H., Huang, X., Huang, Y., Hui, K., Hutter, A., I, T., Il-iopoulos, F., Jain, A., Jawahar, G., Ji, Z., Jin, Q., Johnson, M., Joshi, K., Kandoor, A., Kang, W.-C., Kavukcuoglu, K., Kazemi, M., Kenealy, K., Khalifa, A., Kirk, P., Korotkov, I., Kothawade, S., Kovalev, V., Kovelamudi, N., Kraft, A., Kumar, R., Kumar, V., Kuppam, H., Lannin, J., Lee, C.-Y., Lee, S., Lepikhin, D., Levkovitch, A., Li, D., Li, Q., Liévin, V., Lin, E., Lin, Z., Liu, C., Liu, T., Liu, T., Liu, X., Lobov, I., Lunayach, M., Ma, M., Madan, G., Maksimal, A., Malmi, E., Matuszak, M., McDuff, D., Menghani, G., Mikula, M., Mirylenka, D., Misiunas, K., Misra, V., Mitran, A., Mohamed, K., Mukha, M., Noland, E., O'Donnell, J., O'Donoghue, B., Olszewska, K., Orlando, B., Pan, W., Panigrahy, R., Parekh, U., Perez-Nieves, N., Park, C., Paskie, E., Peng, L., Petrini, B., Petrov, S., Pfeiffer, J., Piot, B., Plomecka, M., Poder, S., Ponce, O., Pramanik, A., Racz, D., Rajan, A., Ramanovich, M., Rao, A., Ritter, M., Rodrigues, V., Rosen, E., Rybiński, M., Sachdeva, N., Sander, M. E., Sathyanarayana, R., Savla, S., Schmidgall, S., Schuster, T., Scrivener, G., Seguin, B., Sellergren, A., Severyn, A., Shafran, I., Shah, D., Shahriari, B., Shangguan, Y., Shenoy, A., Shenoy, P., Shivanna, R., Sho, P., Spangher, L., Stokowiec, W., Strother, T., Su, Y., Sun, Y., Sundararajan, M., Tacchetti, A., Taege, M. H., Tafti, P., Tarbouriech, J., Tekur, C., Thakoor, S., Thapa, R., Traverse, M., Treven, L., Tu, T., Tung, C. T., Çağlar Ünlü, Veličković, P., Venkat, M. P., Venkatesh, S. G., Venkiteswaran, V., Visin, F., Vititskyi, A., Vodrahalli, K., Wang, W., Wang, X., Warkentin, T., Wassenberg, J., Wieting, J., Wu, C., Xiao, L., Xu, H., Xu, Y., Xue, F., Yadav, A., Yan, J., Yang, A., Yang, L., Yang, M.-H., Ying, Z., Yoo, J. H., Zadimoghaddam, M., Zafar, S., Zhang, F., Zhang, J., Zhang, J., Zhang, X.,
Zhao, C., Zhou, D., and Zou, C. Gemma 4 technical report. arXiv preprint arXiv:2607.02770, 2026. URL https://arxiv.org/abs/2607.02770.
Geng, Y., Gao, Y., Wu, W., Liu, G., and Liu, J. Relay-Caching: Accelerating LLM collaboration via decoding KV cache reuse. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 34524–34543. PMLR, 2026. URL https://proceedings.mlr.press/v306/geng26a.html.
Gim, I., Chen, G., Lee, S., Sarda, N., Khandelwal, A., and Zhong, L. Prompt Cache: Modular attention reuse for low-latency inference. In Proceedings of Machine Learning and Systems, 2024. URL https://arxiv.org/abs/2311.04934v2.
Ho, X., Nguyen, A.-K. D., Sugawara, S., and Aizawa, A. Constructing a multi-hop QA dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics (COLING), pp. 6609–6625. International Committee on Computational Linguistics, 2020. doi: 10.18653/v1/2020.coling-main.580.
Hsieh, C.-P., Sun, S., Kriman, S., Acharya, S., Rekesh, D., Jia, F., Zhang, Y., and Ginsburg, B. RULER: What's the real context size of your long-context language models? arXiv preprint arXiv:2404.06654v3, 2024. URL https://arxiv.org/abs/2404.06654v3.
Hu, J., Huang, W., Wang, W., Wang, H., Hu, T., Zhang, Q., Feng, H., Chen, X., Shan, Y., and Xie, T. EPIC: Efficient position-independent caching for serving large language models. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pp. 24391–24402. PMLR, 2025. URL https://proceedings.mlr.press/v267/hu25j.html.
Izacard, G. and Grave, E. Leveraging passage retrieval with generative models for open domain question answering. arXiv preprint arXiv:2007.01282v2, 2020. URL https://arxiv.org/abs/2007.01282v2.
Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., and Stoica, I. Efficient memory management for large language model serving with PagedAttention. arXiv preprint arXiv:2309.06180v1, 2023. URL https://arxiv.org/abs/2309.06180v1.
Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel, T., Riedel, S., and Kiela, D. Retrieval-augmented generation for knowledge-intensive NLP tasks. arXiv preprint
arXiv:2005.11401v4, 2020. URL https://arxiv.org/abs/2005.11401v4.
Li, S., Zhang, Z., Wang, Y., Zhu, L., Ma, D., Deng, C., Deng, Y., and Lam, W. Towards generalization of block attention via automatic segmentation and block distillation. arXiv preprint arXiv:2605.15913v1, 2026. URL https://arxiv.org/abs/2605.15913v1.
Liu, Y., Cheng, Y., Yao, J., An, Y., Chen, X., Feng, S., Huang, Y., Shen, S., Zhang, R., Du, K., and Jiang, J. LMCache: An efficient KV cache layer for enterprise-scale LLM inference. arXiv preprint arXiv:2510.09665v2, 2025. URL https://arxiv.org/abs/2510.09665v2.
Liu, Y., Luo, Z., Jin, H., Wang, Z., He, R., Wang, B., Chen, G., Liu, Y., Xie, T., and Hu, J. RedKnot: Efficient long-context LLM serving with head-aware KV reuse and Seg-PagedAttention. arXiv preprint arXiv:2606.06256, 2026. URL https://arxiv.org/abs/2606.06256.
Lu, S., Wang, H., Rong, Y., Chen, Z., and Tang, Y. TurboRAG: Accelerating retrieval-augmented generation with precomputed KV caches for chunked text. arXiv preprint arXiv:2410.07590v1, 2024. URL https://arxiv.org/abs/2410.07590v1.
Ma, D., Wang, Y., and Tian, L. Block-attention for efficient prefilling. In The Thirteenth International Conference on Learning Representations (ICLR), 2025. URL https://arxiv.org/abs/2409.15355.
Qi, R., Liu, Y., Wu, X., Jin, Y., Chen, J., Qin, J., Chen, Y., and Shao, J. RelaxKV: Recomputation guided by the query with sparse context attention for efficient KV cache reuse. arXiv preprint arXiv:2609.33503, 2026. URL https://arxiv.org/abs/2609.33503.
Qin, R., Li, Z., He, W., Zhang, M., Wu, Y., Zheng, W., and Xu, X. Mooncake: A KVCache-centric disaggregated architecture for LLM serving. arXiv preprint arXiv:2407.00079v4, 2024. URL https://arxiv.org/abs/2407.00079v4.
Teng, X., Zhang, C., Zheng, S., Zhuo, D., Zhou, T., and Wan, S. InfoFlow KV: Information-flow-aware KV recomputation for long context. In Proceedings of the 43rd International Conference on Machine Learning (ICML), 2026. URL https://arxiv.org/abs/2603.05353.
Trivedi, H., Balasubramanian, N., Khot, T., and Sabharwal, A. MuSiQue: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554, 2022. doi: 10.1162/tacl_a.00475.
Wang, S., Chen, J., Pan, Y., Huang, H., Hao, Y., Zou, X., Xia, W., Zhang, W., Qiu, C., and Wang, P. ProphetKV: User-query-driven selective recomputation for efficient KV cache reuse in retrieval-augmented generation. arXiv preprint arXiv:2602.02579v3, 2026. URL https://arxiv.org/abs/2602.02579v3.
Wang, X., Li, B., Song, Y., Xu, F. F., Tang, X., Zhuge, M., Pan, J., Song, Y., Li, B., Singh, J., Tran, H. H., Li, F., Ma, R., Zheng, M., Qian, B., Shao, Y., Muennighoff, N., Zhang, Y., Hui, B., Lin, J., Brennan, R., Peng, H., Ji, H., and Neubig, G. OpenHands: An open platform for AI software developers as generalist agents. In International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=OJd3ayDDoF.
Wu, Q., Bansal, G., Zhang, J., Wu, Y., Li, B., Zhu, E., Jiang, L., Zhang, X., Zhang, S., Liu, J., Awadallah, A. H., White, R. W., Burger, D., and Wang, C. AutoGen: Enabling next-gen LLM applications via multi-agent conversations. In Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=BAakY1hNKS.
Xie, H., Xiao, P., Deng, Y., Dou, S., Yang, J., and Guo, J. SemPIC: Learning semantic position-independent KV caches. arXiv preprint arXiv:2607.28069v1, 2026. URL https://arxiv.org/abs/2607.28069v1.
Yan, J., Ni, W., Li, Z., Jin, J., Shen, Z., Li, H., Zhu, J., Cheng, P., Lin, X., Chen, L., and Ren, K. QCFuse: Query-aware cache fusion via compressed view for efficient RAG serving. arXiv preprint arXiv:2606.05875v1, 2026. URL https://arxiv.org/abs/2606.05875v1.
Yang, A., Li, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Gao, C., Huang, C., Lv, C., Zheng, C., Liu, D., Zhou, F., Huang, F., Hu, F., Ge, H., Wei, H., Lin, H., Tang, J., Yang, J., Tu, J., Zhang, J., Yang, J., Yang, J., Zhou, J., Zhou, J., Lin, J., Dang, K., Bao, K., Yang, K., Yu, L., Deng, L., Li, M., Xue, M., Li, M., Zhang, P., Wang, P., Zhu, Q., Men, R., Gao, R., Liu, S., Luo, S., Li, T., Tang, T., Yin, W., Ren, X., Wang, X., Zhang, X., Ren, X., Fan, Y., Su, Y., Zhang, Y., Zhang, Y., Wan, Y., Liu, Y., Wang, Z., Cui, Z., Zhang, Z., Zhou, Z., and Qiu, Z. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025a. URL https://arxiv.org/abs/2505.09388.
Yang, H., Zhang, R., Huang, M., Wang, W., Tang, Y., Li, Y., Liu, Y., and Zhang, D. KVShare: An LLM service system with efficient and effective multi-tenant KV cache reuse. arXiv preprint arXiv:2503.16525, 2025b. URL https://arxiv.org/abs/2503.16525.
Yang, J., Jimenez, C. E., Wettig, A., Lieret, K., Yao, S.,
Narasimhan, K., and Press, O. SWE-agent: Agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems, volume 37, pp. 50528–50652, 2024. doi:10.52202/079017-1601. URL https://arxiv.org/abs/2405.15793.
Yang, J., Hou, B., Wei, W., Bao, Y., and Chang, S. KVLink: Accelerating large language models via efficient KV cache reuse. arXiv preprint arXiv:2502.16002v4, 2025c. URL https://arxiv.org/abs/2502.16002v4.
Yang, Z., Qi, P., Zhang, S., Bengio, Y., Cohen, W., Salakhutdinov, R., and Manning, C. D. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 2369–2380. Association for Computational Linguistics, 2018. doi: 10.18653/v1/D18-1259.
Yao, J., Li, H., Liu, Y., Ray, S., Cheng, Y., Zhang, Q., Du, K., Lu, S., and Jiang, J. CacheBlend: Fast large language model serving for RAG with cached knowledge fusion. In Proceedings of the Twentieth European Conference on Computer Systems (EuroSys), 2025. doi: 10.1145/3689031.3696098. URL https://doi.org/10.1145/3689031.3696098.
Zhao, S., Hu, J., Zheng, J., and Chen, G. You need an encoder for native position-independent caching. arXiv preprint arXiv:2602.01519v1, 2026. URL https://arxiv.org/abs/2602.01519v1.
Zheng, L., Yin, L., Xie, Z., Sun, C., Huang, J., Yu, C. H., Cao, S., Kozyrakis, C., Stoica, I., Gonzalez, J. E., Barrett, C., and Sheng, Y. SGLang: Efficient execution of structured language model programs. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, 2024. URL https://arxiv.org/abs/2312.07104.