arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20724cs.CLcs.IRcs.LG
收藏

简单即有效:图与大语言模型在基于知识图谱的检索增强生成中的角色

Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation

Georgia Institute of Technology(佐治亚理工学院)

Mufei Li, Siqi Miao, Pan Li

AI总结:

提出SubgraphRAG框架,通过轻量级多层感知机与并行三元组评分机制高效检索子图,在无需微调的情况下,使较小LLM具备可解释推理能力,并让GPT-4o达到SOTA准确率,有效平衡了检索效率与有效性。

摘要:

大型语言模型(LLMs)展现出强大的推理能力,但面临幻觉和知识过时等局限。基于知识图谱(KG)的检索增强生成(RAG)通过将LLM的输出锚定在来自KG的结构化外部知识上,解决了这些问题。然而,当前的基于KG的RAG框架在优化检索有效性与效率之间的权衡方面仍存在困难,即在识别适合LLM消化的相关图信息量时难以平衡。我们提出了SubgraphRAG,扩展了基于KG的RAG框架,该框架检索子图并利用LLM进行推理和答案预测。我们的方法创新性地集成了轻量级多层感知机与并行三元组评分机制,以实现高效且灵活的子图检索,同时编码方向性结构距离以增强检索有效性。检索到的子图大小可以灵活调整,以匹配查询的需求和下游LLM的能力。这种设计在模型复杂性和推理能力之间取得了平衡,实现了可扩展且可泛化的检索过程。值得注意的是,基于我们检索到的子图,像Llama3.1-8B-Instruct这样的较小LLM能够提供具有可解释推理的竞争性结果,而像GPT-4o这样的大型模型与先前的基线相比则实现了最先进的准确率——所有这些都无需微调。在WebQSP和CWQ基准上的广泛评估突显了SubgraphRAG在效率、准确性和可靠性方面的优势,即通过减少幻觉和改善响应锚定来提升性能。

英文摘要:

Large Language Models (LLMs) demonstrate strong reasoning abilities but face limitations such as hallucinations and outdated knowledge. Knowledge Graph (KG)-based Retrieval-Augmented Generation (RAG) addresses these issues by grounding LLM outputs in structured external knowledge from KGs. However, current KG-based RAG frameworks still struggle to optimize the trade-off between retrieval effectiveness and efficiency in identifying a suitable amount of relevant graph information for the LLM to digest. We introduce SubgraphRAG, extending the KG-based RAG framework that retrieves subgraphs and leverages LLMs for reasoning and answer prediction. Our approach innovatively integrates a lightweight multilayer perceptron with a parallel triple-scoring mechanism for efficient and flexible subgraph retrieval while encoding directional structural distances to enhance retrieval effectiveness. The size of retrieved subgraphs can be flexibly adjusted to match the query's need and the downstream LLM's capabilities. This design strikes a balance between model complexity and reasoning power, enabling scalable and generalizable retrieval processes. Notably, based on our retrieved subgraphs, smaller LLMs like Llama3.1-8B-Instruct deliver competitive results with explainable reasoning, while larger models like GPT-4o achieve state-of-the-art accuracy compared with previous baselines -- all without fine-tuning. Extensive evaluations on the WebQSP and CWQ benchmarks highlight SubgraphRAG's strengths in efficiency, accuracy, and reliability by reducing hallucinations and improving response grounding.

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

↑