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

DevFeed: [KG-Guard: Graph-Based Hallucination Detection for Knowledge Base Question Answering](<https://devfeed.tech/articles/kg-guard-graph-based-hallucination-detection-for-knowledge-base-question-answering-132800.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.00328>)

Author: Albert Sawczyn, Piotr Bielak, Tomasz Kajdanowicz

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [база знаний](<https://devfeed.tech/topics/tag-c51cc4bf76e5.md>), [graph-database](<https://devfeed.tech/topics/graph-database.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [detection](<https://devfeed.tech/tags/detection.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [graph](<https://devfeed.tech/tags/graph.md>), [hallucination-detection](<https://devfeed.tech/tags/hallucination-detection.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [knowledge-base](<https://devfeed.tech/tags/knowledge-base.md>), [knowledge-graph](<https://devfeed.tech/tags/knowledge-graph.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [lightweight](<https://devfeed.tech/tags/lightweight.md>), [llm](<https://devfeed.tech/tags/llm.md>), [mlp](<https://devfeed.tech/tags/mlp.md>), [node](<https://devfeed.tech/tags/node.md>), [question](<https://devfeed.tech/tags/question.md>)

## AI overview

KG-Guard detects hallucinated answer entities in knowledge base question answering by classifying each proposed answer node with a lightweight graph-based verifier that treats the answering LLM as a black box. It builds an augmented graph from the question, topic entities, and proposed answers, then combines graph representations with the question embedding. On WebQSP, ComplexWebQuestions, and PUGG, the authors report F1 scores of 82.0, 87.4, and 84.3, respectively, and the best average rank across the three benchmarks, using about 305 times fewer parameters than LLM-based baselines. Feeding flagged answers back for iterative refinement reportedly improves downstream F1 by 13.0-14.5 points and Exact Match by 16.9-17.6 points. These results are limited to the reported benchmarks, pipelines, and settings.

## Source excerpt

arXiv:2606.00328v2 Announce Type: replace Abstract: Large language models (LLMs) are increasingly used for knowledge base question answering (KBQA), also referred to as knowledge graph question answering (KGQA), where answering requires selecting entities from a question-specific knowledge graph subgraph. Yet LLMs are known to hallucinate across tasks, and KBQA is no exception: even when we provide a graph as the knowledge source, the model may rely on parametric knowledge instead of graph evidence or perform invalid reasoning over the given relations. Such hallucinated answer nodes can limit the practical deployment of KBQA systems, especially in high-stakes domains such as healthcare. We formulate hallucination detection in KBQA as an answer-node classification problem and propose a lightweight graph-based framework that treats the answering LLM as a black box. KG-Guard represents each KBQA instance as an augmented graph. It initializes node features with semantic representations of KG entities, marks topic entities and LLM-proposed answer nodes with learned vectors, and connects a virtual question node to the topic entities. A graph encoder then produces verification-oriented node representations, and a small MLP classifies each proposed answer node using its graph representation together with the question embedding. Experiments on WebQSP, ComplexWebQuestions, and PUGG show that our detector achieves the best average rank across all three benchmarks (F1 82.0, 87.4, and 84.3), while using ${\sim}$305$\times$ fewer parameters than LLM-based baselines. It also retains the best average rank when jointly evaluated across an extended set of pipelines and settings. Beyond detection, the node-level feedback is actionable: when flagged answers are fed back to the KBQA system for iterative refinement, downstream KBQA F1 improves by 13.0-14.5 points and Exact Match by 16.9-17.6 points.