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

抽取、定义、规范化:一种基于 LLM 的知识图谱构建框架

Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Construction

National University of Singapore(新加坡国立大学);NUS Smart Systems Institute(新加坡国立大学智能系统研究所)

Bowen Zhang, Harold Soh

AI总结:

本文提出三阶段 EDC 框架,通过开放抽取、模式定义与事后规范化,并结合模式元素检索,使 LLM 能在有无预定义模式下构建高质量知识图谱。

摘要:

在本工作中,我们关注从输入文本自动创建知识图谱(KGC)的方法。大型语言模型(LLM)的进展推动了近期一系列将其应用于 KGC 的研究,例如通过零样本或少样本提示。尽管这些模型在小型领域特定数据集上取得了成功,但在扩展到许多真实应用中常见的文本时仍面临困难。一个主要问题是,在以往方法中,必须将知识图谱模式包含在 LLM 提示中才能生成有效的三元组;而更大、更复杂的模式很容易超出 LLM 的上下文窗口长度。此外,还存在无法获得固定预定义模式的场景,此时我们希望方法能够利用简洁的自生成模式构建高质量知识图谱。为解决这些问题,我们提出了一个名为 Extract-Define-Canonicalize(EDC)的三阶段框架:先进行开放信息抽取,随后进行模式定义和事后规范化。EDC 具有灵活性,既可用于存在预定义目标模式的设置,也可用于不存在该模式的设置;在后一种情况下,它会自动构建模式并应用自规范化。为进一步提升性能,我们引入了一个经过训练的组件,用于检索与输入文本相关的模式元素;这以类似检索增强生成的方式改善了 LLM 的抽取性能。我们在三个 KGC 基准测试上证明,EDC 无需任何参数调优即可抽取高质量三元组,并且与以往工作相比能够处理显著更大的模式。EDC 的代码可在 https://github.com/clear-nus/edc 获取。

英文摘要:

In this work, we are interested in automated methods for knowledge graph creation (KGC) from input text. Progress on large language models (LLMs) has prompted a series of recent works applying them to KGC, e.g., via zero/few-shot prompting. Despite successes on small domain-specific datasets, these models face difficulties scaling up to text common in many real-world applications. A principal issue is that, in prior methods, the KG schema has to be included in the LLM prompt to generate valid triplets; larger and more complex schemas easily exceed the LLMs' context window length. Furthermore, there are scenarios where a fixed pre-defined schema is not available and we would like the method to construct a high-quality KG with a succinct self-generated schema. To address these problems, we propose a three-phase framework named Extract-Define-Canonicalize (EDC): open information extraction followed by schema definition and post-hoc canonicalization. EDC is flexible in that it can be applied to settings where a pre-defined target schema is available and when it is not; in the latter case, it constructs a schema automatically and applies self-canonicalization. To further improve performance, we introduce a trained component that retrieves schema elements relevant to the input text; this improves the LLMs' extraction performance in a retrieval-augmented generation-like manner. We demonstrate on three KGC benchmarks that EDC is able to extract high-quality triplets without any parameter tuning and with significantly larger schemas compared to prior works. Code for EDC is available at https://github.com/clear-nus/edc.

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

↑