Semifactual Credit-Augmented Policy Optimization

Junshu Pan, Zhizhang Fu, Shulin Huang, Yiran Ding, Zifan Cheng, Wenqi Shao, Qiaosheng Zhang, Yue ZhangarXiv 2026

TL;DR

Large language models (LLMs) often rely on "spurious" prompt features—like specific phrasing or typos—rather than robust logic to solve problems. SCAPO (Semifactual Credit-Augmented Policy Optimization) addresses this by penalizing tokens that are unstable under "semifactual" prompt changes during reinforcement learning. This finer-grained credit assignment leads to significantly better reasoning accuracy and out-of-distribution generalization on competitive mathematics benchmarks.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR), exemplified by methods like DeepSeek-R1's GRPO, has drastically improved LLM reasoning. However, these methods typically suffer from a coarse "credit assignment" problem: if a model produces a correct final answer, every token in that response receives the same positive reward.

This can inadvertently reinforce "brittle" reasoning—steps that happen to lead to the right answer for one specific prompt but would fail if the prompt were slightly paraphrased. The authors demonstrate that LLMs are highly sensitive to these task-irrelevant features. Interestingly, they found that simply suppressing tokens that show high probability "drift" under different prompt versions can improve accuracy by over 14 percentage points without any training at all (see Figure 3).

Semifactual filtering improves rollout accuracy by suppressing high-drift tokens.

Methods

SCAPO builds on the Group Relative Policy Optimization (GRPO) framework but adds a causally inspired token-level correction. The process involves:

  1. Semifactual Probing: For each training prompt, the authors generate four "semifactual" variants—versions that change the wording, add minor typos, or wrap the problem in a new scenario while keeping the underlying math and answer identical.
  2. Drift Measurement: The model's own response is "teacher-forced" under these variants. The authors measure how much the probability of each token changes (drifts) across the different versions.
  3. Stability Signal Construction: These drifts are normalized into a stability score.
  4. Credit Augmentation: This score is added to the standard GRPO advantage as a negative-only correction. Crucially, SCAPO does not reward stability (since a model can be stably wrong); it only reduces the reward for tokens that are relatively unstable.
Overview of the SCAPO framework, from prompt intervention to credit-augmented policy update.

This augmentation is applied during the early phase of training to shape the model's trajectory selection toward more robust reasoning paths.

Datasets

  • Training: The models were trained on DAPO-Math-17K, a curated dataset of ~17,000 competition-level math problems.
  • Evaluation: A wide array of math benchmarks was used, including AIME (2024–2026), AMC (2023–2025), HMMT, BRUMO, SMT, Omni-Math, Minerva, and OlympiadBench.
  • Out-of-Distribution (OOD): To test robustness, the authors used NoOp-AIME (distractor-augmented), ThinkBench-AIME (perturbed), and GPQA-Diamond (graduate-level science).

Key Insights and Ideas

  • Heterogeneous Sensitivity: Not all tokens are equally brittle. The authors found that "reflection markers" (e.g., "Wait," "However") and discourse connectives are significantly more sensitive to prompt changes than mathematical symbols or numbers.
Figure 2: Semifactual instability varies across tokens. (a) Probability transitions under semifactual prompt interventions. (b) Distribution of mean token drift. (c) Relative category mean drift normalized by the overall mean, with reflection markers and discourse connectives showing higher sensitivity. Results use frozen Qwen3-4B-Base before RL.
  • Stability $\neq$ Correctness: A key design choice in SCAPO is the negative-only correction. Rewarding stability alone could reinforce consistently biased but wrong reasoning. By only penalizing instability, the model is forced to find paths that are both correct and invariant to prompt noise.
  • Efficiency: Despite evaluating multiple prompt variants, the "teacher-forcing" approach is computationally cheap. The authors report that semifactual probing accounts for only 1.8% of total training time.

Key Results

SCAPO consistently outperformed GRPO and other state-of-the-art RLVR baselines across multiple model scales (Qwen3-1.7B and 4B).

  • Accuracy Gains: On the AIME 2024–2026 benchmark, SCAPO improved accuracy over GRPO by 5.63 percentage points (4B model) and 4.17 percentage points (1.7B model).
  • Convergence Speed: SCAPO reached GRPO’s final accuracy in fewer than half the optimization steps, as shown in the training curves in Figure 1.
  • Robustness: The method showed strong generalization to OOD tasks, notably improving performance on the graduate-level science benchmark GPQA-Diamond by over 6 percentage points on the 4B model.
Figure 1: SCAPO achieves the highest AIME accuracy on the two Qwen3 base models. Aggregate AIME 2024–2026 accuracy for SCAPO, GRPO, and FIPO. SCAPO reaches GRPO’s final accuracy in fewer than half as many policy optimization steps and achieves higher final accuracy than baselines at both model scales. Shaded regions mark SCAPO’s semifactual credit augmentation phase.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Scale: The experiments were limited to relatively small models (1.7B and 4B parameters). Testing SCAPO on frontier-scale models is a logical next step.
  • Domain: While highly effective for mathematical and scientific reasoning, the impact on general-purpose chat or creative writing remains to be seen.
  • Architecture: The study focused on dense models; future work could investigate how semifactual stability interacts with Mixture-of-Experts (MoE) architectures.

Summary updated

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