arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18702cs.CLcs.AIcs.DB
收藏

CypherBench:迈向LLM时代对全规模现代知识图谱的精准检索

CypherBench: Towards Precise Retrieval over Full-scale Modern Knowledge Graphs in the LLM Era

Megagon Labs(美伽仑实验室);Politecnico di Torino(都灵理工大学);EURECOM(欧洲通信学院)

Yanlin Feng, Simone Papicchio, Sajjadur Rahman

AI总结:

本文针对LLM难以高效检索现代RDF知识图谱的问题,提出在底层RDF图之上构建属性图视图并用Cypher查询,同时推出首个大规模多领域基准CypherBench,包含780万实体和超1万问题。

摘要:

从图数据中检索对于用开放域知识和私有企业数据增强大语言模型(LLM)至关重要,并且它也是近期GraphRAG系统(Edge et al., 2024)的关键组成部分。尽管在知识图谱和知识库问答方面已有数十年的研究,主流的LLM框架(例如Langchain和LlamaIndex)对从现代百科全书式知识图谱(如Wikidata)中进行检索的支持仍然十分有限。在本文中,我们分析了其根本原因,并指出由于现代RDF知识图谱(例如Wikidata、Freebase)的模式过于庞大,远超典型LLM的上下文窗口,同时使用资源标识符、关系类型重叠且缺乏规范化,因此对LLM而言效率较低。作为解决方案,我们提出在底层RDF图之上构建属性图视图,使LLM能够使用Cypher高效地进行查询。我们在Wikidata上实例化了这一想法,并推出了CypherBench,这是首个包含11个大规模、多领域属性图的基准,拥有780万个实体和超过10,000个问题。为实现这一目标,我们解决了若干关键挑战,包括开发RDF到属性图的转换引擎、创建用于文本到Cypher任务生成的系统化流程,以及设计新的评估指标。

英文摘要:

Retrieval from graph data is crucial for augmenting large language models (LLM) with both open-domain knowledge and private enterprise data, and it is also a key component in the recent GraphRAG system (edge et al., 2024). Despite decades of research on knowledge graphs and knowledge base question answering, leading LLM frameworks (e.g. Langchain and LlamaIndex) have only minimal support for retrieval from modern encyclopedic knowledge graphs like Wikidata. In this paper, we analyze the root cause and suggest that modern RDF knowledge graphs (e.g. Wikidata, Freebase) are less efficient for LLMs due to overly large schemas that far exceed the typical LLM context window, use of resource identifiers, overlapping relation types and lack of normalization. As a solution, we propose property graph views on top of the underlying RDF graph that can be efficiently queried by LLMs using Cypher. We instantiated this idea on Wikidata and introduced CypherBench, the first benchmark with 11 large-scale, multi-domain property graphs with 7.8 million entities and over 10,000 questions. To achieve this, we tackled several key challenges, including developing an RDF-to-property graph conversion engine, creating a systematic pipeline for text-to-Cypher task generation, and designing new evaluation metrics.

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

↑