arXiv:2505.12886cs.AIcs.CL2025-05被引 35

提出新方法检测并减少大模型推理中的虚假逻辑错误

Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspective

  • 用推理得分量化深层思维深度,区分浅层模式匹配与真实推理
  • 发现两类推理幻觉模式:早期推理深度波动和错误回溯错误步骤
  • 设计新算法提升推理质量,适合需要高可信推理的应用

大型推理模型在多步推理任务中表现出色,但随之出现了一种更隐蔽的错误——推理幻觉:逻辑连贯却事实错误的推理链会导向看似合理实则错误的结论。这类错误嵌入在结构化推理中,难以察觉且危害更大。本文从机制视角研究推理幻觉,提出推理得分,通过测量模型深层输出在词表空间的对数概率差异,有效区分浅层模式匹配与真正深层推理。基于该得分,在ReTruthQA数据集上分析发现两类关键幻觉模式:推理初期深度波动、错误回溯至先前错误步骤。据此提出推理幻觉检测(RHD)框架,跨多个领域达到当前最佳性能。为缓解幻觉,进一步引入GRPO-R算法,通过基于势能的规划,在步骤级奖励中加入深层推理信号。理论分析表明其泛化能力更强,实验显示推理质量提升且幻觉率显著降低。

原文摘要 · Abstract (English)

Large Reasoning Models (LRMs) have shown impressive capabilities in multi-step reasoning tasks. However, alongside these successes, a more deceptive form of model error has emerged--Reasoning Hallucination--where logically coherent but factually incorrect reasoning traces lead to persuasive yet faulty conclusions. Unlike traditional hallucinations, these errors are embedded within structured reasoning, making them more difficult to detect and potentially more harmful. In this work, we investigate reasoning hallucinations from a mechanistic perspective. We propose the Reasoning Score, which quantifies the depth of reasoning by measuring the divergence between logits obtained from projecting late layers of LRMs to the vocabulary space, effectively distinguishing shallow pattern-matching from genuine deep reasoning. Using this score, we conduct an in-depth analysis on the ReTruthQA dataset and identify two key reasoning hallucination patterns: early-stage fluctuation in reasoning depth and incorrect backtracking to flawed prior steps. These insights motivate our Reasoning Hallucination Detection (RHD) framework, which achieves state-of-the-art performance across multiple domains. To mitigate reasoning hallucinations, we further introduce GRPO-R, an enhanced reinforcement learning algorithm that incorporates step-level deep reasoning rewards via potential-based shaping. Our theoretical analysis establishes stronger generalization guarantees, and experiments demonstrate improved reasoning quality and reduced hallucination rates.

推理幻觉大模型检测强化学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。