半事实信用增强策略优化
研究论文 · 2026/10/08
带有可验证奖励的强化学习(RLVR)提升了大语言模型的推理能力,但其预测仍对与任务无关的提示特征敏感。我们通过保持底层问题及答案不变的反事实提示干预研究这种敏感性,发现词元级敏感性存在显著差异,并在解码时抑制高漂移词元候选可在不更新模型权重的情况下提升推理准确率。这些发现揭示了组相对策略优化(GRPO)的局限:它将同一结果推导的优势分配给每个响应词元,可能同时强化潜在虚假依赖与有用推理。基于此,我们提出半事实信用增强策略优化(SCAPO),一种受因果启发的 GRPO 变体,将半事实稳定性纳入词元级信用分配。SCAPO 测量半事实干预下固定响应的词元概率漂移,并使用归一化稳定性分数在训练早期降低相对不稳定词元的优势,同时不因稳定性本身给予额外信用。在 Qwen3-4B-Base 和 Qwen3-1.7B-Base 上,SCAPO 相比 GRPO 在 AIME 2024-2026 准确率上分别提升 5.63 和 4.17 个百分点。在两个模型规模上,SCAPO 在多数评估的数学基准以及所有评估的分布外基准上均取得所比较方法中的最佳结果。这些结果表明,半事实稳定性为通过 RLVR 中更细粒度信用分配提升推理与泛化提供了有效训练信号。代码见 https://github.com/DtYXs/SCAPO。
该工作将因果启发的半事实稳定性引入 RLVR 的词元级信用分配,提出 SCAPO,在多个数学与分布外基准上优于 GRPO,为提升大语言模型推理与泛化提供了细粒度训练信号。
Reinforcement learning with verifiable rewards (RLVR) has improved the reasoning capabilities of large language models (LLMs), yet their predictions remain sensitive to task-irrelevant prompt features. We investigate this sensitivity through semifactual prompt interventions that preserve the underlying problem and its answer. Our analysis reveals substantial variation in token-level sensitivity and shows that suppressing high-drift token candidates during decoding improves reasoning accuracy without updating model weights. These findings highlight a limitation of Group Relative Policy Optimization (GRPO), which assigns the same outcome-derived advantage to every response token and may reinforce potential spurious dependence alongside useful reasoning. Motivated by this observation, we introduce Semifactual Credit-Augmented Policy Optimization (SCAPO), a causally inspired variant of GRPO that incorporates semifactual stability into token-level credit assignment. SCAPO measures token probability drift for fixed responses under semifactual interventions and uses normalized stability scores to reduce advantages for relatively unstable tokens during early training, while granting no additional credit for stability alone. On Qwen3-4B-Base and Qwen3-1.7B-Base, SCAPO improves AIME 2024-2026 accuracy over GRPO by 5.63 and 4.17 percentage points, respectively. At both model scales, SCAPO achieves the best results on most evaluated mathematics benchmarks and all evaluated out-of-distribution benchmarks among the compared methods. These results suggest that semifactual stability provides an effective training signal for improving reasoning and generalization through finer-grained credit assignment in RLVR. The code is available at https://github.com/DtYXs/SCAPO.