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

Jiawei Dong, Zilong Bai, Pengtian zhu, Peng ZhouNeurIPS 2026

TL;DR

Even when grounded in retrieved documents, Large Language Models (LLMs) still hallucinate—and pinpointing the exact unfaithful phrases (spans) is notoriously tricky for standard reinforcement learning. Enter SOPO (Socratic Guided Policy Optimization), a training framework where a "teacher" model nudges a smaller "student" model toward the truth using Socratic questioning rather than handing over the answers. The result? A compact 4-billion-parameter model that beats giants like GPT-5 and o3 at catching hallucinations, while thinking faster and using nearly 40% fewer tokens.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is supposed to keep LLMs honest by giving them reference material, yet models still sneak in unsubstantiated claims. Simply flagging an entire paragraph as "bad" isn't enough for high-stakes applications; we need span-level hallucination detection—highlighting the exact words where the model went off-script.

Recently, Reinforcement Learning with Verifiable Rewards (RLVR)—giving a model a programmatic thumbs-up or thumbs-down on its final output—has worked wonders for math and coding. However, applying standard RLVR to span-level detection hits three brick walls:

  1. Localization Ambiguity: Compressing complex judgments (exact boundaries, factual accuracy) into a single scalar score (like character-level F1) is brittle; missing a single word on a short span can tank the reward, destabilizing training.
  2. Reward Sparsity on Hard Examples: On tough queries, the model repeatedly guesses wrong, gets zero reward, and learns nothing.
  3. Length Inflation: Current RL algorithms accidentally incentivize models to ramble, generating bloated chains of "filler" reasoning tokens that skyrocket inference latency without improving accuracy.

Methods

Instead of leaving the student model (Qwen3-4B) to stumble in the dark with sparse scalar rewards, SOPO turns training into an interactive classroom led by a frozen teacher LLM (Qwen3-Next-80B).

Figure 1: Overview of SOPO.

While SOPO uses standard Group Relative Policy Optimization (GRPO—a critic-free RL algorithm) as its backbone, it introduces two clever twists during training:

  • Socratic Multi-Turn Rollouts: When the student's predicted hallucination spans fall below a quality threshold, the teacher steps in (stochastically, so the student doesn't get needy). Crucially, the teacher never leaks the ground truth. Instead, it provides a step-wise analysis of where the student's logic faltered alongside a guiding question, prompting the student to try again.
  • Turn-based Advantage Scaling & Averaged Rewards: We don't want a model that needs a teacher at deployment—inference must remain a fast, single-turn affair. To enforce autonomy and conciseness, SOPO averages rewards across turns (preventing the student from lazily bombing turn one just to fish for hints) and scales down the RL advantage for every extra turn taken. Solving it solo on turn one yields maximum credit.

Datasets

  • Training & Primary Evaluation: RAGTruth, a human-annotated benchmark pairing source documents with LLM responses across Summarization, Question Answering, and Data-to-Text tasks (split into ~5k samples for cold-start supervised fine-tuning and 10k for RL, with 2,700 test samples).
  • Out-of-Domain (OOD) Evaluation: PsiloQA, Math-Shepherd-614, LLM-AggreFact, and HaluEval are used to test generalization. No new benchmarks are introduced.

Key Insights and Ideas

  • Questions beat answers (and lectures): When the authors allowed the teacher to leak the ground truth during training, training rewards shot up early, but test performance dropped—the student simply memorized shortcuts. Even more surprisingly, giving the student only a guiding question worked nearly as well as full Socratic feedback, whereas giving only passive analytical critiques tanked performance (59.49 vs. 63.31 F1). Heuristic questions force genuine self-correction.
  • Interactive RL crushes offline distillation: Fine-tuning the student directly on reasoning traces generated offline by the 80B teacher yielded a 50.09 Span-F1, losing to SOPO by over 13 points. Correcting a student's own live mistakes on-policy is vastly more effective than making it mimic static expert transcripts.
  • Healthy curiosity prevents "entropy collapse": In standard RL (GRPO/CAPO), policy entropy—a measure of how diversely the model explores—plummets toward zero, causing learning to plateau. SOPO maintains high entropy throughout training, keeping exploration alive.
Comparison of task reward, policy entropy, and test F1 across training, showing SOPO avoiding entropy collapse.
  • Reasoning brains matter more than brawn: A newer 4B teacher with strong reasoning skills guided the student better than a legacy 8B teacher, proving that intrinsic reasoning capability matters more than raw parameter count.

Key Results

At test time—running completely solo in a single turn without the teacher—SOPO-4B sets a new state-of-the-art on RAGTruth:

  • Span-Level Detection: Achieves 63.3 Overall F1, beating much larger proprietary models like GPT-5 w/ CoT (42.9) and o3 w/ CoT (51.8), the previous top framework LettuceDetect-Large (58.9), and same-start RL baselines GRPO (60.2) and CAPO (60.4).
  • Case-Level Generalization: Hits 84.8 Overall F1 on binary hallucination detection, outperforming dedicated case-level detectors.
  • Efficiency: For a modest one-time training compute overhead (+18.9% FLOPs), SOPO eliminates reasoning bloat—keeping outputs steady around ~1,700 tokens, cutting average token generation by 39.9%, and slashing inference latency by 47.0% compared to GRPO. It also converges roughly 3x faster than CAPO.
  • OOD Generalization: Outperforms GRPO across all four OOD benchmarks (e.g., 89.13 vs. 86.19 Span-F1 on Math-Shepherd-614), though comparisons against CAPO out-of-domain are mixed.

Limitations and Future Work

  • Granular Credit Assignment: SOPO smooths out sparse scalar rewards via multi-turn hints, leaving finer-grained techniques—like integrating explicit Process Reward Models (PRMs) to score individual reasoning steps—for future work.
  • Open-Ended Tasks: While penalizing multi-turn verbosity works brilliantly for verification tasks, the authors note it might accidentally stifle the messy, iterative trial-and-error exploration needed in open-ended domains like complex coding.
  • Training Seed Variance: Due to high compute costs, statistical significance was measured via bootstrap across repeated inference runs on fixed checkpoints rather than across multiple independent RL training seeds.

Summary updated

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. 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.
BibTeX
@inproceedings{dong2026sopo,
  author = {Jiawei Dong and Zilong Bai and Pengtian zhu and Peng Zhou},
  title = {{SOPO: Socratic Guided Policy Optimization for Span-Level Hallucination Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qL39tYekRp},
}
Figure