arXiv

KG-Guard: Graph-Based Hallucination Detection for Knowledge Base Question Answering

Title: KG-Guard: A Graph-Based Approach to Detecting Hallucinations in Knowledge Base Question Answering

Abstract:

Large language models (LLMs) are seeing growing adoption in knowledge base question answering (KBQA), a task that involves retrieving answers by selecting entities from a subgraph specific to the query. However, LLMs are prone to hallucinations across various applications, and KBQA is no exception. Even when supplied with a graph as the primary knowledge source, models may default to parametric knowledge rather than utilizing the provided graph evidence, or they may execute invalid reasoning over the existing relations. These hallucinated answer nodes pose significant barriers to the practical implementation of KBQA systems, particularly in critical sectors like healthcare.

To address this, we frame hallucination detection in KBQA as a problem of classifying answer nodes. We introduce a lightweight, graph-based framework that operates on the LLM used for answering as a black box. Our method, \methodname, models each KBQA instance as an augmented graph. This process involves initializing node features with semantic representations of knowledge graph (KG) entities, assigning learned vectors to topic entities and the answer nodes proposed by the LLM, and linking a virtual question node to the topic entities. A graph encoder subsequently generates verification-focused node representations. Finally, a small multi-layer perceptron (MLP) classifies each proposed answer node by combining its graph representation with the question embedding.

Evaluations on the WebQSP, ComplexWebQuestions, and PUGG benchmarks demonstrate that our detector attains the highest F1 scores across all three datasets (82.0, 87.4, and 84.3, respectively). This performance surpasses baselines based on LLM-as-a-judge and sampling methods, all while utilizing approximately 305 times fewer parameters than the reference approaches. Furthermore, the feedback provided at the node level is highly actionable. When answers flagged by our detector are reintroduced to the KBQA system for iterative refinement, downstream KBQA F1 scores increase by 13.0–14.5 points, and Exact Match scores improve by 16.9–17.6 points.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...