arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.04137cs.CLcs.LG
收藏

利用方差信号检测词元级幻觉:一种无参考方法

Detecting Token-Level Hallucinations Using Variance Signals: A Reference-Free Approach

ThinkAnalytics

Keshav Kumar

AI总结:

提出一种基于多次生成中词元对数概率方差的无参考幻觉检测框架,在SQuAD v2上跨三个模型验证,可有效突出输出不稳定性并适配多领域。

摘要:

大型语言模型(LLMs)在各种任务中展现了令人印象深刻的生成能力,但仍容易产生幻觉,即自信生成但事实上不正确的输出。我们提出了一种无参考、词元级的幻觉检测框架,该框架利用多次随机生成中词元对数概率的方差。与需要真实参考或句子级验证的先前方法不同,我们的方法与模型无关、可解释,并适用于实时或事后分析。我们在SQuAD v2数据集中的不可回答问题提示上评估了我们的方法,并在三个不同规模的自回归模型上进行了基准测试:GPT-Neo 125M、Falcon 1B和Mistral 7B。通过定量指标和可视化诊断,我们表明词元级方差能可靠地突出模型输出的不稳定性,并与幻觉模式相关。我们的框架轻量级、可复现且适应多个领域,为分析LLMs的生成可靠性提供了一种有价值的诊断工具。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive generative capabilities across diverse tasks but remain susceptible to hallucinations, confidently generated yet factually incorrect outputs. We introduce a reference-free, token-level hallucination detection framework that leverages the variance in token log-probabilities across multiple stochastic generations. Unlike prior methods that require ground-truth references or sentence-level verification, our approach is model-agnostic, interpretable, and suited for real-time or post-hoc analysis. We evaluate our method on unanswerable question prompts from the SQuAD v2 dataset and benchmark across three autoregressive models of varying scales: GPT-Neo 125M, Falcon 1B, and Mistral 7B. Through both quantitative metrics and visual diagnostics, we show that token-level variance reliably highlights instability in model outputs and correlates with hallucination patterns. Our framework is lightweight, reproducible, and adaptable to multiple domains, offering a valuable diagnostic tool for analyzing generative reliability in LLMs.

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

↑