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

Researchers have introduced RL4HS, a reinforcement learning framework that trains Large Language Models (LLMs) to detect specific hallucinated text spans through explicit reasoning. By combining Group Relative Policy Optimization (GRPO) with a novel "Class-Aware" balancing technique, the authors demonstrate that a specialized 7B model can outperform much larger general-purpose reasoning models and traditional fine-tuning methods in identifying exactly where a model has gone off the rails.

What Problem Does This Paper Address?

Most hallucination detection research treats the problem as a binary "yes/no" question: Does this response contain a lie? However, for real-world applications like AI-assisted editing or factual verification, we need to know exactly which words or sentences are unsupported by the source text.

Detecting these "hallucination spans" is significantly harder than binary classification. It requires a multi-step cognitive process: identifying individual claims, cross-referencing them with a source document, and precisely marking the boundaries of the error. While Chain-of-Thought (CoT) reasoning helps LLMs solve math problems, simply asking a vanilla LLM to "think" before detecting hallucinations doesn't always yield better results. The authors set out to determine if we can teach a model a specific reasoning process for this task using reinforcement learning.

Methods

The authors propose RL4HS (Reinforcement Learning for Hallucination Spans), which uses the following components:

  1. Reasoning-based Detection: Instead of just outputting a list of errors, the model is trained to generate intermediate reasoning steps (CoT) before producing a JSON list of hallucinated spans.
  2. GRPO (Group Relative Policy Optimization): Borrowing from the logic used to train models like DeepSeek-R1, the authors use GRPO. Unlike standard RL methods (like PPO) that require a complex "critic" model to estimate rewards, GRPO samples a group of outputs for the same prompt and calculates the "advantage" of an output based on how much better it is than the group average.
  3. Span-F1 Reward: The model is rewarded based on the F1 score of its predicted spans compared to human-labeled ground truth.
  4. CAPO (Class-Aware Policy Optimization): This is the paper's key technical innovation. The authors noticed a "reward hacking" problem: because most text is not hallucinated, models learned that they could get a decent reward by simply predicting nothing (high precision, zero recall). CAPO introduces a scaling factor ($\alpha$) that dampens the reward for "non-hallucination" predictions, forcing the model to be more courageous in identifying actual errors.

Key Insights and Ideas

  • The "Potential" of CoT: The authors found that while a single CoT attempt might not be better than a direct answer, if you sample a CoT model multiple times ($K$ samples), the "best" answer in that group is significantly better than the best answer from a non-reasoning model. This suggested that the capacity for better detection was there; it just needed to be "unlocked" via RL.
Performance of models with and without CoT across multiple samples K
  • The Asymmetry of Hallucination: It is much easier for a model to correctly identify a "clean" sentence than to precisely locate a hallucinated one. This asymmetry leads to "lazy" models during training. CAPO effectively re-balances the "difficulty" of these two classes by adjusting the advantage scores.
Density of advantage scores showing the imbalance between hallucination and non-hallucination predictions
  • Specialization Beats Scale: One of the most striking findings is that a 7B parameter model trained with RL4HS consistently outperformed massive, state-of-the-art reasoning models like QwQ-32B and GPT-o3. This suggests that for niche, high-precision tasks like hallucination detection, "in-domain" reasoning training is more effective than general-purpose "intelligence."

Key Results

  • Superior Performance: RL4HS-7B achieved an average 55.9 Span-F1, significantly higher than Supervised Fine-Tuning (SFT) at 50.1 and the base Qwen2.5-7B model at 16.2.
  • Outperforming Giants: The RL4HS-7B model beat proprietary heavyweights, including GPT-4o-mini (33.1 F1) and o3 (51.2 F1) on the RAGTruth benchmark.
  • Qualitative Reasoning: Case studies showed that after RL training, the model's reasoning traces became highly systematic—identifying explicit claims, checking them against specific data points, and concluding with a verdict that mirrored human heuristic pipelines.

Limitations and Future Work

  • Reasoning Errors: Despite the improvements, the model still occasionally makes "silly" mistakes, such as getting confused when converting between 24-hour and 12-hour clock formats during the reasoning phase.
  • Hyperparameter Sensitivity: The CAPO scaling factor ($\alpha$) requires manual tuning. Future work could explore ways to dynamically adjust this balance during training.
  • Base Model Dependency: The method relies on the base model having at least some latent reasoning capability. It remains to be seen how well this scales down to even smaller "edge" models (e.g., <3B parameters).

By shifting the focus from "what" the model detects to "how" it reasons about the detection, RL4HS provides a promising path toward more transparent and reliable LLM deployments.

Summary updated

BibTeX
@inproceedings{su2026learning,
  author = {Hsuan Su and Ting-Yao Hu and Hema Swetha Koppula and Kundan Krishna and Hadi Pouransari and Cheng-Yu Hsieh and Cem Koc and Joseph Yitan Cheng and Oncel Tuzel and Raviteja Vemulapalli},
  title = {{Learning to Reason for Hallucination Span Detection}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ECAK3P92eg},
}
Figure