arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26176cs.DBcs.CL
收藏

CacheRAG:面向知识图谱问答中检索增强生成的语义缓存系统

CacheRAG: A Semantic Caching System for Retrieval-Augmented Generation in Knowledge Graph Question Answering

HKUST Hong Kong China(香港理工大学(中国));HKUST(GZ) / HKUST Guangzhou / Hong Kong China (2018)(香港理工大学(广州)/ 香港理工大学(广州)/ 香港中国(2018))

Yushi Sun, Lei Chen

AI总结:

针对LLM驱动的KGQA系统作为无状态规划器导致模式幻觉和检索覆盖有限的问题,提出CacheRAG,一种基于缓存的架构,通过模式无关接口、多样性优化缓存检索和有界启发式扩展,将无状态规划器转变为持续学习器,显著提升准确性和真实性。

摘要:

大型语言模型(LLMs)与检索增强生成(RAG)的集成显著推进了知识图谱问答(KGQA)。然而,现有的LLM驱动的KGQA系统作为无状态规划器,孤立地生成检索计划而不利用历史查询模式:类似于一个没有计划缓存的数据库系统,从头优化每个查询。这一基本设计缺陷导致模式幻觉和有限的检索覆盖。我们提出CacheRAG,一种面向基于LLM的KGQA的系统化缓存增强架构,将无状态规划器转变为持续学习器。与传统的数据库计划缓存(优化频率)不同,CacheRAG引入了三种针对LLM上下文定制的新设计原则:(1)模式无关用户界面:通过中间语义表示(ISR)的两阶段语义解析框架使非专家用户能够纯粹以自然语言交互,同时后端适配器将LLM与本地模式上下文结合,安全地编译可执行的物理查询。(2)多样性优化的缓存检索:两层层次索引(领域→方面)结合最大边际相关性(MMR)最大化缓存示例的结构多样性,有效缓解推理同质性。(3)有界启发式扩展:具有严格复杂度保证的确定性深度和广度子图操作符显著提升检索召回率,而无需冒无界API执行的风险。在多个基准上的广泛实验表明,CacheRAG显著优于最先进的基线(例如,在CRAG数据集上准确率提升13.2%,真实性提升17.5%)。

英文摘要:

The integration of Large Language Models (LLMs) with Retrieval-Augmented Generation (RAG) has significantly advanced Knowledge Graph Question Answering (KGQA). However, existing LLM-driven KGQA systems act as stateless planners, generating retrieval plans in isolation without exploiting historical query patterns: analogous to a database system that optimizes every query from scratch without a plan cache. This fundamental design flaw leads to schema hallucinations and limited retrieval coverage. We propose CacheRAG, a systematic cache-augmented architecture for LLM-based KGQA that transforms stateless planners into continual learners. Unlike traditional database plan caching (which optimizes for frequency), CacheRAG introduces three novel design principles tailored for LLM contexts: (1) Schema-agnostic user interface: A two-stage semantic parsing framework via Intermediate Semantic Representation (ISR) enables non-expert users to interact purely in natural language, while a Backend Adapter grounds the LLM with local schema context to compile executable physical queries safely. (2) Diversity-optimized cache retrieval: A two-layer hierarchical index (Domain $\rightarrow$ Aspect) coupled with Maximal Marginal Relevance (MMR) maximizes structural variety in cached examples, effectively mitigating reasoning homogeneity. (3) Bounded heuristic expansion: Deterministic depth and breadth subgraph operators with strict complexity guarantees significantly enhance retrieval recall without risking unbounded API execution. Extensive experiments on multiple benchmarks demonstrate that CacheRAG significantly outperforms state-of-the-art baselines (e.g., +13.2% accuracy and +17.5% truthfulness on the CRAG dataset).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑