arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.00328cs.LG
收藏

KG-Guard: 基于图的知识库问答幻觉检测

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

Department of Artificial Intelligence(人工智能系);Wroclaw University of Science and Technology(波兹南科技大学)

Albert Sawczyn, Piotr Bielak, Tomasz Kajdanowicz

AI总结:

针对知识库问答中LLM的幻觉问题,提出一种轻量级图框架,将问答实例构建为增强图,通过图编码器和MLP分类器检测幻觉答案节点,在三个基准上取得最高F1并显著提升下游KBQA性能。

摘要:

大型语言模型(LLM)越来越多地用于知识库问答(KBQA),其中回答需要从问题特定的知识图谱子图中选择实体。然而,LLM在任务中已知会产生幻觉,KBQA也不例外:即使我们提供图作为知识源,模型可能依赖参数化知识而非图证据,或对给定关系进行无效推理。这种幻觉答案节点可能限制KBQA系统的实际部署,尤其是在医疗等高风险领域。我们将KBQA中的幻觉检测形式化为一个答案节点分类问题,并提出一个轻量级基于图的框架,将回答LLM视为黑盒。\methodname将每个KBQA实例表示为一个增强图。它用KG实体的语义表示初始化节点特征,用学习向量标记主题实体和LLM提出的答案节点,并将一个虚拟问题节点连接到主题实体。然后,图编码器生成面向验证的节点表示,一个小型MLP利用其图表示和问题嵌入对每个提出的答案节点进行分类。在WebQSP、ComplexWebQuestions和PUGG上的实验表明,我们的检测器在所有三个基准上取得了最高F1(分别为82.0、87.4和84.3),优于LLM作为评判和基于采样的基线,同时参数数量比参考方法少约305倍。除了检测,节点级反馈是可操作的:当标记的答案被反馈给KBQA系统进行迭代优化时,下游KBQA F1提高了13.0-14.5个点,精确匹配提高了16.9-17.6个点。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑