Skip to main content
QUICK REVIEW

[论文解读] LLMs for Knowledge Graph Construction and Reasoning: Recent Capabilities and Future Opportunities

Yuqi Zhu, Xiaohan Wang|arXiv (Cornell University)|May 22, 2023
Semantic Web and OntologiesComputer Science被引用 36
一句话总结

本文在八个数据集上评估 GPT-3.5/ChatGPT/GPT-4 的 KG 构建与推理能力,首次引入带有 VINE 数据集的 Virtual Knowledge Extraction 任务,并提出利用多主体 LLM 的 AutoKG 用于自动化 KG 构建与推理。

ABSTRACT

This paper presents an exhaustive quantitative and qualitative evaluation of Large Language Models (LLMs) for Knowledge Graph (KG) construction and reasoning. We engage in experiments across eight diverse datasets, focusing on four representative tasks encompassing entity and relation extraction, event extraction, link prediction, and question-answering, thereby thoroughly exploring LLMs' performance in the domain of construction and inference. Empirically, our findings suggest that LLMs, represented by GPT-4, are more suited as inference assistants rather than few-shot information extractors. Specifically, while GPT-4 exhibits good performance in tasks related to KG construction, it excels further in reasoning tasks, surpassing fine-tuned models in certain cases. Moreover, our investigation extends to the potential generalization ability of LLMs for information extraction, leading to the proposition of a Virtual Knowledge Extraction task and the development of the corresponding VINE dataset. Based on these empirical findings, we further propose AutoKG, a multi-agent-based approach employing LLMs and external sources for KG construction and reasoning. We anticipate that this research can provide invaluable insights for future undertakings in the field of knowledge graphs. The code and datasets are in https://github.com/zjunlp/AutoKG.

研究动机与目标

  • 评估大型语言模型在 KG 构建任务(NER、RE、EE、EL)以及 KG 推理(LP)与问答(QA)上的零-shot 和一-shot 表现。
  • 通过 Virtual Knowledge Extraction 和 VINE 数据集研究 LLMs 在信息提取方面的泛化能力。
  • 提出 AutoKG,这是一个用于自动化 KG 构建与推理的多主体 LLM 框架。
  • 为在 KG 工作流中使用 LLMs 提供见解与未来方向。

提出的方法

  • 评述涵盖实体、关系、事件抽取、链接预测和问答等八个与 KG 相关的任务及八个数据集。
  • 将 GPT-4、ChatGPT 与 text-davinci-003 的零-shot 与一-shot 表现与 SOTA 基线进行比较。
  • 创建 VINE 数据集,以在未见实体和关系上测试虚拟知识提取。
  • 开发 AutoKG,这是一个多主体框架,其中 LLMs 迭代协作以构建和对 KG 进行推理。

实验结果

研究问题

  • RQ1在零-shot 与一-shot 设置下,LLMs(GPT-4、ChatGPT)是否能够在 KG 构建和推理任务上达到 SOTA 或接近 SOTA 的表现?
  • RQ2LLMs 是否在通过虚拟知识任务进行信息提取方面表现出强泛化性和指令驱动学习?
  • RQ3一个多主体 LLM 框架(AutoKG)是否能有效实现 KG 的自动构建与推理?
  • RQ4哪些因素(数据集质量、提示词、评估方法)会影响 LLM 在跨领域的 KG 任务上的性能?
  • RQ5LLMs 是否通过指令遵循记住知识,还是能对未见知识进行泛化?

主要发现

  • GPT-4 通常在 KG 构建任务上优于 ChatGPT,在某些推理与 QA 数据集中甚至可超越部分微调模型。
  • LLMs 在 KG 推理和 QA 的表现通常强于 KG 构建,在零-shot 或一-shot 设置下经常接近或达到 SOTA 的推理水平。
  • 一种新颖的 Virtual Knowledge Extraction 任务及 VINE 数据集展示了 GPT-4 通过指令对未见虚拟知识进行泛化的能力。
  • GPT-4 能以高准确度提取未见实体和关系的虚拟三元组,表明强的指令驱动泛化。
  • 一-shot 提示在某些结果上有提升,但效果因任务和模型而异,领域特定数据的增益较小。
  • AutoKG 表明基于多智能体、对话式的方法能够有效构建和对 KG 进行推理,凸显未来自动化潜力。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。