CacheRepair: Learning to Repair Cross-Chunk Context in RAG for KV Cache Fusion
On the map: Retrieval-augmented generation → Generation and context integration
also in 1 more
Abstract (arXiv)
Multi-document retrieval-augmented generation (RAG) requires a language model to process multiple retrieved text chunks before answering a question. Precomputing each chunk's KV cache independently and concatenating the caches when the chunks are retrieved can accelerate this step. However, the assembled cache lacks cross-chunk attention information, reducing answer quality. Selective recomputation methods recover the missing cross-chunk context by rerunning the target LLM on selected tokens, incurring substantial online computation. We introduce CacheRepair, a lightweight network that learns the difference between independently computed KV caches and those produced by processing the chunks together. The network combines compressed KV features with token embeddings and uses attention that is bidirectional within each chunk and flows from earlier to later chunks. Each repair block receives the compressed cache features, and the predicted residual is added to every document token's cache. Each repair network is trained for a specific frozen target LLM on a generic retrieval corpus and reused across downstream datasets. Our analysis shows that repair reduces KV errors both near chunk boundaries and throughout chunk interiors. Evaluation across three target LLMs and four downstream datasets places CacheRepair on the measured answer-quality-latency Pareto frontier in eleven of twelve model-dataset combinations. Reported time to first token (TTFT) includes online cache transfer and repair. Across all twelve combinations, the largest repairers achieve 1.69-4.61× speedups in median TTFT over full prefill and improve mean F1 by 2.1-26.1 percentage points over direct cache reuse.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 21 of its 23 references that are in the map. First posted on arXiv 28 Sep 2026.
Builds on
21 of 23 references.
Closest ancestors · 5
Same direction, newest first
- 2025CacheClip: Accelerating RAG with Effective KV Cache Reuse11 Oct
- 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generation5 Feb
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct
- 2024Block-Attention for Efficient Prefilling14 Sep
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
Other references · 16
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2024MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queriescited by 257
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 223
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
- 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 66
4 more
- 2025Chain-of-Retrieval Augmented Generationcited by 49
- 2024EPIC: Efficient Position-Independent Caching for Serving Large Language Modelscited by 47
- 2025APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encodingcited by 29
- 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMscited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025A3: Attention-Aware Accurate KV Cache Fusion for Fast Large Language Model Serving
- 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generation
- 2026ProphetKV: User-Query-Driven Selective Recomputation for Efficient KV Cache Reuse in Retrieval-Augmented Generation
- 2026RelaxKV: Recomputation Guided by the Query with Sparse Context Attention for Efficient KV Cache Reuse
- 2026Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse
- 2026KV-Repurpose: A Testbed for Evaluating Non-Prefix KV-Cache Reuse
- 2026Fine-Tuning a KV Cache Concatenation-Aware Model or Recomputing KV Caches? Why Not Both?
- 2026An experimental study of KV cache reuse strategies in chunk-level caching systems