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

MKGL:掌握一种三词语言

MKGL: Mastery of a Three-Word Language

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Ant Group(蚂蚁集团);Zhejiang University - Ant Group Joint Laboratory of Knowledge Graph(浙江大学-蚂蚁集团知识图谱联合实验室);Department of Computer Science, The University of Manchester(曼彻斯特大学计算机科学系);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);School of Computer Science, Beijing University of Posts and Telecommunications(北京邮电大学计算机学院);School of Software Technology, Zhejiang University(浙江大学软件学院)

Lingbing Guo, Zhongpu Bo, Zhuo Chen, Yichi Zhang, Jiaoyan Chen, Yarong Lan, Mengshu Sun, Zhiqiang Zhang, Yangyifei Luo, Qian Li, Qiang Zhang, Wen Zhang, Huajun Chen

AI总结:

本文提出一种专门的知识图谱语言KGL,通过定制字典、例句、实时上下文检索和词元嵌入增强,使LLMs掌握该三词语言,在知识图谱补全任务上大幅减少错误,并具备生成准确句子和解释未见术语的能力。

摘要:

大型语言模型(LLMs)在一系列自然语言处理(NLP)任务上显著提升了性能。然而,它们在知识图谱(KGs)上的应用仍是一个未被充分探索的前沿领域;知识图谱以三元组的形式描述事实,并允许极少的幻觉。在本文中,我们通过引入一种专门的知识图谱语言(KGL)来研究LLMs与KGs的整合,在该语言中,一个句子精确地由一个实体名词、一个关系动词组成,并以另一个实体名词结尾。尽管KGL的词汇对LLM来说很陌生,我们通过量身定制的字典和例句促进了其学习,并通过实时的KG上下文检索和KGL词元嵌入增强来提升上下文理解能力。我们的结果显示,LLMs能够在KGL上达到流利程度,与传统的KG嵌入方法相比,在KG补全任务上大幅减少了错误。此外,我们增强后的LLM在从初始实体生成准确的三词句子以及解释KG之外的新未见术语方面展现出了卓越的能力。

英文摘要:

Large language models (LLMs) have significantly advanced performance across a spectrum of natural language processing (NLP) tasks. Yet, their application to knowledge graphs (KGs), which describe facts in the form of triplets and allow minimal hallucinations, remains an underexplored frontier. In this paper, we investigate the integration of LLMs with KGs by introducing a specialized KG Language (KGL), where a sentence precisely consists of an entity noun, a relation verb, and ends with another entity noun. Despite KGL's unfamiliar vocabulary to the LLM, we facilitate its learning through a tailored dictionary and illustrative sentences, and enhance context understanding via real-time KG context retrieval and KGL token embedding augmentation. Our results reveal that LLMs can achieve fluency in KGL, drastically reducing errors compared to conventional KG embedding methods on KG completion. Furthermore, our enhanced LLM shows exceptional competence in generating accurate three-word sentences from an initial entity and interpreting new unseen terms out of KGs.

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

↑