arXiv:2412.18702cs.CLcs.AI2024-12ACL被引 24

为大模型高效检索大规模知识图谱提出新方法与评测基准

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

  • 将RDF知识图谱转换为可被大模型用Cypher查询的属性图
  • 构建包含780万实体、超万道题目的首个大规模评测集
  • 解决图谱结构复杂、上下文过长等大模型适配难题

从图数据中进行检索对增强大语言模型(LLM)的开放域知识和企业私有数据至关重要,也是近期GraphRAG系统的核心组件。尽管知识图谱与知识库问答研究已有数十年积累,主流LLM框架(如Langchain、LlamaIndex)对现代百科类知识图谱(如Wikidata)的检索支持仍非常有限。本文分析其根源,指出现代RDF知识图谱(如Wikidata、Freebase)因模式过大超出典型LLM上下文窗口、使用资源标识符、关系类型重叠及缺乏规范化,导致对大模型不友好。为此,我们提出在底层RDF图之上构建属性图视图,使大模型可通过Cypher高效查询。我们在Wikidata上实现该方案,并引入CypherBench——首个包含11个大规模多领域属性图的基准,涵盖780万实体和超过1万道问题。为达成此目标,我们解决了若干关键挑战:开发RDF到属性图的转换引擎,建立系统化文本转Cypher任务生成流程,并设计新型评估指标。

原文摘要 · Abstract (English)

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.

知识图谱大模型检索评测基准

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。