Semifactual Credit-Augmented Policy Optimization

Junshu Pan, Zhizhang Fu, Shulin Huang, Yiran Ding, Zifan Cheng +3 more
9/30/2026
cs.LGcs.AIcs.CL
rlrlhf-rlvr-dpo

Official code: DtYXs/SCAPO (1 star, Python, last commit 2026-10-21).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

DtYXs/SCAPOOfficial100%

Official repository for “Semifactual Credit-Augmented Policy Optimization”: refining token-level credit assignment in RLVR through answer-preserving prompt perturbations.

10Python, HTMLSep 30, 20261 months ago
large-language-modelsllm-trainingpost-trainingreinforcement-learning

Similar Papers

Cite this paper

@article{pan2026semifactual,
  title  = {Semifactual Credit-Augmented Policy Optimization},
  author = {Junshu Pan and Zhizhang Fu and Shulin Huang and Yiran Ding and Zifan Cheng and Wenqi Shao and Qiaosheng Zhang and Yue Zhang},
  year   = {2026},
  eprint = {2609.40360},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.40360v1}
}

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/2609.40360.svg)](https://codeofpaper.com/paper/2609.40360)

Discussion