通过答案一致性表示塑造进行推理轨迹的幻觉检测
Harnessing Reasoning Trajectories for Hallucination Detection via Answer-agreement Representation Shaping
AI总结:
本文提出ARS方法,通过塑造答案一致性表示来提高推理轨迹中幻觉检测的准确性,无需人工标注即可提升检测性能。
摘要:
大型推理模型(LRMs)常常生成长且看似连贯的推理轨迹,但仍然会产生错误答案,这使得幻觉检测具有挑战性。虽然轨迹包含有用信号,但直接使用轨迹文本或普通隐藏状态进行检测是脆弱的:轨迹形式各异,检测器可能过度拟合于表面模式而非答案有效性。我们引入了答案一致性表示塑造(ARS),通过显式编码答案稳定性来学习检测友好的轨迹条件表示。ARS通过小的潜在干预生成反事实答案,具体来说,扰动轨迹边界嵌入,并通过生成的答案是否与原始答案一致来标记每个扰动。然后,它学习将答案一致的状态聚类在一起,将答案不一致的状态分开,暴露潜在的不稳定性,这表明幻觉风险。塑造的嵌入可以与现有的基于嵌入的检测器无缝对接,并且在训练期间不需要人工标注。实验表明,ARS一致地提高了检测效果,并在强大的基线模型上取得了显著的提升。
英文摘要:
Large reasoning models (LRMs) often generate long, seemingly coherent reasoning traces yet still produce incorrect answers, making hallucination detection challenging. Although trajectories contain useful signals, directly using trace text or vanilla hidden states for detection is brittle: traces vary in form and detectors can overfit to superficial patterns rather than answer validity. We introduce Answer-agreement Representation Shaping (ARS), which learns detection-friendly trace-conditioned representations by explicitly encoding answer stability. ARS generates counterfactual answers through small latent interventions, specifically, perturbing the trace-boundary embedding, and labels each perturbation by whether the resulting answer agrees with the original. It then learns representations that bring answer-agreeing states together and separate answer-disagreeing ones, exposing latent instability indicative of hallucination risk. The shaped embeddings are plug-and-play with existing embedding-based detectors and require no human annotations during training. Experiments demonstrate that ARS consistently improves detection and achieves substantial gains over strong baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。