Skip to main content
QUICK REVIEW

[Paper Review] Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models

Linhao Luo, Zicheng Zhao|arXiv (Cornell University)|Oct 16, 2024
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

GCR introduces a KG-grounded decoding framework that constrains LLM reasoning with a KG-Trie index, enabling faithful, zero-hallucination reasoning over knowledge graphs and state-of-the-art KGQA performance.

ABSTRACT

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.

Motivation & Objective

  • Bridge structured KG knowledge and unstructured LLM reasoning for faithful KG-aware answers
  • Eliminate hallucinations by constraining LLM decoding with KG structure
  • Leverage a KG-specialized lightweight LLM and a powerful general LLM for efficient, inductive reasoning over multiple paths
  • Achieve state-of-the-art KGQA performance with zero-shot generalization to unseen KGs
  • Demonstrate efficiency gains over retrieval- and agent-based KG reasoning methods

Proposed method

  • Convert KG into KG-Trie as a structured index of reasoning paths
  • Use graph-constrained decoding with a KG-specialized LLM to generate KG-grounded reasoning paths and hypothesis answers under KG-Trie constraints
  • Fine-tune a lightweight KG-specialized LLM on graph-constrained decoding data
  • Input multiple KG-grounded paths to a general LLM (FiD-like) for final inductive reasoning and answer generation
  • Conduct zero-shot generalization by applying KG-Trie to unseen KGs without additional training

Experimental results

Research questions

  • RQ1Can GCR achieve state-of-the-art reasoning performance with favorable efficiency?
  • RQ2Can GCR eliminate hallucinations and ensure faithful KG-grounded reasoning?
  • RQ3Can GCR generalize to unseen KGs in zero-shot settings?
  • RQ4What is the contribution of KG-specialized vs general LLMs in GCR?
  • RQ5How does beam size and path length affect performance and efficiency?

Key findings

  • GCR achieves state-of-the-art Hits on WebQSP and CWQ, outperforming baselines in Hit and F1.
  • KG constraints yield 100% faithful reasoning on both datasets, eliminating hallucinations in tested cases.
  • Zero-shot experiments show GCR outperforms ChatGPT and GPT-4o-mini on CSQA and MedQA when transferring to unseen KGs.
  • A lightweight KG-specialized LLM (0.5B) can surpass some larger models after fine-tuning, highlighting the benefit of specialization.
  • Beam size and path length (K and L) balance exploration and reliability; K=10 and L=2 provide strong performance-efficiency trade-offs.
  • GCR maintains efficiency by decoding with KG-Trie constraints, enabling parallel exploration without extra LLM calls.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.