arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13772cs.CLcs.AI
收藏

推理何处失效?通过隐藏状态运输几何进行分步幻觉检测

Where Does Reasoning Break? Step-Level Hallucination Detection via Hidden-State Transport Geometry

Rochester Institute of Technology(罗切斯特技术学院)

Tyler Alvarez, Ali Baheri

AI总结:

本文提出通过隐藏状态运输几何检测多步推理中的幻觉,通过构建对比性PCA镜头和BiLSTM学生模型,实现单次传递中错误定位,揭示轨迹动力学问题及分布偏移下的对比运输边际保持挑战。

摘要:

大型语言模型在多步推理中会出现幻觉,但现有检测器多在轨迹层面操作,仅对完整输出分配一个置信度分数,无法定位首个错误,且通常需要多次采样完成。本文将幻觉视为单次正向传递中生成的隐藏状态轨迹属性。正确推理沿稳定流形进行局部一致转换;首个错误表现为运输成本远离该流形的局部偏离。我们通过一个标签条件的教师模型构建轨迹特定的对比性PCA镜头,并用七种几何转换特征对每一步进行评分,以及一个从教师模型中蒸馏得到的可部署BiLSTM学生模型,该模型在无推理时间标签的情况下操作原始隐藏状态。我们证明对比性PCA是运输分离目标下的最优投影,且单次传递中错误定位在首个错误创建正运输边际超过先前正确转换时成立。在ProcessBench、PRM800K、HaluEval和TruthfulQA上,两个模型在领域内优于基于熵、探测和注意力的基线;教师模型在语言模型和数据集间稳定转移,而学生模型在偏移下崩溃,这一差距由我们的蒸馏理论预测。这些结果将分步幻觉检测重新定义为轨迹动力学问题,并识别出部署的主要障碍:在分布偏移下保持对比运输边际。

英文摘要:

Large language models hallucinate during multi-step reasoning, but most existing detectors operate at the trace level: they assign one confidence score to a full output, fail to localize the first error, and often require multiple sampled completions. We frame hallucination instead as a property of the hidden-state trajectory produced during a single forward pass. Correct reasoning moves through a stable manifold of locally coherent transitions; a first error appears as a localized excursion in transport cost away from this manifold. We operationalize this view with a label-conditioned teacher that builds a trace-specific contrastive PCA lens and scores each step with seven geometric transition features, and a deployable BiLSTM student distilled from the teacher that operates on raw hidden states without inference-time labels. We prove that contrastive PCA is the optimal projection for a transport-separation objective between first error and correct states, and that single-pass first error localization holds whenever the first error creates a positive transport margin over preceding correct transitions. On ProcessBench, PRM800K, HaluEval, and TruthfulQA, both models outperform entropy-based, probing-based, and attention-based baselines in-domain; the teacher transfers stably across language models and datasets, while the student collapses under shift, a gap our distillation theory predicts. These results recast step-level hallucination detection as a problem of trajectory dynamics and identify the central obstacle to deployment: preserving the contrastive transport margin under distribution shift.

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

↑