用多维立方体结构提升科学问答的检索精度与速度
Hypercube-Based Retrieval-Augmented Generation for Scientific Question-Answering
- 将文档映射到预定义的多维立方体空间,按实体、短语、主题分解查询
- 在三个数据集上提升回答准确率3.7%,检索准确率5.3%,速度提升1-2个数量级
- 天然具备可解释性,能揭示检索所依赖的关键维度,适合科研与高精度场景
大型语言模型(LLMs)在解决领域特定问题时常需引入外部知识。检索增强生成(RAG)通过结合外部数据显著提升了生成质量,但现有方法多依赖稀疏或稠密检索,忽视了文档中关键的多维结构化语义信息。针对科学问答这类知识密集型任务,本文提出一种多维立方体结构——Hypercube,用于在预定义的多维空间中索引与分配文档。基于此,我们构建了新型RAG框架Hypercube-RAG:给定查询后,先按实体、短语、主题分解,并与预设立方体维度对齐,实现精准检索。在三个跨领域数据集上的实验表明,该方法相较最强基线提升回答准确率3.7%、检索准确率5.3%,检索速度比图基RAG快1至2个数量级。此外,其检索过程天然具备可解释性,能揭示所用维度。代码与数据已公开于https://github.com/JimengShi/Hypercube-RAG。
原文摘要 · Abstract (English)
Large language models (LLMs) often need to incorporate external knowledge to solve theme-specific problems. Retrieval-augmented generation (RAG) has shown its high promise, empowering LLMs to generate more qualified responses with retrieved external data and knowledge. However, most RAG methods retrieve relevant documents based on either sparse or dense retrieval methods or their combinations, which overlooks the essential, multi-dimensional, and structured semantic information present in documents. This structured information plays a critical role in finding concise yet highly relevant information for domain knowledge-intensive tasks, such as scientific question-answering (QA). In this work, we introduce a multi-dimensional (cube) structure, Hypercube, which can index and allocate documents in a pre-defined multi-dimensional space. Built on the hypercube, we further propose Hypercube-RAG, a novel RAG framework for precise and efficient retrieval. Given a query, Hypercube-RAG first decomposes it based on its entities, phrases, and topics along with pre-defined hypercube dimensions, and then retrieves relevant documents from cubes by aligning these decomposed components with corresponding dimensions. Experiments on three datasets across different domains demonstrate that our method improves response accuracy by 3.7% and retrieval accuracy by 5.3% over the strongest RAG baseline. It also boosts retrieval efficiency (speed) by one or two magnitudes faster than graph-based RAG. Notably, our Hypercube-RAG inherently offers explainability by revealing those underlying dimensions used for retrieval. The code and data are available at https://github.com/JimengShi/Hypercube-RAG.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。