Learning to Reason for Hallucination Span Detection
Hsuan Su, Ting-Yao Hu, Hema Swetha Koppula, Kundan Krishna, Hadi Pouransari, Cheng-Yu Hsieh, Cem Koc, Joseph Yitan Cheng, Oncel Tuzel, Raviteja Vemulapalli
TL;DR
This paper addresses the challenge of reliably detecting hallucination spans in LLM outputs by formulating hallucination span detection as a span-level reasoning task trained with reinforcement learning. It introduces RL4HS, which uses a span-F1–based reward within Group Relative Policy Optimization and couples it with Class-Aware Policy Optimization (CAPO) to balance class contributions. Empirical results on the RAGTruth benchmark show that RL4HS substantially outperforms pretrained reasoning and supervised finetuning baselines, with CAPO mitigating reward hacking and improving precision–recall balance. The work demonstrates that in-domain, span-level reasoning learned through RL is crucial for robust hallucination span detection and establishes a practical framework for integrating explicit reasoning into fine-grained detection tasks.
Abstract
Large language models (LLMs) often generate hallucinations -- unsupported content that undermines reliability. While most prior works frame hallucination detection as a binary task, many real-world applications require identifying hallucinated spans, which is a multi-step decision making process. This naturally raises the question of whether explicit reasoning can help the complex task of detecting hallucination spans. To answer this question, we first evaluate pretrained models with and without Chain-of-Thought (CoT) reasoning, and show that CoT reasoning has the potential to generate at least one correct answer when sampled multiple times. Motivated by this, we propose RL4HS, a reinforcement learning framework that incentivizes reasoning with a span-level reward function. RL4HS builds on Group Relative Policy Optimization and introduces Class-Aware Policy Optimization to mitigate reward imbalance issue. Experiments on the RAGTruth benchmark (summarization, question answering, data-to-text) show that RL4HS surpasses pretrained reasoning models and supervised fine-tuning, demonstrating the necessity of reinforcement learning with span-level rewards for detecting hallucination spans.
