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

Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models

About

Large language models (LLMs) have demonstrated impressive reasoning abilities, but they still struggle with faithful reasoning due to knowledge gaps and hallucinations. To address these issues, knowledge graphs (KGs) have been utilized to enhance LLM reasoning through their structured knowledge. However, existing KG-enhanced methods, either retrieval-based or agent-based, encounter difficulties in accurately retrieving knowledge and efficiently traversing KGs at scale. In this work, we introduce graph-constrained reasoning (GCR), a novel framework that bridges structured knowledge in KGs with unstructured reasoning in LLMs. To eliminate hallucinations, GCR ensures faithful KG-grounded reasoning by integrating KG structure into the LLM decoding process through KG-Trie, a trie-based index that encodes KG reasoning paths. KG-Trie constrains the decoding process, allowing LLMs to directly reason on graphs and generate faithful reasoning paths grounded in KGs. Additionally, GCR leverages a lightweight KG-specialized LLM for graph-constrained reasoning alongside a powerful general LLM for inductive reasoning over multiple reasoning paths, resulting in accurate reasoning with zero reasoning hallucination. Extensive experiments on several KGQA benchmarks demonstrate that GCR achieves state-of-the-art performance and exhibits strong zero-shot generalizability to unseen KGs without additional training.

Linhao Luo, Zicheng Zhao, Gholamreza Haffari, Yuan-Fang Li, Chen Gong, Shirui Pan• 2024

Related benchmarks

TaskDatasetResultRank
Knowledge Graph Question AnsweringCWQ
Hit@175.8
212
Knowledge Graph Question AnsweringWebQSP
Hit@192.6
174
Multi-hop Knowledge Graph Question AnsweringWebQSP
Hits@192.2
69
Multi-hop Knowledge Graph Question AnsweringCWQ
Hits@175.8
64
Open-world Knowledge Graph Question AnsweringAskGNN arxiv2023 ogbn-arxiv ogbn-products 1-Hop
Exact Match Accuracy21
62
Knowledge Base Question AnsweringWebQSP Freebase (test)
Hits@187.2
60
Knowledge Base Question AnsweringWebQSP
Hits@192.6
53
Question AnsweringMetaQA 2-hop
Accuracy86.7
39
Question AnsweringMetaQA 3-hop
Accuracy83.2
39
Open-world Knowledge Graph Question AnsweringGLOW-Bench 1-Hop
Accuracy47
36
Showing 10 of 23 rows

Other info

Follow for update