对检索增强生成进行最小推理图剪枝以提高效率
AutoPrunedRetriever: Persistent Reasoning Graphs for Efficient and Extensible Retrieval-Augmented Generation
AI总结:
AutoPrunedRetriever通过最小推理图剪枝提升检索增强生成效率,实现更高效的知识密集型任务处理。
摘要:
检索增强生成(RAG)现在是知识密集型大语言模型任务的标准方法,但大多数系统仍然将每个查询视为新鲜的,反复检索长段落并从头开始重新推理,导致令牌数量、延迟和成本增加。我们提出了AutoPrunedRetriever,一种图式RAG系统,它为先前的问题构建了最小推理子图并逐步扩展它。AutoPrunedRetriever在紧凑的ID索引代码本中存储实体和关系,并将问题、事实和答案表示为边序列,从而在符号结构上进行检索和提示,而不是原始文本。为了保持图的紧凑性,我们应用了双层整合策略(快速ANN/KNN别名检测加在内存阈值达到后进行选择性的k-均值)并剪枝低价值的结构,同时提示只保留重叠代表和真正的新证据。我们实现了两个前端:AutoPrunedRetriever-REBEL,它使用REBEL作为三元组解析器,以及AutoPrunedRetriever-llm,它用LLM提取器替代。在GraphRAG-Benchmark(医学和新颖)上,两种变体都实现了最先进的复杂推理准确性,比HippoRAG2提高了约9-11个点,并在上下文总结和生成上保持竞争力。在我们更难的STEM和电视基准测试上,AutoPrunedRetriever再次排名第一,同时比图密集的基线少使用多达两个数量级的令牌,使其成为长会话、演变语料库和多代理流水线的实用基础。
英文摘要:
Retrieval-augmented generation (RAG) has become a standard approach for knowledge-intensive LLM tasks. Complex reasoning remains challenging because queries often require composing dispersed evidence through multiple dependent reasoning steps. Yet existing RAG systems process queries independently, repeatedly retrieving overlapping evidence and reconstructing established reasoning. Preserving such reasoning makes previously retrieved evidence and intermediate results reusable for subsequent queries. However, inference-time reuse becomes increasingly costly as the history grows, motivating a compact representation that preserves useful information without substantial loss in quality. To address these challenges, we present AutoPrunedRetriever (APR), a graph-based RAG system that encodes corpus facts and query-derived reasoning in a shared symbolic codebook. The codebook serves both as the retrieval index and as persistent memory, representing facts, questions, and answers as compact edge sequences, so that the previously established structure can be directly retrieved and reused. At inference time, APR retrieves query-specific reasoning paths and constructs compact prompts, while incremental consolidation keeps the growing memory compact. For deployments where the retriever cannot be replaced, we introduce AutoPruned Layer (APL), which leaves host retrieval unchanged but replaces the retrieved context with the corresponding entries in the shared symbolic codebook, writing each question and answer back as a compact structure. Across five complex-reasoning benchmarks, APR improves accuracy over the strongest baseline by 1.8-10.8 points while using up to 96% fewer input tokens. APL reduces generator input by 60-96% across host systems and preserves answer quality on document-style contexts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。