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

基于Token身份的大语言模型灰盒幻觉检测

Gray-Box Hallucination Detection in LLMs with Token Identities

Technion(以色列理工学院)

Shaked Goldshtein, Yitzchak Grunbaum, Fabrizio Frasca, Guy Bar-Shalom, Haggai Maron

AI总结:

本文提出GURI检测器,结合候选token概率与token身份,在灰盒设置下提升了大语言模型幻觉检测的ROC-AUC,跨模型与跨数据集迁移性能优异。

摘要:

大语言模型常生成流畅但事实错误的输出。灰盒检测器可利用生成过程中输出的token概率统计识别此类幻觉,无需访问前沿模型未提供的白盒隐藏状态。但这类检测器通常仅依赖概率衍生表示,忽略候选token的身份,因此只能感知模型的不确定性程度,无法知晓模型对哪些内容不确定。例如当模型在“big”与“small”、“big”与“huge”间概率分布相同时,无法区分这两种情况。本文提出GURI(带身份的灰盒不确定性表示,Gray-box Uncertainty Representations with Identity),一种轻量灰盒幻觉检测器,将候选token概率与每个token的向量标识符结合,在保留灰盒设置可访问性与可迁移性的同时,明确模型考虑的备选内容。在三个开放权重模型和三个问答基准上,GURI较仅用概率的基线将平均测试ROC-AUC从72.09%提升至79.09%;在闭源GPT-4.1模型上,平均ROC-AUC从67.39%提升至71.84%。在三个开放权重模型的18次定向跨模型迁移中,GURI在17次中优于仅用概率的迁移基线(无需微调);在固定模型下,HotpotQA与TriviaQA间的跨数据集迁移中,GURI较迁移的LOS-Net将平均ROC-AUC提升3.76个百分点。

英文摘要:

Large language models often produce fluent but factually incorrect output. Gray-box detectors identify such hallucinations from the token-probability statistics emitted during generation, avoiding the need for white-box access to hidden states that frontier models do not provide. These detectors, however, typically rely only on probability-derived representations and ignore the identities of the candidate tokens. They can therefore observe how uncertain the model is, but not what it is uncertain about. Consequently, they cannot distinguish between a model that is torn between "big" and "small" and one that is torn between "big" and "huge" when the two pairs receive the same probability distribution. We introduce GURI (Gray-box Uncertainty Representations with Identity), a lightweight gray-box hallucination detector that combines candidate-token probabilities with per-token vector identifiers. This exposes which alternatives the model considered while preserving the accessibility and transferability of the gray-box setting. Across three open-weight models and three question-answering benchmarks, GURI increases mean test ROC-AUC from 72.09% to 79.09% over a probability-only baseline. On the closed-source GPT-4.1 model, mean ROC-AUC increases from 67.39% to 71.84%. Among the three open-weight models, GURI outperforms transferred probability-only baseline in 17 of 18 directed cross-model transfers without fine-tuning. For the three open-weight models, cross-dataset transfer between HotpotQA and TriviaQA with the model held fixed improves mean ROC-AUC over transferred LOS-Net by 3.76 points.

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

↑