Knowledge Graph-Enhanced Large Language Models via Path Selection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Haochen, Wang, Song, Zhu, Yaochen, Dong, Yushun, Li, Jundong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929392173711360
author Liu, Haochen
Wang, Song
Zhu, Yaochen
Dong, Yushun
Li, Jundong
author_facet Liu, Haochen
Wang, Song
Zhu, Yaochen
Dong, Yushun
Li, Jundong
contents Large Language Models (LLMs) have shown unprecedented performance in various real-world applications. However, they are known to generate factually inaccurate outputs, a.k.a. the hallucination problem. In recent years, incorporating external knowledge extracted from Knowledge Graphs (KGs) has become a promising strategy to improve the factual accuracy of LLM-generated outputs. Nevertheless, most existing explorations rely on LLMs themselves to perform KG knowledge extraction, which is highly inflexible as LLMs can only provide binary judgment on whether a certain knowledge (e.g., a knowledge path in KG) should be used. In addition, LLMs tend to pick only knowledge with direct semantic relationship with the input text, while potentially useful knowledge with indirect semantics can be ignored. In this work, we propose a principled framework KELP with three stages to handle the above problems. Specifically, KELP is able to achieve finer granularity of flexible knowledge extraction by generating scores for knowledge paths with input texts via latent semantic matching. Meanwhile, knowledge paths with indirect semantic relationships with the input text can also be considered via trained encoding between the selected paths in KG and the input text. Experiments on real-world datasets validate the effectiveness of KELP.
format Preprint
id arxiv_https___arxiv_org_abs_2406_13862
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Knowledge Graph-Enhanced Large Language Models via Path Selection
Liu, Haochen
Wang, Song
Zhu, Yaochen
Dong, Yushun
Li, Jundong
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) have shown unprecedented performance in various real-world applications. However, they are known to generate factually inaccurate outputs, a.k.a. the hallucination problem. In recent years, incorporating external knowledge extracted from Knowledge Graphs (KGs) has become a promising strategy to improve the factual accuracy of LLM-generated outputs. Nevertheless, most existing explorations rely on LLMs themselves to perform KG knowledge extraction, which is highly inflexible as LLMs can only provide binary judgment on whether a certain knowledge (e.g., a knowledge path in KG) should be used. In addition, LLMs tend to pick only knowledge with direct semantic relationship with the input text, while potentially useful knowledge with indirect semantics can be ignored. In this work, we propose a principled framework KELP with three stages to handle the above problems. Specifically, KELP is able to achieve finer granularity of flexible knowledge extraction by generating scores for knowledge paths with input texts via latent semantic matching. Meanwhile, knowledge paths with indirect semantic relationships with the input text can also be considered via trained encoding between the selected paths in KG and the input text. Experiments on real-world datasets validate the effectiveness of KELP.
title Knowledge Graph-Enhanced Large Language Models via Path Selection
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.13862