Skip to content
ImagineWorld

Semifactual Credit-Augmented Policy Optimization

node_idnode-paper_arxiv-2609.40360_semifactual-credit-augmented-policy-optimization
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2609.40360
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the value-estimation field, the work augments policy optimization with semifactual credit — 'even if' reasoning that prices steps by what would still have worked, complementing counterfactual blame — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleSemifactual Credit-Augmented Policy Optimization
paper_authorsJunshu Pan, Zhizhang Fu, Shulin Huang, Yiran Ding, Zifan Cheng, Wenqi Shao, Qiaosheng Zhang, Yue Zhang
arxiv_id2609.40360
arxiv_urlhttps://arxiv.org/abs/2609.40360
arxiv_categories{"primary":"cs.LG","secondary":["cs.AI","cs.CL"]}
arxiv_v1
arxiv_submitted_at2026-09-30
arxiv_updated_at2026-09-30
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:10:36Z
local graph

Semifactual Credit-Augmented Policy Optimization

Section titled “Semifactual Credit-Augmented Policy Optimization”

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

arxiv: 2609.40360

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


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.

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.

Reinforcement learning with verifiable rewards (RLVR) has advanced the development of large language models (LLMs) with strong reasoning capabilities, such as OpenAI o1 (OpenAI, 2024) and DeepSeek-R1 (Guo et al., 2025). Group Relative Policy Optimization (GRPO) (Shao et al., 2024), a representative RLVR method, optimizes automatically checkable outcomes without process-level supervision. Recent evidence suggests that RLVR can diminish dependence on spurious correlations and improve generalization under distribution shifts (Fu et al., 2026). However, robustness evaluations still reveal sensitivity to irrelevant information and input perturbations (Mirzadeh et al., 2025; Huang et al., 2025). Understanding how training factors affect generalization in RLVR and how to further improve it remains underexplored.

We study spurious dependence in RLVR at the token level. Building on prior studies of spurious feature reliance (Wang et al., 2022; Fu et al., 2026), we probe causal invariance (Peters et al., 2016; Arjovsky et al., 2019) in LLM inference through semifactual prompt interventions (Goodman, 1947; Lu et al., 2022). Specifically, we alter task-irrelevant prompt features while preserving the mathematical problem and its answer, using drift in the token probabilities of a fixed response as a proxy for potential spurious dependence. We find that suppressing high-drift token candidates during decoding improves the accuracy of Qwen3-4B-Base (Yang et al., 2025) from 15.8% to 30.0% on a 1,000-question mathematical diagnostic panel without updating model weights (see Section 2). The above results suggest that LLMs are highly sensitive to token-level spurious features. However, GRPO assigns the same outcome-derived advantage to every valid token in a response, without directly accounting for this token-level sensitivity. As a result, positive outcome credit may reinforce potential spurious dependence alongside useful reasoning.

To address the above problem, one intuitive way is to change the RL training process, incorporating semifactual sensitivity into token-level credit assignment. In this paper, we introduce Semifactual Credit-Augmented Policy Optimization (SCAPO), a causally inspired variant of GRPO that aims to turn semifactual stability into a token-level credit signal during training. This signal reveals differences in token sensitivity that final-answer correctness alone cannot distinguish. Verifiable rewards provide response-level supervision, while semifactual stability refines token-level credit assignment.

In particular, SCAPO uses the rollout policy to teacher-force each sampled response under the original prompt and its semifactual perturbations, measuring the probability drifts of each response token. After aggregating and normalizing these drifts within each prompt group, it adds only the negative part of the resulting stability score to the GRPO advantage as a detached token-level credit augmentation. Consequently, relatively unstable tokens receive lower advantages, while stability alone earns no additional credit, since stability does not imply correctness. We apply this credit augmentation during the early phase of training to shape trajectory selection, then continue optimizing the resulting policy with standard GRPO.

SCAPO improves AIME 2024–2026 accuracy (Mathematical Association of America, 2026) over GRPO by +5.63 and +4.17 points on Qwen3-4B-Base and Qwen3-1.7B-Base (Yang et al., 2025), respectively. As shown in Figure 1, SCAPO reaches GRPO’s final AIME accuracy in fewer than half as many policy optimization steps. Moreover, across both model scales, SCAPO outperforms GRPO on all evaluated benchmarks and achieves the best performance on most of the competition-level mathematics benchmarks among all the compared RLVR methods. SCAPO also achieves the highest accuracy on out-of-distribution benchmarks at both model scales. In addition, our ablations further support the value of aligning credit corrections with semifactual sensitivity and selectively reducing credit for relatively unstable tokens. These results suggest that semifactual stability complements outcome rewards with an effective signal for finer-grained credit assignment in RLVR.

Our contributions can be summarized as:

  • •

    We study token-level spurious dependence in LLM inference through semifactual prompt interventions, revealing heterogeneous sensitivity and showing that suppressing high-drift tokens during decoding can improve reasoning accuracy without weight updates. (Sec. 2)

  • •

    We introduce SCAPO, an approach to token-level credit augmentation in GRPO using detached negative-only corrections derived from fixed-response semifactual stability, without requiring process supervision or an external reward model. (Sec. 3)

  • •

    We empirically demonstrate SCAPO’s effectiveness on Qwen3-4B-Base and Qwen3-1.7B-Base, achieving the best results on most benchmarks among the compared RLVR methods. These results show that semifactual stability can serve as an effective training-time signal for token-level credit assignment in RLVR. (Sec. 4)

Figure 2: Semifactual instability varies across tokens. (a) Probability transitions under semifactual prompt interventio

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.

We probe potential token-level spurious dependence with semifactual sensitivity. Using a frozen base model, we characterize how this sensitivity varies across tokens and then examine whether suppressing unstable token candidates improves decoding.

Semifactual perturbations alter incidental features of a prompt while preserving its underlying mathematical problem and final answer (Kenny and Keane, 2021). Following prior work on reasoning robustness under input perturbations (Mirzadeh et al., 2025; Huang et al., 2025), we construct four types of perturbations: paraphrase, minor typo noise, irrelevant scenario wrapping, and appended irrelevant context. We use GPT-5.5 (OpenAI, 2026) to generate these perturbations, instructing it to preserve quantities, mathematical expressions, constraints, and the requested quantity.

All four perturbed prompts for this example and details of perturbation construction are provided in Appendix B.1.

To characterize semifactual sensitivity before RL training, we sample one response per original prompt from frozen Qwen3-4B-Base on 1,000 questions selected from DAPO-Math-17K. Sampling details are provided in Appendix B.2. Let p_t(0)p\_{t}^{(0)} and p_t(k)p\_{t}^{(k)} denote the probabilities assigned to the identical sampled token at position tt under the original and the kk-th perturbed prompts, respectively. The probability drift measured by the bounded-symmetric distance is defined as follows:

$$d_{t}^{(k)}=2\tanh!\left(\left\log p_{t}^{(0)}-\log p_{t}^{(k)}\right/2\right)=\frac{

Normalizing by the local mean probability avoids the scale bias of absolute differences and preserves relative probability changes for low-probability tokens. The distance remains within [0,2][0,2], bounding the effect of extreme probability ratios for numerical robustness. We average across the four perturbations to obtain d_t=14∑_k=14d_t(k)d\_{t}=\frac{1}{4}\sum\_{k=1}^{4}d\_{t}^{(k)}.

Figure 2(a) shows both increases and decreases in token probability across a wide range of original confidence levels. Figure 2(b) reveals heterogeneity in semifactual sensitivity. Nonzero probability drift magnitudes span several orders of magnitude, while 12.82% of positions show no recorded change. Semifactual sensitivity also varies across token categories, as shown in Figure 2(c). Reflection markers adapted from (Wang et al., 2025a) and discourse connectives drawn from (Das et al., 2018) exhibit mean drifts of 2.74×\times and 2.32×\times the overall mean, respectively, whereas mathematical symbols and numbers exhibit 0.47×\times and 0.37×\times, respectively. This contrast suggests that tokens lexically associated with organizing and reflection are more sensitive to these interventions than mathematical symbols or numbers. See Appendix B.3 for more details on token category definitions and statistics, and Appendix B.4 for illustrative case studies of token-level semifactual sensitivity.

Figure 3: Semifactual filtering improves rollout accuracy. Suppressing high-drift token candidates during rollout generation improves Qwen3-4B-Base’s accuracy by 14.2 percentage points on the same 1,000-question diagnostic panel.

Suppressing unstable token candidates improves rollout accuracy.

Section titled “Suppressing unstable token candidates improves rollout accuracy.”

To test whether this semifactual sensitivity signal can help improve reasoning accuracy, we evaluate Qwen3-4B-Base under standard sampling and an online dd-filtered decoding strategy on the same 1,000 selected questions. Specifically, at each decoding step, we compute drift for every candidate token in the vocabulary, rank non-EOS candidates in descending drift order, and mask the longest prefix whose cumulative probability mass does not exceed 0.8. We always retain the EOS token, and then renormalize the remaining probabilities. With model weights unchanged, accuracy rises from 15.8% to 30.0% (+14.2 points), as shown in Figure 3. This result demonstrates that semifactual sensitivity provides an actionable token-level signal and motivates its use for finer-grained credit assignment during RLVR training. More details and additional results are provided in Appendix C.

3 Semifactual Credit-Augmented Policy Optimization

Section titled “3 Semifactual Credit-Augmented Policy Optimization”

Building on the decoding benefit of suppressing unstable token candidates, we use semifactual stability to probe potential spurious dependence and refine token-level credit assignment during RLVR training. Our guiding principle is to reduce the advantages assigned to relatively unstable tokens without granting additional credit for stability alone, since stability does not imply correctness. In this section, we introduce Semifactual Credit-Augmented Policy Optimization (SCAPO), a GRPO-based algorithm that combines trajectory-level outcome advantages with token-level semifactual stability for finer-grained credit assignment. Figure 4 presents an overview of SCAPO, which consists of semifactual prompt intervention, token probability drift probing, relative stability signal construction, and policy optimization with GRPO advantages augmented by the semifactual credit signal.

Figure 4: Overview of SCAPO. (a) Semifactual prompt interventions are paired with a fixed group of sampled responses. (b

Figure 4: Overview of SCAPO. (a) Semifactual prompt interventions are paired with a fixed group of sampled responses. (b) Teacher forcing measures sampled-token probability drift under each intervention. (c) Group-wise normalization and aggregation yield relative stability scores, retaining only their negative part. (d) The scaled stability correction, with gradients stopped, is added to the GRPO advantage to produce token-level advantages for policy optimization.

3.1 Preliminaries: Group Relative Policy Optimization

Section titled “3.1 Preliminaries: Group Relative Policy Optimization”

Given a problem–answer pair (x,a)∼D(x,a)\sim\mathcal{D}, the rollout policy π_old\pi\_{\mathrm{old}} samples a group of GG responses {y_i}_i=1G\{y\_{i}\}\_{i=1}^{G} under the original prompt xx, where y_i=(y_i,1,…,y_i,T_i)y\_{i}=(y\_{i,1},\ldots,y\_{i,T\_{i}}) denotes the ii-th response. Each response receives a verifiable outcome reward R_i=V(y_i,a)∈{0,1}R\_{i}=\mathcal{V}(y\_{i},a)\in\{0,1\}. GRPO constructs a trajectory-level advantage from the relative rewards within the group (Shao et al., 2024):

A_i=R_i−μ_Rσ_R+ϵ_A,i=1,…,G,A\_{i}=\frac{R\_{i}-\mu\_{R}}{\sigma\_{R}+\epsilon\_{A}},\qquad i=1,\ldots,G,(2)

where μ_R\mu\_{R} and σ_R\sigma\_{R} are the mean and standard deviation of the group rewards, and ϵ_A>0\epsilon\_{A}>0 is a numerical stabilizer. The same A_iA\_{i} is applied to every valid token in y_iy\_{i}, so it cannot distinguish token-level dependence on task-irrelevant prompt features.

For sampled token y_i,ty\_{i,t}, the importance ratio between the current policy π_θ\pi\_{\theta} and the rollout policy, together with its clipped counterpart, is

r_i,t(θ)\displaystyle r\_{i,t}(\theta)=π_θ(y_i,t∣x,y_i,<t)π_old(y_i,t∣x,y_i,<t),\displaystyle=\frac{\pi\_{\theta}(y\_{i,t}\mid x,y\_{i,<t})}{\pi\_{\mathrm{old}}(y\_{i,t}\mid x,y\_{i,<t})},(3)
rˉ_i,t(θ)\displaystyle\bar{r}\_{i,t}(\theta)=clip⁡ ⁣(r_i,t(θ),1−ϵ_low,1+ϵ_high).\displaystyle=\operatorname{clip}\!\left(r\_{i,t}(\theta),1-\epsilon\_{\mathrm{low}},1+\epsilon\_{\mathrm{high}}\right).

Following the token-mean formulation (Yu et al., 2025), we update the policy by maximizing the clipped token-level policy gradient objective:

J_GRPO(θ)=E ⁣[1∑_i=1GT_i∑_i=1G∑_t=1T_imin⁡ ⁣(r_i,tA_i,rˉ_i,tA_i)].\mathcal{J}\_{\mathrm{GRPO}}(\theta)=\mathbb{E}\!\left[\frac{1}{\sum\_{i=1}^{G}T\_{i}}\sum\_{i=1}^{G}\sum\_{t=1}^{T\_{i}}\min\!\left(r\_{i,t}A\_{i},\bar{r}\_{i,t}A\_{i}\right)\right].(4)

To obtain token-level credit signals, we examine how sampled-token probabilities change under semifactual prompt interventions while holding the response fixed. For each original prompt x=x(0)x=x^{(0)}, we construct KK perturbed prompts x(1),…,x(K)x^{(1)},\ldots,x^{(K)} using the semifactual perturbations described in Section 2. As shown in Figure 4(a), the GG responses sampled under the original prompt are held fixed across interventions.

We teacher-force the same response under each prompt, keeping both the sampled token y_i,ty\_{i,t} and its response prefix y_i,<ty\_{i,<t} unchanged:

p(k)_i,t=π_old ⁣(y_i,t∣x(k),y_i,<t),k=0,…,K.p^{(k)}\_{i,t}=\pi\_{\mathrm{old}}\!\left(y\_{i,t}\mid x^{(k)},y\_{i,<t}\right),\qquad k=0,\ldots,K.(5)

The rollout policy remains fixed during these probes and is updated as training proceeds.

Using the bounded-symmetric distance from Section 2, we convert these aligned probabilities into token-level drift, as illustrated in Figure 4(b):

$$d^{(k)}_{i,t}=\frac{\leftp^{(0)}_{i,t}-p^{(k)}_{i,t}\right}{\left(p^{(0)}_{i,t}+p^{(k)}_{i,t}\right)/2},\qquad k=1,\ldots,K.$$

A larger d(k)_i,td^{(k)}\_{i,t} indicates greater sensitivity of the sampled token’s probability to the semifactual prompt intervention.

We convert token-level drift into a relative stability signal within each prompt group. Let d(k)\bm{d}^{(k)} collect the drifts at all valid token positions across the group’s GG responses for perturbation type kk. For any vector v\bm{v} over the valid token positions, define the group-wise standardization

zscore⁡_x(v)=v−μ_x(v)σ_x(v)+ϵ,\operatorname{zscore}\_{x}(\bm{v})=\frac{\bm{v}-\mu\_{x}(\bm{v})}{\sigma\_{x}(\bm{v})+\epsilon},

where the mean and standard deviation are computed over all valid response tokens in the group.

As shown in Figure 4(c), we standardize negative drift separately for each perturbation type, average the resulting scores, and normalize the aggregate:

u=zscore⁡_x ⁣(1K∑_k=1Kzscore⁡_x ⁣(−d(k))).\bm{u}=\operatorname{zscore}\_{x}\!\left(\frac{1}{K}\sum\_{k=1}^{K}\operatorname{zscore}\_{x}\!\left(-\bm{d}^{(k)}\right)\right).(7)

The resulting u_i,tu\_{i,t} measures within-group relative stability, with negative values identifying relatively unstable tokens. Since stability alone does not imply correctness, we retain only the negative part of the signal:

u−_i,t=min⁡(u_i,t,0).u^{-}\_{i,t}=\min(u\_{i,t},0).(8)

3.4 Policy optimization with semifactual credit

Section titled “3.4 Policy optimization with semifactual credit”

We add the semifactual credit signal to the original GRPO advantage, enabling tokens with the same outcome reward to receive different learning signals. As shown in Figure 4(d), the resulting token-level advantage is

A~_i,t=A_i+λ sg⁡ ⁣(u−_i,t),\widetilde{A}\_{i,t}=A\_{i}+\lambda\,\operatorname{sg}\!\left(u^{-}\_{i,t}\right),(9)

where λ≥0\lambda\geq 0 controls the augmentation strength and sg⁡\operatorname{sg} denotes stop-gradient. The semifactual correction is held fixed during each policy update.

This construction ensures A~_i,t≤A_i\widetilde{A}\_{i,t}\leq A\_{i}, with equality when u_i,t≥0u\_{i,t}\geq 0. When A_i>0A\_{i}>0, the stability correction can weaken the positive reinforcement signal, and when A_i<0A\_{i}<0, it strengthens the negative learning signal. The method thus refines outcome credit without treating semifactual stability as a token-level correctness label.

Substituting A~_i,t\widetilde{A}\_{i,t} into Eq. 4 gives SCAPO’s policy objective:

J_SCAPO(θ)=E ⁣[1∑_i=1GT_i∑_i=1G∑_t=1T_imin⁡ ⁣(r_i,tA~_i,t,rˉ_i,tA~_i,t)].\mathcal{J}\_{\text{SCAPO{}}}(\theta)=\mathbb{E}\!\left[\frac{1}{\sum\_{i=1}^{G}T\_{i}}\sum\_{i=1}^{G}\sum\_{t=1}^{T\_{i}}\min\!\left(r\_{i,t}\widetilde{A}\_{i,t},\bar{r}\_{i,t}\widetilde{A}\_{i,t}\right)\right].(10)

SCAPO modifies only the advantage, leaving GRPO’s importance ratio, clipping, and loss reduction unchanged. To guide early trajectory selection, we apply semifactual credit augmentation during an initial phase and then continue with standard GRPO. Specifically, at policy optimization step nn, the coefficient is

λ={λ_0,1≤n≤N_0,0,n>N_0,\lambda=\begin{cases}\lambda\_{0},&1\leq n\leq N\_{0},\\ 0,&n>N\_{0},\end{cases}(11)

where λ_0\lambda\_{0} and N_0N\_{0} control the strength and duration of credit augmentation. Appendix D provides an analysis under a stochastic-gradient model.

We train on DAPO-Math-17K (Yu et al., 2025), a curated dataset of approximately 17,000 competition-level mathematics problems with integer answers. For SCAPO, each training prompt is paired with K=4K=4 precomputed perturbed prompts, corresponding to the four perturbation types introduced in Section 2.

We initialize from Qwen3-4B-Base and Qwen3-1.7B-Base (Yang et al., 2025) and train directly with RL for 600 and 1,000 policy optimization steps, respectively. We use a rollout batch size of 128, an update batch size of 64, and 8 rollouts per prompt. The maximum response length is 16,384 tokens. We use the R1-style prompt template, binary rule-based rewards, and a constant learning rate of 10−610^{-6}. For SCAPO, we set λ_0=0.01\lambda\_{0}=0.01 and apply credit augmentation for the first N_0=120N\_{0}=120 and 200200 policy optimization steps on the 4B and 1.7B models, respectively. More detailed training hyperparameters are provided in Appendix E.1.

We evaluate on in-distribution competition-level mathematical reasoning benchmarks, including AIME 2024–2026 (Mathematical Association of America, 2026), AMC 2023–2025 (Mathematical Association of America, 2025), HMMT 2025–2026 (Harvard–MIT Mathematics Tournament, 2026), BRUMO 2025 (Brown University Math Olympiad, 2025), SMT 2025 (Stanford Math Tournament, 2025), Omni-Math (Gao et al., 2025a), Minerva (Lewkowycz et al., 2022), and OlympiadBench (He et al., 2024). To assess out-of-distribution generalization, we evaluate NoOp-style distractor variants of AIME (Mirzadeh et al., 2025) and ThinkBench perturbations of AIME (Huang et al., 2025) for robustness to input perturbations. We further evaluate GPQA-Diamond (Rein et al., 2024), a graduate-level science question-answering benchmark, to examine transfer beyond mathematics. All main results use the final checkpoints with identical generation and scoring settings across methods within each benchmark. We sample at temperature 0.7 and top-p=0.9p=0.9 with a maximum response length of 16,384 tokens, score mathematical responses with Math-Verify (Kydlíček, 2025), and report average accuracy across sampled responses. Further evaluation details are provided in Appendix E.2.

We consider the following representative RLVR methods: (1) GRPO (Shao et al., 2024): computes group-relative advantages from outcome rewards and applies token-level clipped policy updates. (2) GSPO (Zheng et al., 2025): uses sequence-level importance ratios and clipping for policy optimization. (3) SAPO (Gao et al., 2025b): replaces hard clipping with smooth, advantage-dependent gating. (4) CF-GRPO (Khandoga et al., 2026): estimates token-level credit through counterfactual masking of reasoning spans. (5) FIPO (Ma et al., 2026): reweights token advantages using discounted future KL. At each model scale, comparisons match the training data, reward function, prompt template, optimizer, rollout settings, training-step budget, and evaluation protocol. Method-specific hyperparameters are provided in Appendix E.1.

Table 1 shows that SCAPO improves over GRPO on all eight mathematical reasoning metrics at both model scales. AIME accuracy increases by 5.63 and 4.17 percentage points on the 4B and 1.7B models, respectively, while HMMT improves by 4.46 and 2.98 points. SCAPO achieves the highest accuracy on six of eight metrics at 4B and all eight at 1.7B, with the highest average accuracy at both scales. Additional results show that SCAPO achieves the highest Pass@128 on AIME and AMC at both model scales (see Appendix F.2).

Table 1: Overall accuracy on competition-level mathematical reasoning and out-of-distribution benchmarks (%). Base denotes the model before RL. AIME variants aggregate 2024–2026, while HMMT and AMC aggregate 2025–2026 and 2023–2025, respectively. Year-specific results are provided in Appendix F.1. Bold and underline indicate the best and second-best results, respectively.

BenchmarkBaseGRPOGSPOSAPOCF-GRPOFIPOSCAPO
Qwen3-4B-Base
In-DistributionAIME 24–267.6422.0823.4724.0322.6425.4227.71
AMC 23–2537.4059.7464.7165.4562.0664.5765.65
HMMT 25–262.0811.7113.6915.1814.0915.2816.17
BRUMO 2518.5428.9633.7533.5432.0835.0037.71
SMT 2512.7427.1226.0627.1226.7728.1830.31
Omni-Math26.4835.4538.7138.1836.4138.6039.42
Minerva31.6240.0739.7141.1841.5444.4943.38
Olympiad38.5854.3055.6454.7554.7557.5756.82
Avg.21.8834.9336.9737.4336.2938.6439.65
Out-of- DistributionNoOp-AIME 24–266.7420.5620.1420.4221.7421.7423.61
ThinkBench-AIME 24–266.5322.6422.0823.4723.5423.8926.11
GPQA-Diamond33.7836.2641.9241.1636.5140.1542.45
Avg.15.6826.4828.0528.3527.2628.5930.72
Qwen3-1.7B-Base
In-DistributionAIME 24–263.617.717.3610.006.747.0111.88
AMC 23–2523.3332.9732.8238.5831.9932.4841.39
HMMT 25–260.691.982.084.662.981.494.96
BRUMO 256.8813.5411.8817.7114.3710.0019.17
SMT 254.836.966.8410.148.028.1410.85
Omni-Math16.7320.4521.4822.6220.7721.7724.74
Minerva21.6927.9427.2130.1528.3128.3130.88
Olympiad21.8131.3133.6837.8333.9832.6440.80
Avg.12.4517.8617.9221.4618.3917.7323.08
Out-of- DistributionNoOp-AIME 24–262.366.115.978.066.606.608.40
ThinkBench-AIME 24–263.197.577.229.586.947.0112.01
GPQA-Diamond22.3727.4229.2130.9627.6128.2431.25
Avg.9.3113.7014.1316.2013.7213.9517.22

SCAPO achieves the highest accuracy on all three out-of-distribution benchmarks at both model scales (Table 1). On GPQA-Diamond, accuracy improves over GRPO from 36.26% to 42.45% at 4B and from 27.42% to 31.25% at 1.7B, gains of 6.19 and 3.83 percentage points, respectively. Together with the improvements on NoOp-AIME and ThinkBench-AIME, these results show that the gains extend to both perturbed mathematical problems and scientific reasoning beyond the training domain.

We ablate the source and sign of token-level credit to examine their roles in SCAPO’s performance gains, and the results are shown in Table 2.

Table 2: Ablations on Qwen3-1.7B-Base. SCAPO uses negative-only corrections.

MethodAIME 24–26AMC 23–25HMMT 25–26BRUMO 25SMT 25Avg.
GRPO7.7132.971.9813.546.9612.63
SCAPO11.8841.394.9619.1710.8517.65
Credit signal source
Random shuffle8.3332.782.2815.429.4313.65
Counterfactual6.3230.511.6912.926.9611.68
Correction sign
All-sign10.7638.833.7715.219.6715.65
Positive-only9.7934.102.5815.428.3714.05

The random shuffle ablation permutes semifactual corrections within each response, preserving their values but breaking the original token alignment. The counterfactual ablation replaces answer-preserving semifactual prompts with answer-changing perturbations, while keeping the credit construction unchanged. SCAPO performs best on the five competition-level benchmarks, followed consistently by random shuffle and the counterfactual control. On AIME 24–26, SCAPO leads these controls by 3.55 and 5.56 percentage points, respectively. These results support aligning credit with semifactual sensitivity, since drift under answer-changing perturbations may reflect legitimate changes in token predictions rather than spurious dependence.

We compare negative-only, all-sign, and positive-only corrections by retaining negative, all, or positive stability scores. SCAPO’s negative-only correction achieves the highest average accuracy across the five competition-level benchmarks. This supports reducing credit for relatively unstable tokens without rewarding stability alone.

Figure 5: Training time breakdown of SCAPO on Qwen3-4B-Base. Other includes validation, reward computation, old policy log-probability computation, and miscellaneous overhead.

As shown in Figure 5, semifactual probing and credit construction account for only 1.8% of the measured training runtime in the 4B experiment, far less than autoregressive rollout. The probes reuse sampled responses through teacher forcing, avoiding fresh generation under each perturbed prompt. They are also confined to the initial credit augmentation phase and incur no further cost during subsequent optimization. Together, these properties keep probing a small fraction of total runtime despite evaluating multiple prompts. Training efficiency is therefore more strongly affected by major stages such as autoregressive generation, whose cost depends on response length.

Reinforcement learning with verifiable rewards.

Section titled “Reinforcement learning with verifiable rewards.”

RLVR has advanced mathematical reasoning by optimizing automatically verifiable outcomes, with critic-free group-relative methods enabling direct RL training of base models (Shao et al., 2024; Guo et al., 2025; Zeng et al., 2025). Subsequent work improves normalization and sampling (Liu et al., 2025; Yu et al., 2025), adapts importance weighting and clipping (Zheng et al., 2025; Gao et al., 2025b), and promotes exploration through entropy control or off-policy guidance (Cui et al., 2025; Yan et al., 2025). However, response-level advantages remain too coarse to distinguish individual reasoning tokens. Studies of reasoning-path coverage further distinguish improved sampling efficiency from expansion of a model’s reasoning repertoire (Yue et al., 2025). Like prior RLVR methods, our approach optimizes verifiable outcome rewards, but leverages semifactual stability to refine credit assignment at the token level.

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 through Monte Carlo rollouts (Kazemnejad et al., 2025). Token entropy, confidence, eligibility traces, and future policy divergence also guide token selection and weighting (Wang et al., 2025b; Xie et al., 2026; Mou et al., 2026; Ma et al., 2026). Perturbation- and gradient-based attribution methods estimate how reasoning tokens or spans contribute to final-answer predictions, providing signals for selective supervised fine-tuning and importance-weighted policy updates (Ruan et al., 2025; Khandoga et al., 2026; Li et al., 2026). Like prior work on fine-grained credit assignment, we use token-level signals to guide policy updates. Our contribution is to derive negative-only advantage corrections from the sensitivity of a fixed response to semifactual prompt interventions, using teacher-forced token probabilities rather than output-side attribution through span masking or continuation regeneration.

We presented SCAPO, a causally inspired approach for finer-grained token credit assignment in RLVR. By probing potential token-level spurious dependence through fixed-response sensitivity to semifactual prompt interventions, SCAPO applies negative-only corrections to GRPO advantages, selectively reducing credit for relatively unstable tokens. Across Qwen3-4B-Base and Qwen3-1.7B-Base, SCAPO outperforms GRPO on all reported benchmark metrics and achieves the best results on most benchmarks among the compared RLVR methods. These results highlight that semifactual interventions can serve not only as diagnostic probes of brittle reasoning but also as training signals that complement outcome rewards. Future work will explore this credit augmentation in larger models, more diverse architectures, and domains beyond mathematical reasoning.

We used generative AI to generate semifactual perturbation data, polish writing, correct grammar, and assist with code debugging and script development. The authors take responsibility for the final content of this work.

Our work is easy to reproduce. The original datasets and pretrained models used in our experiments are publicly available, and detailed experimental hyperparameters are provided in Appendix E. We provide our code, developed on top of the open-source EasyR1 framework, together with all training and evaluation data in the Github repo.

  • Arjovsky et al. (2019) M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz Invariant risk minimization. arXiv preprint arXiv:1907.02893. Cited by: §1.
  • Brown University Math Olympiad (2025) Brown University Math Olympiad BrUMO 2025. Note: Accessed: 2026-07-15 External Links: Link Cited by: §4.1.
  • Cui et al. (2026) G. Cui, L. Yuan, Z. Wang, H. Wang, Y. Zhang, J. Chen, W. Li, B. He, Y. Fan, T. Yu, Q. Xu, W. Chen, J. Yuan, H. Chen, K. Zhang, X. Lv, S. Wang, Y. Yao, X. Han, H. Peng, Y. Cheng, Z. Liu, M. Sun, B. Zhou, and N. Ding Process reinforcement through implicit rewards. Transactions on Machine Learning Research. Cited by: §5.
  • Cui et al. (2025) G. Cui, Y. Zhang, J. Chen, L. Yuan, Z. Wang, Y. Zuo, H. Li, Y. Fan, H. Chen, W. Chen, Z. Liu, H. Peng, L. Bai, W. Ouyang, Y. Cheng, B. Zhou, and N. Ding The entropy mechanism of reinforcement learning for reasoning language models. arXiv preprint arXiv:2505.22617. Cited by: §5.
  • Das et al. (2018) D. Das, T. Scheffler, P. Bourgonje, and M. Stede Constructing a lexicon of english discourse connectives. In Proceedings of the 19th Annual SIGdial Meeting on Discourse and Dialogue, pp. 360–365. Cited by: §B.3, §2.
  • Fu et al. (2026) Z. Fu, G. Bao, H. Zhang, C. Hu, and Y. Zhang Correlation or causation: analyzing the causal structures of llm and lrm reasoning process. IEEE Transactions on Audio, Speech and Language Processing 34, pp. 2986–2999. Cited by: §1, §1.
  • Gao et al. (2025a) B. Gao, F. Song, Z. Yang, Z. Cai, Y. Miao, Q. Dong, L. Li, C. Ma, L. Chen, R. Xu, Z. Tang, B. Wang, D. Zan, S. Quan, G. Zhang, L. Sha, Y. Zhang, X. Ren, T. Liu, and B. Chang Omni-math: a universal olympiad level mathematic benchmark for large language models. In International Conference on Learning Representations, Vol. 2025, pp. 100540–100569. Cited by: §4.1.
  • Gao et al. (2025b) C. Gao, C. Zheng, X. Chen, K. Dang, S. Liu, B. Yu, A. Yang, S. Bai, J. Zhou, and J. Lin Soft adaptive policy optimization. arXiv preprint arXiv:2511.20347. Cited by: §4.1, §5.
  • Goodman (1947) N. Goodman The problem of counterfactual conditionals. The journal of philosophy 44 (5), pp. 113–128. Cited by: §1.
  • Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Ding, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Chen, J. Yuan, J. Tu, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. You, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Zhou, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang DeepSeek-r1 incentivizes reasoning in llms through reinforcement learning. Nature 645 (8081), pp. 633–638. Cited by: §1, §5.
  • Harvard–MIT Mathematics Tournament (2026) Harvard–MIT Mathematics Tournament HMMT: past tournaments. Note: Accessed: 2026-07-15 External Links: Link Cited by: §4.1.
  • He et al. (2024) C. He, R. Luo, Y. Bai, S. Hu, Z. Thai, J. Shen, J. Hu, X. Han, Y. Huang, Y. Zhang, J. Liu, L. Qi, Z. Liu, and M. Sun Olympiadbench: a challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3828–3850. Cited by: §4.1.
  • Huang et al. (2025) S. Huang, L. Yang, Y. Song, S. Chen, L. Cui, Z. Wan, Q. Zeng, Y. Wen, K. Shao, W. Zhang, J. Wang, and Y. Zhang Thinkbench: dynamic out-of-distribution evaluation for robust llm reasoning. Advances in Neural Information Processing Systems 38. Cited by: §1, §2, §4.1.
  • Kazemnejad et al. (2025) A. Kazemnejad, M. Aghajohari, E. Portelance, A. Sordoni, S. Reddy, A. Courville, and N. Le Roux VinePPO: refining credit assignment in RL training of LLMs. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 267, pp. 29557–29590. Cited by: §5.
  • Kenny and Keane (2021) E. M. Kenny and M. T. Keane On generating plausible counterfactual and semi-factual explanations for deep learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35, pp. 11575–11585. Cited by: §2.
  • Khandoga et al. (2026) M. Khandoga, R. Yuan, and V. K. Sankarapu Beyond uniform credit: causal credit assignment for policy optimization. arXiv preprint arXiv:2602.09331. Cited by: §4.1, §5.
  • Kydlíček (2025) H. Kydlíček Math-Verify: math verification library. Note: Version 0.9.0 External Links: Link Cited by: §E.2, §4.1.
  • Lewkowycz et al. (2022) A. Lewkowycz, A. Andreassen, D. Dohan, E. Dyer, H. Michalewski, V. Ramasesh, A. Slone, C. Anil, I. Schlag, T. Gutman-Solo, Y. Wu, B. Neyshabur, G. Gur-Ari, and V. Misra Solving quantitative reasoning problems with language models. Advances in neural information processing systems 35, pp. 3843–3857. Cited by: §4.1.
  • Li et al. (2026) Z. Li, L. Kang, F. Xiao, L. Xing, Q. Si, Z. Li, W. Gong, D. Yang, Y. Xiao, and H. Guo Outcome-grounded advantage reshaping for fine-grained credit assignment in mathematical reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 24681–24693. Cited by: §5.
  • Lightman et al. (2024) H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe Let’s verify step by step. In International Conference on Learning Representations, Vol. 2024, pp. 39578–39601. Cited by: §5.
  • Liu et al. (2025) Z. Liu, C. Chen, W. Li, P. Qi, T. Pang, C. Du, W. S. Lee, and M. Lin Understanding R1-Zero-like training: a critical perspective. In Conference on Language Modeling (COLM), Cited by: §5.
  • Lu et al. (2022) J. Lu, L. Yang, B. Mac Namee, and Y. Zhang A rationale-centric framework for human-in-the-loop machine learning. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6986–6996. Cited by: §1.
  • Ma et al. (2026) C. Ma, S. Yang, K. Huang, J. Lu, H. Meng, S. Wang, B. Ding, S. Vosoughi, G. Wang, and J. Zhou FIPO: eliciting deep reasoning with future-KL influenced policy optimization. In Conference on Language Modeling (COLM), Cited by: §4.1, §5.
  • Mathematical Association of America (2025) Mathematical Association of America American Mathematics Competitions (AMC). Note: Accessed: 2026-07-15 External Links: Link Cited by: §4.1.
  • Mathematical Association of America (2026) Mathematical Association of America American Invitational Mathematics Examination (AIME). Note: Accessed: 2026-07-15 External Links: Link Cited by: §1, §4.1.
  • Mirzadeh et al. (2025) I. Mirzadeh, K. Alizadeh-Vahid, H. Shahrokhi, O. Tuzel, S. Bengio, and M. Farajtabar Gsm-symbolic: understanding the limitations of mathematical reasoning in large language models. In International Conference on Learning Representations, Vol. 2025, pp. 94743–94765. Cited by: §1, §2, §4.1.
  • Mou et al. (2026) C. Mou, Z. Zhuang, X. Chen, and Y. Zhang Beyond uniform credit assignment: selective eligibility traces for rlvr. arXiv preprint arXiv:2605.05965. Cited by: §5.
  • OpenAI (2024) OpenAI Learning to reason with LLMs. External Links: Link Cited by: §1.
  • OpenAI (2026) OpenAI GPT-5.5 system card. External Links: Link Cited by: §B.1, §2.
  • Peters et al. (2016) J. Peters, P. Bühlmann, and N. Meinshausen Causal inference by using invariant prediction: identification and confidence intervals. Journal of the Royal Statistical Society Series B: Statistical Methodology 78 (5), pp. 947–1012. Cited by: §1.
  • Rein et al. (2024) D. Rein, B. L. Hou, A. C. Stickland, J. Petty, R. Y. Pang, J. Dirani, J. Michael, and S. R. Bowman GPQA: a graduate-level google-proof q&a benchmark. In Conference on Language Modeling (COLM), Cited by: §4.1.
  • Ruan et al. (2025) Z. Ruan, Y. Li, H. Zhu, Y. Chen, P. Li, Y. Liu, and G. Chen Enhancing large language model reasoning via selective critical token fine-tuning. arXiv preprint arXiv:2510.10974. Cited by: §5.
  • Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §1, §3.1, §4.1, §5.
  • Stanford Math Tournament (2025) Stanford Math Tournament Stanford Math Tournament 2025: tests and solutions. Note: Accessed: 2026-07-15 External Links: Link Cited by: §4.1.
  • Wang et al. (2025a) C. Wang, Y. Feng, D. Chen, Z. Chu, R. Krishna, and T. Zhou Wait, we don’t need to” wait”! removing thinking tokens improves reasoning efficiency.. In EMNLP (Findings), pp. 7459–7482. Cited by: §B.3, §2.
  • Wang et al. (2024) P. Wang, L. Li, Z. Shao, R. Xu, D. Dai, Y. Li, D. Chen, Y. Wu, and Z. Sui Math-shepherd: verify and reinforce llms step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 9426–9439. Cited by: §5.
  • Wang et al. (2025b) S. Wang, L. Yu, C. Gao, C. Zheng, S. Liu, R. Lu, K. Dang, X. Chen, J. Yang, Z. Zhang, Y. Liu, A. Yang, A. Zhao, Y. Yue, S. Song, B. Yu, G. Huang, and J. Lin Beyond the 80/20 rule: high-entropy minority tokens drive effective reinforcement learning for llm reasoning. Advances in Neural Information Processing Systems 38, pp. 115452–115486. Cited by: §5.
  • Wang et al. (2022) T. Wang, R. Sridhar, D. Yang, and X. Wang Identifying and mitigating spurious correlations for improving robustness in nlp models. In Findings of the association for computational linguistics: NAACL 2022, pp. 1719–1729. Cited by: §1.
  • Wang et al. (2026) X. Wang, H. Zhang, H. Wang, Y. Shi, R. Li, K. Han, C. Tong, H. Deng, A. K. Taylor, R. Sun, Y. Zhu, J. Cong, Y. Sun, and W. Wang ARLArena: a unified framework for stable agentic reinforcement learning. In International Conference on Machine Learning, Cited by: §E.1.
  • Xie et al. (2026) C. Xie, R. Pan, X. Wu, Y. Zhang, J. Fu, T. Gao, and G. Zhou Unlocking exploration in rlvr: uncertainty-aware advantage shaping for deeper reasoning. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 19057–19076. Cited by: §5.
  • Yan et al. (2025) J. Yan, Y. Li, Z. Hu, Z. Wang, G. Cui, X. Qu, Y. Cheng, and Y. Zhang Learning to reason under off-policy guidance. Advances in Neural Information Processing Systems 38, pp. 117157–117186. Cited by: §5.
  • Yang et al. (2025) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, C. Zheng, D. Liu, F. Zhou, F. Huang, F. Hu, H. Ge, H. Wei, H. Lin, J. Tang, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Zhou, J. Lin, K. Dang, K. Bao, K. Yang, L. Yu, L. Deng, M. Li, M. Xue, M. Li, P. Zhang, P. Wang, Q. Zhu, R. Men, R. Gao, S. Liu, S. Luo, T. Li, T. Tang, W. Yin, X. Ren, X. Wang, X. Zhang, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Zhang, Y. Wan, Y. Liu, Z. Wang, Z. Cui, Z. Zhang, Z. Zhou, and Z. Qiu Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §1, §1, §4.1.
  • Yu et al. (2025) Q. Yu, Z. Zhang, R. Zhu, Y. Yuan, X. Zuo, Y. Yue, W. Dai, T. Fan, G. Liu, J. Liu, L. Liu, X. Liu, H. Lin, Z. Lin, B. Ma, G. Sheng, Y. Tong, C. Zhang, M. Zhang, R. Zhang, W. Zhang, H. Zhu, J. Zhu, J. Chen, J. Chen, C. Wang, H. Yu, Y. Song, X. Wei, H. Zhou, J. Liu, W. Ma, Y. Zhang, L. Yan, Y. Wu, and M. Wang Dapo: an open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems 38, pp. 113222–113244. Cited by: §E.1, Table 6, §3.1, §4.1, §5.
  • Yue et al. (2025) Y. Yue, Z. Chen, R. Lu, A. Zhao, Z. Wang, Y. Yue, S. Song, and G. Huang Does reinforcement learning really incentivize reasoning capacity in llms beyond the base model?. Advances in Neural Information Processing Systems 38, pp. 57654–57689. Cited by: §5.
  • Zeng et al. (2025) W. Zeng, Y. Huang, Q. Liu, W. Liu, K. He, Z. Ma, and J. He SimpleRL-Zoo: investigating and taming zero reinforcement learning for open base models in the wild. In Conference on Language Modeling (COLM), Cited by: §5.
  • Zheng et al. (2025) C. Zheng, S. Liu, M. Li, X. Chen, B. Yu, C. Gao, K. Dang, Y. Liu, R. Men, A. Yang, J. Zhou, and J. Lin Group sequence policy optimization. arXiv preprint arXiv:2507.18071. Cited by: §4.1, §5.

Our training experiments are limited to mathematical reasoning with dense Qwen3 models of 1.7B and 4B parameters trained on DAPO-Math-17K. Although GPQA-Diamond provides evidence of transfer to scientific reasoning, the effectiveness of SCAPO at larger model and data scales and with broader training domains remains to be evaluated. Future work should also examine other architectures, including mixture-of-experts (MoE) and hybrid models.

Appendix B Semifactual Perturbations and Token-Level Analysis

Section titled “Appendix B Semifactual Perturbations and Token-Level Analysis”

We request GPT-5.5 (OpenAI, 2026) to generate four perturbed prompts per DAPO-Math-17K problem, using the full system and user prompts in Table B.1.

Table 3: Full prompts used to generate semifactual perturbations. The user template is filled with the original problem and reference answer.

We randomly select 1,000 DAPO-Math-17K questions and their four perturbed prompts to form a fixed diagnostic subset dataset.

Frozen Qwen3-4B-Base generates one response per original prompt, with temperature 1.0, top-p=1.0p=1.0, and a limit of 8,192 response tokens. We then teacher-force the same response tokens under the original prompt and all four perturbed prompts. Each response token contributes one mean drift d_td\_{t} across the four perturbations, yielding 870,586 original response token drifts.

We assign each decoded response token to one of the eight mutually exclusive categories in Table 4. Reflection markers are identified using a 16-entry lexicon adapted from prior work (Wang et al., 2025a) and our generation traces. Discourse connectives are identified using 80 single-part DiMLex-Eng forms that contain no whitespace (Das et al., 2018). Lexical matching ignores case, surrounding whitespace, and edge punctuation, with reflection markers taking precedence over discourse connectives.

Table 4: Token categories and drift statistics underlying Figure 2(c). Share is the percentage of the 870,586 response token positions assigned to each category. Mean is the category’s average drift d_td\_{t}. Relative mean is this average divided by the overall mean (0.01640).   denotes a space and \n a newline.

CategoryClassification ruleToken examplesShare (%)Mean d_td\_{t}Relative mean
Reflection markeraMatches the reflection lexicon after lexical normalization.any,  check, Now,  However,  verify,  again0.290.044962.74
Discourse connectiveMatches the 80-form DiMLex-Eng lexicon after normalization. Excludes reflection markers.and,  for,  if,  or, Thus,  Therefore2.680.038072.32
WordContains a Unicode letter and matches neither lexical category nor the math-symbol rule.the,  of,  is,  to,  we,  in40.920.025061.53
PunctuationAll non-whitespace characters have Unicode category P*. Excludes math symbols., . : # ), :\n6.750.019561.19
Math symbolBegins with \ or contains only characters from the fixed math/LaTeX symbol set. Excludes numbers.,  =,  +,  -, {, }26.620.007680.47
NumberMatches a signed integer, decimal, or percentage expression.0, 1, 2, 3, 4, 515.310.006120.37
Whitespace-onlyDecodes entirely to Unicode whitespace.,   , \n, \n\n6.710.007180.44
OtherControl tokens, undecodable UTF-8 fragments, or remaining forms not covered above.<endoftext>, ```, “, $,0.72
  • a

    The reflection lexicon contains the following 16 words: again, ah, alternative, alternatively, another, any, but, check, hmm, however, maybe, now, oh, other, verify, wait.

Figures 6 and 7 illustrate two cases with their original and perturbed prompts. Response tokens are shaded by their mean probability drift across the four prompt perturbations, with darker shading indicating greater sensitivity. These examples show that even when the final answer is correct, the probabilities of individual response tokens can change substantially under answer-preserving prompt perturbations.

[figure owed: Figure 6: Token-level semifactual sensitivity in a compound-interest problem.]

Figure 6: Token-level semifactual sensitivity in a compound-interest problem.

[figure owed: Figure 7: Token-level semifactual sensitivity in a numeral-base problem.]

Figure 7: Token-level semifactual sensitivity in a numeral-base problem.

We use frozen Qwen3-4B-Base on the 1,000-question panel in Appendix B.2. Both base sampling and dd-filtered decoding use the same prompt template, temperature of 1.0, top-p=1.0p=1.0, and a maximum response length of 8,192 tokens. We cap the cumulative clean-policy probability mass of masked tokens at 0.8, which is the sole filtering hyperparameter. For each question, we independently generate one response under each decoding strategy.

At each decoding step, we compute the mean bounded-symmetric drift of every vocabulary token across the four perturbed prompts. We sort all token candidates by decreasing drift. We mask token candidates in this order until adding the next candidate would exceed the mass cap. The EOS token is always retained. The cap limits the total probability mass removed, not the fraction of tokens masked.

Writing p(v)p(v) for the clean-policy probability at the current prefix and M\mathcal{M} for the masked set, the filtered sampling distribution is

p_filter(v)=p(v) 1{v∉M}1−∑_w∈Mp(w).p\_{\mathrm{filter}}(v)=\frac{p(v)\,\mathbf{1}\{v\notin\mathcal{M}\}}{1-\sum\_{w\in\mathcal{M}}p(w)}.(12)

We sample a proposal from the clean policy and accept it if it is unmasked. Otherwise, we reject it and resample from the distribution renormalized over unmasked tokens. Drift and the masked set are recomputed at each step using the current filtered-response prefix.

As shown in Table 5, filtering yields 202 incorrect-to-correct and 60 correct-to-incorrect transitions, a gain of 14.20 percentage points. On average, 50.58 token proposals are rejected and resampled per filtered response (4.58% of decoding steps), with at least one such rejection in each of the 1,000 filtered responses.

Table 5: Decoding results on 1,000 questions with frozen Qwen3-4B-Base. The lower block reports question counts for the four combinations of baseline and filtered answer correctness.

MetricBase samplingdd-filtered
Correct answers158300
Accuracy (%)15.8030.00
Paired correctness outcomes (question counts)
Filtered correctFiltered incorrect
Baseline correct9860
Baseline incorrect202640

We analyze credit augmentation under a stochastic-gradient model with a fixed objective FF.

Let g^_λ\widehat{g}\_{\lambda} and g^_0\widehat{g}\_{0} be the batch gradients of Eqs. 10 and 4 on the same complete prompt groups, with advantages and stability scores held fixed. If importance ratios are at most RR and token log-probability gradients have norm at most BB, then

∥g^_λ−g^_0∥≤λH,H:=RB/2.\|\widehat{g}\_{\lambda}-\widehat{g}\_{0}\|\leq\lambda H,\qquad H:=RB/2.(13)

Within each group, write ⟨⋅⟩\langle\cdot\rangle for the valid-token mean and c=(−u)_+c=(-u)\_{+}. Eq. 7 gives ⟨u⟩=0\langle u\rangle=0 and ⟨u2⟩≤1\langle u^{2}\rangle\leq 1, hence

$$\langle c\rangle=\tfrac{1}{2}\langleu

At differentiable points, the coefficient of a token’s log-probability gradient in the clipped surrogate is rArA, rmax⁡(A,0)r\max(A,0), or rmin⁡(A,0)r\min(A,0), each rr-Lipschitz in AA. Replacing AA by A−λcA-\lambda c therefore changes the group gradient by at most λRB⟨c⟩≤λH\lambda RB\langle c\rangle\leq\lambda H. Token-mean aggregation across groups preserves this bound. ∎

Consider

θ_n+1=θ_n+ηv^_n,v^_n=g^_n+λ_nh^_n,\theta\_{n+1}=\theta\_{n}+\eta\widehat{v}\_{n},\qquad\widehat{v}\_{n}=\widehat{g}\_{n}+\lambda\_{n}\widehat{h}\_{n},(14)

where g^_n\widehat{g}\_{n} is the baseline gradient and λ_nh^_n\lambda\_{n}\widehat{h}\_{n} is the gradient difference induced by credit augmentation, with ∥h^_n∥≤H\|\widehat{h}\_{n}\|\leq H by Lemma D.1. Let E_n\mathbb{E}\_{n} denote the expectation conditional on the history before update nn. Assume FF is LL-smooth, bounded above by F_sup⁡F\_{\sup}, and

∥E_ng^_n−∇F(θ_n)∥≤β,E_n∥v^_n−E_nv^_n∥2≤σ2.\|\mathbb{E}\_{n}\widehat{g}\_{n}-\nabla F(\theta\_{n})\|\leq\beta,\qquad\mathbb{E}\_{n}\|\widehat{v}\_{n}-\mathbb{E}\_{n}\widehat{v}\_{n}\|^{2}\leq\sigma^{2}.(15)

The two gradient components may be correlated. The parameter β\beta allows bias in the baseline direction.

Theorem D.2 (Finite-duration augmentation).
Section titled “Theorem D.2 (Finite-duration augmentation).”

Under the above assumptions, let 0<η≤1/L0<\eta\leq 1/L and use the schedule in Eq. 11. For any T≥1T\geq 1, set Δ_F=F_sup⁡−EF(θ_1)\Delta\_{F}=F\_{\sup}-\mathbb{E}F(\theta\_{1}) and m_T=min⁡(T,N_0)m\_{T}=\min(T,N\_{0}). Then

1T∑_n=1TE∥∇F(θ_n)∥2≤2Δ_FηT+Lησ2+β2+(2βHλ_0+H2λ_02)m_TT.\frac{1}{T}\sum\_{n=1}^{T}\mathbb{E}\|\nabla F(\theta\_{n})\|^{2}\leq\frac{2\Delta\_{F}}{\eta T}+L\eta\sigma^{2}+\beta^{2}+\bigl(2\beta H\lambda\_{0}+H^{2}\lambda\_{0}^{2}\bigr)\frac{m\_{T}}{T}.(16)

Write v_n=∇F(θ_n)v\_{n}=\nabla F(\theta\_{n}) and b_n=E_nv^_n−v_nb\_{n}=\mathbb{E}\_{n}\widehat{v}\_{n}-v\_{n}, so ∥b_n∥≤β+Hλ_n\|b\_{n}\|\leq\beta+H\lambda\_{n}. Smoothness and Eq. 15 give

E_nF(θ_n+1)\displaystyle\mathbb{E}\_{n}F(\theta\_{n+1})≥F(θ_n)+η⟨v_n,v_n+b_n⟩−Lη22(∥v_n+b_n∥2+σ2)\displaystyle\geq F(\theta\_{n})+\eta\langle v\_{n},v\_{n}+b\_{n}\rangle-\tfrac{L\eta^{2}}{2}\bigl(\|v\_{n}+b\_{n}\|^{2}+\sigma^{2}\bigr)
------------
≥F(θ_n)+η2∥v_n∥2−η2(β+Hλ_n)2−Lη22σ2,\displaystyle\geq F(\theta\_{n})+\tfrac{\eta}{2}\|v\_{n}\|^{2}-\tfrac{\eta}{2}(\beta+H\lambda\_{n})^{2}-\tfrac{L\eta^{2}}{2}\sigma^{2},

where the second line uses ηL≤1\eta L\leq 1 and 2⟨v,v+b⟩=∥v∥2+∥v+b∥2−∥b∥22\langle v,v+b\rangle=\|v\|^{2}+\|v+b\|^{2}-\|b\|^{2}. Taking expectations, summing over nn, and using EF(θ_T+1)≤F_sup⁡\mathbb{E}F(\theta\_{T+1})\leq F\_{\sup} yields the claim. ∎

For an unbiased baseline (β=0\beta=0), the augmentation term is H2λ_02min⁡(T,N_0)/TH^{2}\lambda\_{0}^{2}\min(T,N\_{0})/T. With fixed λ_0\lambda\_{0} and N_0N\_{0}, this contribution to the average stationarity bound decays as N_0/TN\_{0}/T after augmentation ends. Here TT is an arbitrary observation horizon, not a prescribed training budget.

Appendix E Additional Experimental Details

Section titled “Appendix E Additional Experimental Details”

Table 6 lists shared training hyperparameters and method-specific settings. A rule-based verifier assigns reward 1 to a correct boxed answer and 0 otherwise, and no separate format reward is used. All models share the following prompt template for mathematical reasoning during training and inference:

All methods, including GSPO and SAPO, use token-mean loss reduction for better performance on mathematical reasoning tasks (Yu et al., 2025; Wang et al., 2026).

Table 6: Shared and method-specific training hyperparameters. Batch sizes count prompts unless stated otherwise. Each rollout step contains two policy optimization steps. Clipping offsets are relative to 1.

HyperparameterQwen3-4B-BaseQwen3-1.7B-Base
Data and rollout settings
Training datasetDAPO-Math-17K (Yu et al., 2025)
Maximum prompt length1,024
Maximum response length16,384
Rollout batch size (prompts)128
Responses per prompt (GG)8
Sampling temperature / top-pp1.0  /  1.01.0\;/\;1.0
Optimization settings
OptimizerAdamW, β_1=0.9\beta\_{1}=0.9, β_2=0.999\beta\_{2}=0.999
Learning rate10−610^{-6}
Learning-rate scheduleConstant
Weight decay0.010.01
Gradient clipping norm1.01.0
Update mini-batch size (prompts)64
Loss reductionToken-mean
KL regularizationDisabled
Training settings
Rollout steps300500
Policy optimization steps6001,000
Mixed precisionBF16
Method-specific settings
SCAPO: Correction strength (λ_0\lambda\_{0})0.010.01
SCAPO: Augmentation duration (N_0N\_{0})120200
GRPO / CF-GRPO / FIPO / SCAPO:
Policy clipping (lower / upper)0.20  /  0.280.20\;/\;0.28
Dual-clip coefficient10.010.0
GSPO: Policy clipping (lower / upper)3×10−4  /  4×10−43\times 10^{-4}\;/\;4\times 10^{-4}
SAPO: Gate temperatures (τ_pos/τ_neg\tau\_{\mathrm{pos}}/\tau\_{\mathrm{neg}})1.0  /  1.051.0\;/\;1.05
CF-GRPO: Maximum probed spans per response10
CF-GRPO: Span length5–50
CF-GRPO: Token-weight bounds[0.5,4.0][0.5,4.0]
FIPO: Future-KL decay32.032.0
FIPO: Influence-weight clipping[1.0,1.2][1.0,1.2]
FIPO: Safety threshold10.010.0

Each rollout batch contains 128 prompt groups and is optimized once in mini-batches of 64 groups (512 responses), giving two policy optimization steps per rollout step. Thus, N_0=120/200N\_{0}=120/200 policy optimization steps correspond to 60/100 rollout steps for 4B/1.7B. Diagnostic checkpoint indices use rollout steps unless stated otherwise.

E.2 Evaluation protocol and training curves

Section titled “E.2 Evaluation protocol and training curves”

Table 7 summarizes the evaluation datasets and sample counts.

Table 7: Evaluation benchmarks and sample counts. Slash-separated problem counts follow the listed years. ∗For GPQA-Diamond, we enumerate all 4!=244!=24 permutations of the multiple-choice options to avoid contamination.

BenchmarkProblemsSamples per problem
AIME 2024 / 2025 / 202630 / 30 / 3016
AMC 2023 / 2024 / 202540 / 45 / 4216
HMMT Feb. 2025 / 202630 / 3316
BRUMO 20253016
SMT 20255316
Omni-Math2,8211
Minerva2721
OlympiadBench6741
NoOp-AIME 2024 / 2025 / 202630 / 30 / 3016
ThinkBench-AIME 2024 / 2025 / 2026120 / 120 / 1204
GPQA-Diamond19824∗

For Omni-Math, we use the 2,821-problem subset designed for rule-based evaluation. We evaluate the final checkpoints using identical prompts and sample counts across methods, with temperature 0.7, top-p=0.9p=0.9, and a maximum response length of 16,384 tokens. Responses on the mathematical benchmarks are scored with Math-Verify (Kydlíček, 2025).

We perform rule-based validation before training and every 40 policy optimization steps. Figure 1 presents the corresponding accuracy curves.

Appendix F Additional Experimental Results

Section titled “Appendix F Additional Experimental Results”

Table 8 shows the yearly results underlying Table 1.

Table 8: Yearly accuracy (%) for Table 1. Bold and underlining denote the best and second-best results.

In-DistributionOut-of-Distribution
MethodAIMEAMCHMMTNoOp-AIMEThinkBench-AIME
2425262324252526242526242526
Qwen3-4B-Base
Base8.337.926.6747.6632.5032.891.043.038.337.294.588.963.756.88
GRPO23.5423.1319.5866.4155.6957.7410.8312.5021.2521.2519.1725.4222.9219.58
GSPO27.0822.9220.4273.5961.3959.8210.4216.6719.5821.4619.3824.5822.7118.96
SAPO26.4624.1721.4672.5059.3165.3312.2917.8021.2521.0418.9627.7122.5020.21
CF-GRPO24.1724.1719.5868.4459.0359.2313.1314.9623.7521.4620.0026.8823.3320.42
FIPO27.5027.0821.6769.0661.8163.2412.0818.1823.3320.6321.2526.6722.2922.71
SCAPO29.1727.7126.2570.3163.1963.8413.9618.1822.7125.6222.5027.5026.4624.38
Qwen3-1.7B-Base
Base3.963.753.1332.6617.5020.680.001.332.711.672.714.583.541.46
GRPO10.636.675.8346.4128.1925.301.252.658.545.004.799.796.466.46
GSPO9.587.085.4244.3827.0827.981.882.276.466.045.4210.006.465.21
SAPO13.548.547.9251.0933.6131.993.545.687.507.718.9611.678.758.33
CF-GRPO9.175.215.8346.4123.7527.082.503.418.756.045.009.586.884.38
FIPO8.757.504.7946.2525.2827.081.041.897.925.426.4610.215.005.83
SCAPO14.7912.927.9251.0937.0836.764.795.118.339.177.7116.2511.468.33

We report Pass@kk on AIME and AMC, measuring the probability of obtaining at least one correct answer within kk attempts. We estimate the curves from 128 responses per problem using the standard unbiased estimator, with the same sampling and scoring settings as the main evaluation. Figure 8 shows that SCAPO achieves the highest Pass@128 at both model scales.

Figure 8: Pass@ k k on the AIME 2024–2026 and AMC 2023–2025 benchmarks at both model scales.