Skip to main content
QUICK REVIEW

[论文解读] Exploring In-Context Learning Capabilities of Foundation Models for Generating Knowledge Graphs from Text

Hanieh Khorashadizadeh, Nandana Mihindukulasooriya|arXiv (Cornell University)|May 15, 2023
Topic ModelingComputer Science被引用 8
一句话总结

论文研究了使用基础模型与上下文学习从文本生成和补全知识图谱,描述了架构、定性演示和基于提示的方法。分析了围绕知识图谱构建、补全与事实核查的研究问题,涉及ChatGPT等模型。

ABSTRACT

Knowledge graphs can represent information about the real-world using entities and their relations in a structured and semantically rich manner and they enable a variety of downstream applications such as question-answering, recommendation systems, semantic search, and advanced analytics. However, at the moment, building a knowledge graph involves a lot of manual effort and thus hinders their application in some situations and the automation of this process might benefit especially for small organizations. Automatically generating structured knowledge graphs from a large volume of natural language is still a challenging task and the research on sub-tasks such as named entity extraction, relation extraction, entity and relation linking, and knowledge graph construction aims to improve the state of the art of automatic construction and completion of knowledge graphs from text. The recent advancement of foundation models with billions of parameters trained in a self-supervised manner with large volumes of training data that can be adapted to a variety of downstream tasks has helped to demonstrate high performance on a large range of Natural Language Processing (NLP) tasks. In this context, one emerging paradigm is in-context learning where a language model is used as it is with a prompt that provides instructions and some examples to perform a task without changing the parameters of the model using traditional approaches such as fine-tuning. This way, no computing resources are needed for re-training/fine-tuning the models and the engineering effort is minimal. Thus, it would be beneficial to utilize such capabilities for generating knowledge graphs from text.

研究动机与目标

  • 评估预训练的基础模型在定义本体的知识图谱补全中的知识能力。
  • 评估在推理时提供的未见文本中提取事实以构建知识图谱。
  • 探究从本体自动生成用于知识图谱构建的提示。
  • 探索使用基础模型完成不完整知识图谱的提示设计。
  • 检查基础模型在知识图谱相关任务与事实核查中的可靠性与局限性。

提出的方法

  • 提出一个以基础模型和提示驱动的知识图谱构建与补全架构(输入本体、可选文本、未完成的KG)。
  • 聚焦于提示设计方法(提示设计,而非完全微调或提示微调)来驱动信息抽取。
  • 概述从本体自动生成提示以提取相关三元组并将其后处理为RDF。
  • 讨论输出验证以及用于事实核查与错误缓解的潜在人工干预或众包。

实验结果

研究问题

  • RQ1R1:在定义本体和少量示例的条件下,预训练的大语言模型知识是否可用于KG补全?
  • RQ2R2:LLM在推理时是否可以从未见文本中提取事实来生成知识图谱?
  • RQ3R3:是否可以自动为给定本体提取三元组生成提示?
  • RQ4R4:KG中缺失信息是否可以被识别并为完成KG而创建提示?
  • RQ5R5:LLMs是否可以检查KG并识别错误事实以用于事实核查?
  • RQ6R6:像ChatGPT这样的模型在这些场景中的能力与局限性是什么?
  • RQ7R7:这种方法的缺点与风险是什么?

主要发现

  • LLMs能够为与COVID-19相关的提示生成正确的三元组,大多数示例在事实层面是正确的;部分提示中的少量三元组可能不正确(例如在疫苗相关集合中20个中有1个不正确)。
  • LLMs能够从自然语言文本以及在推理时提供的未见文本中提取事实,通常准确性较高,但存在少量关系缺失和偶发误解。
  • 以本体为引导的提示生成可以产生与模式大体一致的连贯三元组,尽管领域约束有时可能被违反。
  • 提示设计质量显著影响抽取性能,对于大本体可能需要迭代提示。
  • LLMs可以协助知识图谱补全与事实核查,但可能产生幻觉或偏见,因此需要验证或引入人为介入。
  • 所提框架强调通过文本自动提取实现成本效益、可扩展性和对知识图谱的最新性。

阅读本论文

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

在 Nubint 中阅读本论文

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