SOPO: Socratic Guided Policy Optimization for Span-Level Hallucination Detection

Jiawei Dong, Zilong Bai, Pengtian zhu, Peng Zhou
10/23/2026
cs.CLcs.AI
rlrlhf-rlvr-dpo

Official code: patsnap/SOPO (3 stars, Python, Apache-2.0, last commit 2026-10-27).

Abstract

Large Language Models (LLMs) have gained widespread adoption in various natural language processing tasks, but suffer from hallucination issues where they generate unfaithful or inconsistent content. While Reinforcement Learning with Verifiable Rewards (RLVR) has shown promising applications in reasoning tasks, its application to span-level hallucination detection is challenged by localization ambiguity, reward sparsity on hard examples, and uncontrolled length inflation.

Show full abstract

To address these issues, we introduce Socratic Guided Policy Optimization (SOPO), a multi-turn RL framework for robust hallucination detection. The key innovation of SOPO is a Socratic feedback mechanism, where a teacher model guides the reasoning trajectories during rollout by providing indirect hints inferred from the ground truth. This teacher-guided approach enables the model to generate more effective reasoning trajectories for hard examples, thus alleviating reward sparsity. Furthermore, we incorporate Turn-based Advantage Scaling to penalize verbosity bias, encouraging the model to develop efficient and autonomous reasoning capabilities. Empirical results on RAGTruth demonstrate that SOPO (4B) achieves state-of-the-art performance, surpassing leading proprietary models (e.g., GPT-5) and standard RL baselines, while obtaining higher reported mean scores than GRPO on four out-of-domain benchmarks, with mixed evidence against CAPO. We release our training and evaluation code alongside the 1.7B and 4B SOPO models at https://github.com/patsnap/SOPO.

View on arXivView PDF

Code Implementations(1)

patsnap/SOPOOfficial100%
Apache-2.0

Socratic Guided Policy Optimization for Span-Level Hallucination Detection

30Python, ANTLRJan 21, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{dong2026sopo,
  title  = {SOPO: Socratic Guided Policy Optimization for Span-Level Hallucination Detection},
  author = {Jiawei Dong and Zilong Bai and Pengtian zhu and Peng Zhou},
  year   = {2026},
  eprint = {2610.32212},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.32212v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.32212.svg)](https://codeofpaper.com/paper/2610.32212)

Discussion