Skip to content

SCAPO: Improving token-level credit assignment for GRPO with counterfactual stabilitySemifactual Credit-Augmented Policy Optimization

Paper Tracker· arXiv:2609.40360· Junshu Pan, Zhizhang Fu, Shulin Huang, Yiran Ding, Zifan Cheng, Wenqi Shao, Qiaosheng Zhang, Yue Zhang·Indexed by this site · 2026-10-04· Originally publishedAlignment

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

SCAPO uses half-truth stability to downweight the advantage of relatively unstable tokens in GRPO. On Qwen3-4B-Base, AIME 2024–2026 accuracy is 5.63 percentage points higher than GRPO.

Questions
RLVR has improved large model reasoning, but predictions are still affected by task-irrelevant prompt features. GRPO assigns the same outcome advantage to every token, which may reinforce both useful reasoning and potential spurious dependencies.
Methods
SCAPO measures token probability drift under semi-factual interventions on fixed answers, normalizes within groups, takes only the negative part of the stability score, adds it to the GRPO advantage with stop-gradient, and uses it only in early training.
Experiments and results
On Qwen3-4B-Base and 1.7B-Base, SCAPO's AIME 2024–2026 accuracy is 5.63 and 4.17 percentage points higher than GRPO, respectively, and it achieves the highest accuracy among compared methods on most math benchmarks and all out-of-distribution benchmarks at both scales.
Limitations and future work
Training is limited to dense Qwen3 models of 1.7B and 4B, with data from DAPO-Math-17K math problems. The authors argue that larger models, MoE and hybrid architectures, and other domains remain to be evaluated. GPQA-Diamond is used only as evidence of scientific reasoning transfer.
Experimental setupQwen3-4B-Base、Qwen3-1.7B-Base · DAPO-Math-17K、AIME 2024–2026 et al. · accuracy、Pass@k et al.
Evaluated models
Qwen3-4B-BaseQwen3-1.7B-Base
Benchmarks
DAPO-Math-17KAIME 2024–2026AMC 2023–2025HMMT 2025–2026BRUMO 2025SMT 2025Omni-MathMinervaOlympiadBenchNoOp-AIME 24–26ThinkBench-AIME 24–26GPQA-Diamond
Metrics
accuracyPass@kPass@128
AI summaryThe researchers propose Semifactual Credit-Augmented Policy Optimization (SCAPO), a token-level credit assignment method that introduces counterfactual stability on top of GRPO. Through counterfactual prompt interventions that keep the question and answer unchanged, the authors find clear differences in token-level sensitivity; suppressing high-drift token candidates improves reasoning accuracy without updating weights. GRPO, by contrast, assigns the same outcome advantage to every response token, which may reinforce both useful reasoning and spurious dependencies. SCAPO measures token probability drift of a fixed response under counterfactual interventions, uses a normalized stability score to reduce the advantage of relatively unstable tokens in early training, and does not give extra credit for stability itself. Code has been released.

The researchers propose Semifactual Credit-Augmented Policy Optimization (SCAPO), a token-level credit assignment method that introduces counterfactual stability on top of GRPO. Through counterfactual prompt interventions that keep the question and answer unchanged, the authors find clear differences in token-level sensitivity; suppressing high-drift token candidates improves reasoning accuracy without updating weights. GRPO, by contrast, assigns the same outcome advantage to every response token, which may reinforce both useful reasoning and spurious dependencies. SCAPO measures token probability drift of a fixed response under counterfactual interventions, uses a normalized stability score to reduce the advantage of relatively unstable tokens in early training, and does not give extra credit for stability itself. Code has been released.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    GRPO assigns the same outcome advantage to every token, which may reinforce task-irrelevant spurious dependencies.

    Token-level spurious dependencies in RLVR cannot be distinguished by a uniform outcome advantage; SCAPO uses semifactual stability for finer-grained credit assignment.

    • Scenario and importance: Reinforcement learning with verifiable rewards (RLVR) has improved large language model reasoning, with representative methods such as OpenAI o1 and DeepSeek-R1. Group Relative Policy Optimization (GRPO) optimizes with automatically verifiable outcomes and does not require process supervision. The authors cite recent evidence that RLVR can reduce reliance on spurious correlations and improve generalization under distribution shift, but robustness evaluations still show that models are sensitive to irrelevant information and input perturbations. The authors argue that how training factors affect RLVR generalization, and how to further improve it, remains underexplored.

    • Limitations of existing methods: The authors study spurious dependencies in RLVR at the token level. GRPO assigns the same outcome-derived advantage to every valid token in a response and does not directly account for token-level sensitivity. The authors argue that positive outcome credit may reinforce useful reasoning while also reinforcing potential spurious dependencies. Response-level advantage is too coarse to distinguish individual reasoning tokens.

    • Core observation: The authors use a semifactual prompt intervention to change task-irrelevant prompt features while preserving the math problem and answer, and use the token probability drift of a fixed response as a proxy for potential spurious dependencies. On frozen Qwen3-4B-Base, suppressing high-drift candidate tokens at decoding time without updating weights improves accuracy on 1,000 math diagnostic questions from 15.8% to 30.0% (Figure 3). The authors argue this shows the model is highly sensitive to token-level spurious features, and that this signal can be used for credit assignment during training.

    • Proposed method: The authors propose Semifactual Credit-Augmented Policy Optimization (SCAPO), a causally inspired variant of GRPO. It measures token probability drift of a fixed response under semifactual interventions, uses a group-normalized stability score to reduce the advantage of relatively unstable tokens in early training, and does not give extra credit for stability itself. It requires no process supervision or external reward model.

  2. What related research exists?

    SCAPO retains verifiable outcome rewards but corrects token credit using the semifactual stability of a fixed response.

    RLVR and verifiable rewards

    • GRPO and subsequent RLVR: Shao et al. (2024), Guo et al. (2025), and Zeng et al. (2025) use critic-free group-relative methods to directly apply RL to base models, optimizing automatically verifiable outcomes. Subsequent work improves normalization and sampling (Liu et al., 2025; Yu et al., 2025), adjusts importance weighting and clipping (Zheng et al., 2025; Gao et al., 2025b), or promotes exploration with entropy control and off-policy guidance (Cui et al., 2025; Yan et al., 2025). The authors argue that response-level advantage remains too coarse to distinguish individual reasoning tokens. Yue et al. (2025) further distinguishes sampling efficiency gains from expansion of the reasoning repertoire.

    Credit assignment in reasoning

    • Process feedback and rollout estimation: Fine-grained feedback can be learned from process annotations or outcome labels (Lightman et al., 2024; Wang et al., 2024; Cui et al., 2026), or estimated with Monte Carlo rollouts (Kazemnejad et al., 2025).
    • Token selection and attribution: Token entropy, confidence, eligibility traces, and future policy divergence are used to select and weight tokens (Wang et al., 2025b; Xie et al., 2026; Mou et al., 2026; Ma et al., 2026). Perturbation- and gradient-based attribution estimates the contribution of reasoning tokens or segments to the final answer, used for selective supervised fine-tuning and importance-weighted policy updates (Ruan et al., 2025; Khandoga et al., 2026; Li et al., 2026).

    Spurious correlations, causal invariance, and semifactuals

    • Diagnosis and perturbation: Wang et al. (2022) and Fu et al. (2026) study spurious feature dependence; Peters et al. (2016) and Arjovsky et al. (2019) discuss causal invariance. The authors use semifactual prompt interventions to probe causal invariance in LLM reasoning, a concept from Goodman (1947), Lu et al. (2022), and Kenny & Keane (2021). Mirzadeh et al. (2025) and Huang et al. (2025) provide reasoning robustness settings under input perturbation, and the four perturbation types in this paper follow that direction.

    Baseline methods and benchmarks

    • Baselines: GRPO, GSPO (sequence-level importance ratios with clipping), SAPO (replacing hard clipping with a smoothed, advantage-dependent gate), CF-GRPO (estimating token-level credit with counterfactual masking of reasoning segments), and FIPO (reweighting token advantages with discounted future KL). Training data is DAPO-Math-17K; evaluations include AIME, AMC, HMMT, BRUMO, SMT, Omni-Math, Minerva, OlympiadBench, as well as NoOp-AIME, ThinkBench-AIME, and GPQA-Diamond.

    The authors state that, like existing RLVR, this paper optimizes verifiable outcome rewards, but refines token-level credit with semifactual stability. The difference from existing fine-grained credit assignment is that negative correction comes from the sensitivity of a fixed response to semifactual prompt interventions, using teacher-forced token probabilities, rather than output-side attribution via segment masking or continuation regeneration.

  3. How does the paper address this problem?

    Measures semifactual drift on a fixed response, and only adds negative stability to the GRPO advantage with a stop gradient.

    SCAPO adds a token-level negative correction derived from the semi-factual stability of fixed responses on top of GRPO's trajectory-level outcome advantage, and it is enabled only in early training.

    Semi-factual perturbations and drift

    • Four perturbation types: paraphrase, minor typo noise, irrelevant scenario wrapping, and appended irrelevant context. Generated with GPT-5.5, with the requirement to preserve quantities, mathematical expressions, constraints, and the requested quantity. K=4 perturbations are precomputed for each training prompt. Table 3 in Appendix B.1 gives the full generation prompts.
    • Drift definition: For the same sampled token, the bounded symmetric distance between the original probability p_t^(0) and the probability under the k-th perturbation p_t^(k) is d_t^{(k)}=2\tanh\big(\log p_t^{(0)}-\log p_t^{(k)}\big)/2=|p_t^{(0)}-p_t^{(k)}|/\big((p_t^{(0)}+p_t^{(k)})/2\big). The authors state that normalizing by the local mean probability avoids scale bias of absolute differences and preserves relative changes of low-probability tokens; the distance lies in [0, 2]. Averaging over the four perturbation types gives d_t.

    Diagnostics: suppressing high-drift candidates

    • Setup: Frozen Qwen3-4B-Base, 1,000 problems sampled from DAPO-Math-17K, one response sampled per problem (sampling details in Appendix B.2).
    • d-filtered decoding: At each step, drift is computed for each candidate in the vocabulary, non-EOS candidates are sorted by descending drift, the longest prefix whose cumulative probability mass does not exceed 0.8 is masked, EOS is always kept, and probabilities are renormalized. Weights are unchanged. This result is used to show the signal is usable; the training algorithm itself does not perform this masking at decoding time.

    Group-relative stability and credit

    • Probing: Sample G responses from the original prompt x and fix them. Using the rollout policy π_old, teacher-force the same responses and prefixes on the original prompt and K perturbations to obtain sampled token probabilities, then compute the bounded symmetric drift via Eq. (6). π_old is fixed during probing and updated with training.
    • Within-group standardization: For each perturbation, z-score the negative drift over all valid tokens in that prompt group, then average over the K types and z-score again to obtain relative stability u. Negative values indicate relative instability. Only the negative part u^−=min(u, 0) is kept, because stability itself does not imply correctness.
    • Advantage: Ã_{i,t}=A_i+λ sg(u^−_{i,t}). A_i is GRPO's group-relative outcome advantage, λ≥0, sg is stop-gradient, and the correction stays fixed within each policy update. Thus Ã≤A: when A>0 it weakens positive reinforcement, and when A<0 it strengthens the negative learning signal. The authors state this is not treating stability as a token-level correctness label.

    Optimization schedule and evaluation

    • Objective: Substitute à into GRPO's token-mean clipped policy gradient; importance ratios, clipping, and loss reduction are unchanged. The reward is a verifiable binary outcome R∈{0,1}.
    • Schedule: For step n with 1≤n≤N_0, λ=λ_0; afterward λ=0, i.e., early credit enhancement shapes trajectory selection, then standard GRPO. In experiments λ_0=0.01; N_0=120 for 4B and N_0=200 for 1.7B. Appendix D gives an analysis under a stochastic gradient model.
    • Success evaluation: Math responses are scored with Math-Verify, reporting average accuracy over sampled responses; Pass@k uses an unbiased estimate from 128 responses, representing the probability that at least one of k attempts is correct.
  4. What experiments did the paper conduct?

    On both Qwen3 base models, SCAPO is highest on most math benchmarks and on all out-of-distribution benchmarks.

    Experimental setup

    • Models and training: Qwen3-4B-Base trained for 600 steps, Qwen3-1.7B-Base trained for 1,000 steps. Data is DAPO-Math-17K, approximately 17,000 competition math problems with integer answers. Rollout batch 128, update batch 64, 8 rollouts per prompt, maximum answer length 16,384 tokens, R1-style prompt template, binary rule-based reward, constant learning rate 10^{-6}. SCAPO's λ_0=0.01, credit enhancement used for the first 120 and 200 steps respectively.
    • Baselines: GRPO, GSPO, SAPO, CF-GRPO, FIPO, and Base before RL. Each method matches training data, reward, prompt template, optimizer, rollout, step budget, and evaluation protocol at the same scale.
    • Evaluation: In-distribution are AIME 2024–2026, AMC 2023–2025, HMMT 2025–2026, BRUMO 2025, SMT 2025, Omni-Math, Minerva, OlympiadBench. Out-of-distribution are NoOp-style AIME, ThinkBench perturbed AIME, and graduate-level science QA GPQA-Diamond. Main results use the final checkpoint, temperature 0.7, top-p 0.9, maximum 16,384 tokens, Math-Verify scoring, reporting average accuracy. The paper does not state the number of samples per problem in the main text; Pass@k is explicitly 128 samples per problem.

    Main results

    Table 1 shows aggregate accuracy (%). AIME aggregates 2024–2026, HMMT aggregates 2025–2026, AMC aggregates 2023–2025.

    Swipe horizontally to read the table

    Benchmark4B GRPO4B SCAPO1.7B GRPO1.7B SCAPO
    AIME 24–2622.0827.717.7111.88
    AMC 23–2559.7465.6532.9741.39
    HMMT 25–2611.7116.171.984.96
    GPQA-Diamond36.2642.4527.4231.25
    In-distribution Avg.34.9339.6517.8623.08
    Out-of-distribution Avg.26.4830.7213.7017.22

    Per Table 1. On 4B, FIPO's AIME is 25.42, SAPO's Minerva is 41.18 and Olympiad is 54.75, all lower than the corresponding SCAPO in the table or requiring cross-referencing the full text: on 4B Minerva, FIPO is 44.49 and SCAPO is 43.38; on Olympiad, FIPO is 57.57 and SCAPO is 56.82. On 1.7B, SCAPO is highest on all eight in-distribution metrics.

    • Math reasoning: The authors state that SCAPO is higher than GRPO on all eight math metrics at both scales. AIME is higher by 5.63 and 4.17 percentage points respectively, HMMT by 4.46 and 2.98 percentage points. The authors state that on 4B, SCAPO is highest on six of eight, and on 1.7B, highest on all eight, with the highest average accuracy at both scales.
    • Out-of-distribution: The authors state that SCAPO is highest on all three out-of-distribution benchmarks at both scales. GPQA-Diamond relative to GRPO goes from 36.26% to 42.45% (+6.19 percentage points), and from 27.42% to 31.25% (+3.83 percentage points). On NoOp-AIME, 4B is 23.61 (GRPO 20.56), 1.7B is 8.40 (GRPO 6.11); on ThinkBench-AIME, 4B is 26.11 (GRPO 22.64), 1.7B is 12.01 (GRPO 7.57).
    • Training curves: Figure 1 labels 4B SCAPO endpoint as 27.71, FIPO as 25.42, GRPO as 22.08; 1.7B as 11.88, 7.71, and 7.01. Shading indicates the credit enhancement phase. The authors state that SCAPO reaches GRPO's final AIME accuracy with less than half its policy optimization steps, and final accuracy is higher at both scales.

    Diagnostics and token heterogeneity

    • Decoding filter: In Figure 3, on the same 1,000 problems, standard sampling is 15.8%, d-filtered is 30.0%, which the authors state is an improvement of 14.2 percentage points, without updating weights.
    • Drift distribution: Figure 2(b) labels d_t=0 at 12.82%. In Figure 2(c), multiples relative to the overall mean: reflection markers 2.74×, discourse connectives 2.32×, words 1.53×, punctuation 1.19×, math symbols 0.47×, numbers 0.37×. The authors believe tokens related to organization and reflection are more sensitive than math symbols and numbers. Figure 2(a) labels approximately 24.0% probability unchanged (written as omitted in the figure), approximately 33.4% increased, approximately 42.6% decreased.

    Ablations

    Table 2 compares average accuracy on five categories of competition benchmarks only on Qwen3-1.7B-Base. SCAPO is 17.65, GRPO is 12.63. After randomly shuffling token alignment, it is 13.65; after replacing answer-preserving semi-factuals with answer-changing counterfactuals, it is 11.68. On AIME 24–26, SCAPO is 11.88, higher than these two controls by 3.55 and 5.56 percentage points. Full-symbol correction averages 15.65, keeping only the positive part is 14.05, and the negative part (SCAPO) is highest. The authors believe this supports aligning credit with semi-factual sensitivity and reducing credit only for relatively unstable tokens.

    Other ablations and analyses

    • Pass@128: Appendix F.2 and Figure 8 estimate Pass@k using 128 answers per problem. The authors state that on both scales, SCAPO is highest on Pass@128 for AIME and AMC; the figure does not label endpoint values, and the text does not give specific percentages.
    • Time: In Figure 5, in the 4B experiment, semi-factual probing and credit construction account for 1.8% of measured training time, rollout 52.7%, policy update 18.7%, Other 26.7%. Probing reuses already sampled answers for teacher forcing and is only done during the initial enhancement phase.
    • Per-year results: Appendix F.1 gives per-year numbers. On 4B, several SCAPO sub-items are AIME-related 29.17, 27.71, 26.25, AMC-related 70.31, 63.19, 63.84; on 1.7B, the corresponding values are 14.79, 12.92, 7.92 and 51.09, 37.08, 36.76. Column headers were misaligned in text conversion; cells not aligned with column names are not transcribed item by item.
    • Exceptions: On 4B Minerva and Olympiad, FIPO (44.49, 57.57) is higher than SCAPO (43.38, 56.82); on 4B GPQA-Diamond, GSPO is 41.92, lower than SCAPO's 42.45, but higher than GRPO. On 1.7B, SCAPO is the highest in the table on all eight in-distribution metrics.
  5. What are some points that can be further explored?

    The authors plan to continue testing credit augmentation on larger models, more architectures, and non-mathematical domains.

    Limitations and future directions noted by the authors

    • Scale and domain: Appendix A states that training experiments are limited to math reasoning, dense Qwen3 at 1.7B and 4B, with DAPO-Math-17K data. Although GPQA-Diamond provides evidence of transfer to scientific reasoning, SCAPO's effectiveness on larger-scale models and data, and in broader training domains, remains to be evaluated.
    • Architecture: Appendix A states that future work should also examine other architectures, including mixture-of-experts (MoE) and hybrid models.
    • Plans in the conclusion: Section 6 states that future work will explore this credit enhancement on larger models, more diverse architectures, and domains beyond math reasoning.

    Experimental coverage

    • Models tested: Qwen3-4B-Base and Qwen3-1.7B-Base, two dense base models, trained for 600 and 1,000 policy optimization steps respectively (Section 4.1).
    • Comparison methods: GRPO, GSPO, SAPO, CF-GRPO, FIPO, and Base before RL; the main table covers eight in-distribution math metrics and three out-of-distribution metrics (Table 1).
    • Ablations: Credit signal sources (random shuffle, counterfactual perturbation) and correction signs (all symbols, positive part only, negative part only) are reported only on Qwen3-1.7B-Base across five categories of competition benchmarks (Table 2).
    • Diagnostics: Token drift and d-filtered decoding are performed on frozen Qwen3-4B-Base, on 1,000 problems from DAPO-Math-17K, without updating weights (Section 2, Figure 2, Figure 3).
    • Not reported in the paper: The main text does not give the number of samples per problem for the main evaluation, nor agreement with human scoring; Pass@k is stated as 128 samples per problem. The number of repetitions is not given in the main text.
  6. Summarize the main content of the paper

    SCAPO downweights GRPO advantages for relatively unstable tokens early in training, yielding higher results on most benchmarks at both scales.

    SCAPO turns the stability of fixed answers under semi-factual prompts into token-level negative credit correction in early GRPO training.

    • Problem: After RLVR improves reasoning, predictions remain sensitive to task-irrelevant prompt features. GRPO assigns the same outcome advantage to every valid token in the response, which the authors believe may reinforce both useful reasoning and potential spurious dependencies.
    • Method: Under four answer-preserving perturbations, teacher forcing is used to measure bounded symmetric probability drift of sampled tokens, normalized within prompt groups, and only the negative part of stability is kept, added to the GRPO advantage with stop-gradient. Stability is not rewarded. λ_0=0.01 is used for the first 120 steps on 4B and the first 200 steps on 1.7B, then reverts to standard GRPO. No process supervision or external reward model is needed.
    • Diagnostics: On frozen Qwen3-4B-Base, suppressing high-drift candidates improves accuracy on 1,000 problems from 15.8% to 30.0% (Figure 3). Reflection markers and discourse connectives have average drift of 2.74× and 2.32× the overall average, while math symbols and digits have 0.47× and 0.37× (Figure 2).
    • Main results: On Qwen3-4B-Base, AIME 2024–2026 improves from 22.08% with GRPO to 27.71% (+5.63 percentage points), and Qwen3-1.7B-Base from 7.71% to 11.88% (+4.17 percentage points). The authors state that SCAPO is higher than GRPO on all reported metrics at both scales and is the highest among compared methods on most math benchmarks and all three out-of-distribution benchmarks. GPQA-Diamond improves from 36.26% to 42.45% on 4B. On 4B Minerva and Olympiad, FIPO is higher than SCAPO.
    • Ablations and cost: On 1.7B, shuffling alignment or switching to answer-changing perturbations both underperform negative semi-factual correction; rewarding only stable tokens also gives lower average accuracy (Table 2). Semi-factual probing accounts for 1.8% of measured time in 4B training (Figure 5).
    • Authors' conclusion: The authors believe semi-factual stability can complement outcome rewards as a finer-grained credit assignment signal in RLVR, and plan to explore larger models, more architectures, and non-mathematical domains.
Read originalarxiv.org