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

面向链接预测的知识图谱大语言模型(KG-LLM)

Knowledge Graph Large Language Model (KG-LLM) for Link Prediction

Northwestern University(西北大学);Rutgers University(罗格斯大学);University of Liverpool(利物浦大学);New Jersey Institute of Technology(新泽西理工学院)

Dong Shu, Tianle Chen, Mingyu Jin, Chong Zhang, Mengnan Du, Yongfeng Zhang

AI总结:

针对知识图谱多跳链接预测难题,提出KG-LLM框架,将知识图谱转为自然语言提示微调主流大模型,可提升泛化能力与陌生场景下的预测准确性,还具备零样本处理新提示的潜力。

摘要:

知识图谱(KG)中的多跳链接预测任务是知识图谱分析领域的一项挑战,因为它要求模型在做出预测之前,对所有中间连接进行推理和理解。本文提出了知识图谱大语言模型(KG-LLM),这是一种利用大语言模型(LLM)处理知识图谱任务的新型框架。我们首先将结构化的知识图谱数据转换为自然语言,随后使用这些自然语言提示微调LLM,以增强知识图谱中的多跳链接预测能力。通过将知识图谱转换为自然语言提示,我们的框架旨在学习实体及其相互关系的潜在表示。为了验证KG-LLM框架的有效性,我们在该框架内微调了三款主流LLM,包括Flan-T5、LLaMa2和Gemma。此外,我们还探究了该框架为LLM赋予处理前所未见提示的零样本能力的潜力。实验结果表明,KG-LLM显著提升了模型的泛化能力,在陌生场景下能实现更准确的预测。

英文摘要:

The task of multi-hop link prediction within knowledge graphs (KGs) stands as a challenge in the field of knowledge graph analysis, as it requires the model to reason through and understand all intermediate connections before making a prediction. In this paper, we introduce the Knowledge Graph Large Language Model (KG-LLM), a novel framework that leverages large language models (LLMs) for knowledge graph tasks. We first convert structured knowledge graph data into natural language and then use these natural language prompts to fine-tune LLMs to enhance multi-hop link prediction in KGs. By converting the KG to natural language prompts, our framework is designed to learn the latent representations of entities and their interrelations. To show the efficacy of the KG-LLM Framework, we fine-tune three leading LLMs within this framework, including Flan-T5, LLaMa2 and Gemma. Further, we explore the framework's potential to provide LLMs with zero-shot capabilities for handling previously unseen prompts. Experimental results show that KG-LLM significantly improves the models' generalization capabilities, leading to more accurate predictions in unfamiliar scenarios.

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

↑