RAGBoost: Efficient Retrieval-Augmented Generation with Accuracy-Preserving Context Reuse
Yinsicheng Jiang, Yeqi Huang, Liang Cheng, Cheng Deng, Xuan Sun, Luo Mai
TL;DR
RAGBoost tackles the prefill latency of retrieval-augmented generation under long-context demands by enabling accuracy-preserving context reuse across multi-turn and multi-session workloads. It introduces a Context Index, Context Ordering, Context Deduplication, and lightweight contextual hints to maximize KV-cache reuse without sacrificing reasoning quality. The approach delivers 1.5–3× improvements in prefill throughput and up to 4.1% accuracy gains across diverse RAG datasets, with additional gains in agentic AI tasks; it remains compatible with standard retrievers and LLM engines and is open-sourced to spur broader context-engineering research. This work demonstrates that strategic organization and reuse of retrieved content can unlock efficient long-context RAG at scale, offering practical benefits for online services and offline data-synthesis pipelines alike.
Abstract
Retrieval-augmented generation (RAG) enhances large language models (LLMs) with retrieved context but often suffers from downgraded prefill performance as modern applications demand longer and more complex inputs. Existing caching techniques either preserve accuracy with low cache reuse or improve reuse at the cost of degraded reasoning quality. We present RAGBoost, an efficient RAG system that achieves high cache reuse without sacrificing accuracy through accuracy-preserving context reuse. RAGBoost detects overlapping retrieved items across concurrent sessions and multi-turn interactions, using efficient context indexing, ordering, and de-duplication to maximize reuse, while lightweight contextual hints maintain reasoning fidelity. It integrates seamlessly with existing LLM inference engines and improves their prefill performance by 1.5-3X over state-of-the-art methods, while preserving or even enhancing reasoning accuracy across diverse RAG and agentic AI workloads. Our code is released at: https://github.com/Edinburgh-AgenticAI/RAGBoost.
