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

FLaG:用于幻觉检测的细粒度潜在分组

FLaG: Fine-Grained Latent Grouping for Hallucination Detection

Zhejiang University(浙江大学);Nanyang Technological University(南洋理工大学)

Wentao Ye, Liyao Li, Zhiqing Xiao, Muzhi Zhu, Jiaqi Hu, Zhanming Shen, Xiaomeng Hu, Sean Du, Haobo Wang

AI总结:

提出FLaG框架,通过能量路由机制将实例软关联到多个潜在证据组,并利用对数边际聚合组合组条件可靠性信号,以捕获异构幻觉模式,实现无需修改底层模型的高效幻觉检测。

摘要:

大型语言模型(LLM)中的幻觉源于异构的失败机制,这使得任何单一的全局不确定性分数都难以可靠检测。在这项工作中,我们将幻觉检测形式化为一个机制感知的证据聚合问题,其中不同的表示级和令牌级信号必须在多个潜在解释下进行解释。我们提出了FLaG,一个轻量级的幻觉检测框架,通过一组潜在证据组对正确性进行建模。每个实例通过基于能量的路由机制与多个组软关联,并通过原则性的对数边际聚合组合组条件可靠性信号。这种设计使FLaG能够捕获异构的幻觉模式,同时对决策阈值和评估指标保持不变。该框架作为冻结模型头部运行,无需修改底层语言模型,并且计算开销极小。我们进一步提供了一个理论视角,将FLaG与异构错误机制下的最优证据聚合联系起来,表明贝叶斯最优检验统计量必然具有对数边际形式,并且FLaG构成了一个具有可控误差界的可处理近似。跨多个基准和LLM骨干网络的广泛实验表明,FLaG持续实现了最先进的性能,同时在数据集和模型之间表现出稳健的迁移能力,并在有限监督下保持有效。

英文摘要:

Hallucinations in large language models (LLMs) arise from heterogeneous failure mechanisms, making reliable detection difficult for any single global uncertainty score. In this work, we formulate hallucination detection as a mechanism-aware evidence aggregation problem, where diverse representation- and token-level signals must be interpreted under multiple latent explanations. We propose FLaG, a lightweight hallucination detection framework that models correctness through a set of latent evidence groups. Each instance is softly associated with multiple groups via an energy-based routing mechanism, and group-conditional reliability signals are combined through a principled log-marginal aggregation. This design enables FLaG to capture heterogeneous hallucination patterns while remaining invariant to decision thresholds and evaluation metrics. The framework operates as a frozen-model head, requires no modification to the underlying language model, and incurs minimal computational overhead. We further provide a theoretical perspective that connects FLaG to optimal evidence aggregation under heterogeneous error mechanisms, showing that the Bayes-optimal test statistic necessarily admits a log-marginal form and that FLaG constitutes a tractable approximation with a controllable error bound. Extensive experiments across multiple benchmarks and LLM backbones demonstrate that FLaG consistently achieves SOTA performance, while exhibiting robust transfer across datasets and models, and remaining effective under limited supervision.

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

↑