Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

MKGL: Mastery of a Three-Word Language

About

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.

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• 2024

Related benchmarks

TaskDatasetResultRank
Link PredictionFB15k-237
MRR41.5
293
Link PredictionWN18RR
Hits@1065.6
188
Knowledge Graph CompletionWN18RR
Hits@150
165
Knowledge Graph CompletionFB15k-237
Hits@100.591
108
Knowledge Graph ReasoningFB15k-237 (test)--
29
Inductive Link PredictionWN v2
Hit@100.799
11
Inductive Link PredictionWN v3
Hit@1059.9
11
Inductive Link PredictionWN v1
Hit@1082.2
11
Inductive Link PredictionWN v4
Hit@1074.1
11
Inductive Link PredictionNELL V4
Hit@1076.9
11
Showing 10 of 22 rows

Other info

Code

Follow for update