arXiv:2610.32212cs.CLOct 2026

Manuscript Offprint

arXiv:2610.32212

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

Jiawei Dong, Zilong Bai, Pengtian zhu, Peng Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Retrieval-Augmented Generation (RAG) has emerged as a dominant paradigm for mitigating hallucinations in Large Language Models (LLMs) by grounding generation in external knowledge. However, even with retrieved context, LLMs inevitably produce factually inconsistent content [21, 31]. Detecting these hallucinations at a fine-grained level, specifically by pinpointing the exact hallucinated spans, is critical for ensuring the reliability and safety of real-world applications.

While Supervised Fine-Tuning (SFT) has established a baseline for this task, recent research has shifted towards Reinforcement Learning (RL), particularly outcome-based methods like Reinforcement Learning with Verifiable Rewards (RLVR), to further align models with complex reasoning requirements.

Prior research has largely focused on case-level (binary) hallucination detection using SFT or RL [4]. For instance, FaithLens [18] demonstrated that an 8B model, trained via a rigorous four-stage pipeline, could rival proprietary models on case-level tasks. To address the granularity gap, RL4HS [20] pioneered the application of RL to span-level detection, utilizing Class-Aware Policy Optimization (CAPO) to outperform proprietary models.

While recent guided-RL and iterative-refinement paradigms aim to enhance reasoning, they exhibit structural mismatches for objective, fine-grained hallucination detection. Specifically, unified models

Preprint.

[25] compromise diagnostic objectivity due to role conflicts when evaluating their own generations; Existing Socratic-RL frameworks [24] rely on post-hoc distillation instead of providing dynamic, instance-specific hints during active RL exploration; and direct feedback methods [29] supply explicit single-turn corrections, causing ground-truth leakage that bypasses autonomous reasoning process.

Consequently, in the absence of suitable guided frameworks, standard RLVR continues to serve as the default baseline. Yet, our analysis demonstrates that applying such scalar-reward RL directly to fine-grained span detection is inherently hindered by three fundamental limitations:

Ambiguity of Localization Signals. From a reward modeling perspective, systematic analyses of RLHF have highlighted the fundamental limitations of scalar reward models regarding expressiveness and feedback sparsity [2]. In the specific context of span-level hallucination detection, this limitation is amplified: a single scalar reward is forced to represent a complex, comprehensive evaluation of accuracy across three distinct dimensions, namely boundary alignment, semantic completeness, and factual discrimination. Consequently, using such a coarse-grained proxy for a fine-grained task introduces significant ambiguity. For instance, particularly in samples where the target span consists of only a few words, a deviation of a single token can trigger drastic drops in the reward score (e.g., F1 dropping from 1.0 to 0.2), resulting in instability in the training process. This instability is supported in RL4HS [20], where the direct application of span-F1 as a reward required the introduction of CAPO to mitigate reward imbalance. This evidence further confirms that coarse scalar signals induce optimization instability and bias in hallucination span detection.

Reward Sparsity on Hard Examples. The model struggles to learn from hard examples due to the sparsity of the reward signal. With a small group size (G), the model consistently receives a zero reward across epochs for difficult queries, causing performance plateauing in the later stages of training. Conversely, simply increasing G to improve exploration introduces a trade-off: it generates a large number of “zero-advantage” groups for easy samples (where all rollouts are correct), which provides negligible gradient information [30, 12]. This results in wasted computational resources and significantly reduces overall training efficiency [7].

Uncontrollable Reasoning Length Inflation. During RLVR training, length of reasoning chains exhibits a tendency to inflate uncontrollably as training progresses. This phenomenon is not merely accidental but appears to be a structural limitation of current RL objectives. Prior analyses suggest that this verbosity is largely an optimization artifact: PPO/GRPO-style objectives systematically drive the policy toward longer outputs, particularly when the model struggles with correctness, leading to a persistent preference for lengthy generations [6, 3]. This aligns with recent findings on “systematic length inflation,” where models trade off efficiency for length by generating redundant “filler” tokens without improving accuracy [17]. Consequently, without explicit regularization, this length inflation is bounded only by the context window. For practical applications, such verbosity creates severe computational bottlenecks and drastically increases inference latency.

To address these limitations, drawing inspiration from human pedagogy, we propose Socratic Guided Policy Optimization (SOPO). Central to SOPO is a teacher LLM that engages the student in a multi-turn Socratic dialogue, offering step-wise analysis and guiding questions based on the student's incorrect reasoning steps without revealing the ground truth. This iterative interaction transforms sparse outcome rewards into dense, constructive supervision. Complementing this, we introduce a Turn-based Advantage Scaling mechanism that explicitly penalizes verbosity and reliance on multi-turn feedback, encouraging the model to achieve efficient, autonomous detection in the initial turn.

We validate the effectiveness of our approach on the RAGTruth benchmark [13]. Empirical evaluations demonstrate that SOPO establishes a new state-of-the-art with remarkable training efficiency.

Our main contributions are summarized as follows:

• We identify the limitations of vanilla RLVR in span-level hallucination detection task and propose SOPO, a framework that incorporates a Socratic-style feedback mechanism. By offering analysis and guiding questions without ground truth leakage, we transform the training process from passive reward reception to active iterative reasoning refinement, effectively preventing shortcut learning while encouraging intrinsic self-correction.

• We introduce Turn-based Advantage Scaling, a simple yet effective technique that explicitly penalizes verbosity and reliance on multi-turn feedback. This mechanism reshapes the advantage to encourage autonomous and efficient reasoning, addressing the issue of reasoning length inflation common in RL training.

• Experiments on the RAGTruth and other out-of-distribution benchmark demonstrate that SOPO (4B) achieves superior performance. Notably, despite its compact size (4B parameters), SOPO outperforms larger proprietary models (e.g., GPT-5, o3) and surpasses the previous state-of-the-art by 4.4 points in overall F1 on RAGTruth test set, implying the effectiveness of our Socratic RL paradigm.

References (34)