betaFeedback

WorksComputer Science

SAEPO: Sparse-Autoencoder-Guided Credit Assignment for Policy Optimization

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has demonstrated strong performance in improving large language model (LLM) reasoning, yet its credit-assignment signal remains coarse. Outcome verifiers provide scalable supervision by judging whether a completed response is correct, but they do not directly indicate which intermediate reasoning tokens contribute to success or failure. As a result, policy optimization can be inefficient, especially when training base models directly from sparse outcome feedback. In this paper, we introduce SAEPO, a Sparse AutoEncoder-guided token-level credit assignment method for outcome-supervised Policy Optimization. Rather than treating correctness only as a rollout-level (sequence-level) signal, SAEPO uses a pretrained sparse autoencoder (SAE) to build token-level semantic representations within reasoning trajectories; it scores each token based on the SAE concepts (e.g., penalizing wrong "final-answer" tokens but rewarding correct "reasoning-process" tokens), learned in an unsupervised manner, to achieve fine-grained credit assignment. SAEPO is a plug-in advantage-shaping module compatible with various policy optimization algorithms. We instantiate SAEPO with both GRPO and GSPO, covering token-ratio and sequence-ratio policy-gradient objectives, and evaluate SAEPO across three LLM backbones on six math and two code benchmarks. Empirical results show that SAEPO improves both the math and code benchmark averages over the matched baselines, with gains of up to 6.63% and 5.57%, respectively. On Qwen3-1.7B-Base, training curves also show faster early accuracy growth. Feature and token-level analyses suggest that the SAE-derived signal favors question-relevant concepts and reasoning tokens.

Introduction

Reinforcement Learning with Verifiable Rewards (RLVR) has become an effective paradigm for improving the reasoning ability of Large Language Models (LLMs) on tasks with rule-based correctness signals. In mathematical reasoning ([38, 55, 51, 50] (Team 2025a)), code generation ([20, 6, 49, 16]), and theorem proving ([19, 58, 15]), outcome verifiers can judge whether a completed response is correct without requiring human-written reasoning traces. This makes RLVR particularly attractive for training models on challenging reasoning tasks. Recent outcome-supervised policy-gradient methods, including GRPO ([38]) and GSPO ([61]), have made this recipe practical by updating the model from sampled solutions and verifiable final-answer rewards. Although these methods differ in their policy-ratio and clipping designs, their supervision ultimately arrives at the response level: a completed rollout (sequence) is judged correct or incorrect, and the same resulting scalar learning signal must then be broadcast into distinct token-level policy-gradient updates, as shown in Figure 1(top).

Comparison of credit assignment mechanisms in outcome-supervised policy optimizations

Figure 1. Comparison of credit assignment mechanisms in outcome-supervised policy optimizations. GRPO assigns the same rollout-level credit to all tokens in a generated reasoning trace, so decisive reasoning steps and incidental tokens receive identical credit. Our SAEPO assigns question-local, token-level semantic credit based on semantic representations from the SAE feature space; therefore it rewards question-relevant reasoning tokens while penalizing uninformative or misleading tokens with more fine-grained credit assignment. Top words of the most related concepts to an example rewarded token “interior” show that our SAEPO can achieve interpretable token-level credit assignment.

This broadcast is the source of the credit-assignment bottleneck. The KTAE study by Sun et al. [40] observes that GRPO- and DAPO-style methods compute rollout-level advantages and assign the same value to every token in the sequence, failing to capture token-specific contributions. OAR similarly describes standard GRPO as propagating group-level rewards uniformly to every token, neglecting the varying contribution of individual reasoning steps [24]. GTPO/GRPO-S frames the same issue as a coarse-grained assignment that applies a uniform reward to all tokens in long-chain reasoning [41]. These observations point to the same limitation: outcome supervision separates successful from failed rollouts, but does not explain how credit should be distributed within each rollout.

To obtain finer-grained credit, we need a signal that can distinguish the internal reasoning states of successful and unsuccessful rollouts, rather than relying only on their final scalar outcomes. The model’s hidden states provide a natural source of such information, but dense activations are difficult to compare and interpret directly. Sparse Autoencoders (SAEs) [1, 13, 45, 25] offer a scalable way to project dense hidden states into sparse latent features, which often correspond to more interpretable and less noisy components of model computation. This sparse feature space gives us a semantic interface for RLVR: successful and unsuccessful rollouts of the same question can be contrasted not only by their token identities or final rewards, but by the internal features activated along their reasoning trajectories.

Based on this intuition, it is natural to use the sparse feature space to construct token-level credit signals during policy optimization. We introduce SAEPO, a Sparse AutoEncoder-guided token-level credit assignment method for outcome-supervised Policy Optimization. Rather than treating correctness only as a rollout-level signal, SAEPO compares correct and incorrect rollouts of the same question in semantic space constructed with SAE. Intuitively, in each group of rollouts during GRPO variants, each token’s reward depends on how many of its similar tokens are in correct and incorrect rollouts; a token with more similar tokens in correct rollouts than in incorrect rollouts receives a higher reward (more details in Figure 1(bottom) and a more sophisticated algorithm in § 3.3).

This design makes SAEPO a plug-in for different policy optimization algorithms without requiring a separately trained reward model. Specifically, the SAE-derived score only reshapes the token-level advantage used during training; the verifier reward, policy ratio, clipping rule, and KL regularizer remain unchanged. As a result, the same SAEPO module can be inserted into different outcome-supervised policy-gradient algorithms, including token-ratio methods such as GRPO [38] and sequence-ratio methods such as GSPO [61]. SAEPO incurs minimal inference overhead: the SAE is used only during fine-tuning; therefore the final policy requires no SAE computation at inference time.

We instantiate SAEPO with GRPO and GSPO and evaluate it on both mathematical reasoning and coding tasks using Qwen3-1.7B-Base, Qwen3-4B-Base and OLMo-3-7B-Base. Across these settings, SAEPO improves average accuracy on both math and code benchmarks over the corresponding vanilla algorithms and shows improved training efficiency. Further analysis shows that the SAE-derived signal concentrates on semantically meaningful reasoning positions, suggesting that sparse internal representations provide a useful interface for fine-grained credit assignment in outcome-supervised RLVR. Our contributions are summarized as follows:

  • We propose SAEPO, a token-level credit-assignment method that uses SAE features to construct question-local contrasts between correct and incorrect rollouts.

  • We show that SAEPO can be used as a plug-in advantage-shaping module for different policy optimization algorithms, without modifying the verifier reward, policy ratio, clipping rule, or KL regularizer.

  • Interpretability analyses of the SAE-derived credit signal show that SAEPO concentrates on semantically meaningful reasoning positions and highlights question-relevant SAE features, offering a transparent view of how token-level credit is assigned.

  • Experiments with different LLM backbones show improved average accuracy and training efficiency over the corresponding base policy optimization algorithms.

Related Work

RLVR and Policy Optimization for Reasoning. Reinforcement Learning with Verifiable Rewards (RLVR) has become a central paradigm for improving LLM reasoning on tasks with rule-based correctness signals, including mathematical reasoning, code generation, and theorem proving. Recent systems such as DeepSeek-R1 (Team, 2025a), Kimi k1.5 (Team, 2025b), and Qwen2.5-Math [53] demonstrate the effectiveness of outcome-supervised post-training at scale. Algorithmically, GRPO [38] replaces PPO’s learned critic with a group-normalized baseline computed from multiple rollouts of the same question. Subsequent variants refine different aspects of this recipe: DAPO [55] introduces decoupled clipping, dynamic sampling, and token-level loss aggregation; Dr. GRPO [30] analyzes length and group-normalization biases; REINFORCE++ [12] revisits normalized policy-gradient updates without a learned critic; GSPO [61] moves importance sampling and clipping to the sequence level. These methods differ in their ratio construction, clipping rule, and normalization scheme, but they remain driven by outcome-level correctness signals. In contrast, our work focuses on improving the within-trajectory token-level credit assignment of such outcome-supervised updates.

Fine-Grained Credit Assignment from Outcome Rewards. A growing line of work seeks to extract denser supervision from coarse outcome feedback. Process Reward Models (PRMs) provide step-level feedback using human-labeled or automatically generated supervision [27, 46, 57], but require an auxiliary reward model and additional annotation or search. Other methods infer denser training signals from preference or outcome data: PRIME [5] trains an implicit process reward model online, RTO [62] extracts rewards from a DPO-style implicit reward model, and offline preference-optimization methods such as cDPO [28], Step-DPO [18], T-DPO [56], and SVPO [3] modify the preference-learning objective to better account for multi-step responses. These methods rely on auxiliary reward modeling, additional supervision, or preference-objective design. SAEPO instead uses a frozen SAE to shape token-level advantages while keeping the verifier reward, policy ratio, and clipping rule unchanged.

A second family constructs training signals directly from sampled rollouts without a separate reward model. VinePPO [17] uses Monte Carlo rollouts from intermediate states, Beyond-80/20 [48] focuses updates on high-entropy forking positions, GTPO [41] uses entropy and correctness asymmetry, Token Hidden Reward [7] reweights advantages by likelihood dynamics, and KTAE [40] computes bonuses from correct-versus-incorrect token occurrence statistics. SAEPO differs from these approaches in the signal it uses: it (1) derives fine-grained signals by contrasting rollouts in a sparse semantic space, rather than over token identity or likelihood statistics, and (2) provides concept-level interpretability through its SAE features.

Sparse Autoencoders for Representation-Level Reasoning and Control. Sparse Autoencoders (SAEs) decompose dense LLM activations into sparse latent features and have become a standard tool for mechanistic interpretability [1, 13, 45, 25]. Architectural improvements such as Top-K SAEs (Gao et al., [10]), Gated SAEs (Rajamanoharan et al., [34]), and JumpReLU SAEs (Rajamanoharan et al., [35]) further improve reconstruction quality and feature sparsity. These developments make SAE features useful not only as post-hoc explanations, but also as structured coordinates for analyzing and manipulating model behavior. This view connects to a broader line of representation-level control, where behavioral directions are obtained by contrasting internal activations from positive and negative examples. Methods such as Contrastive Activation Addition (Rimsky et al., [36]), Inference-Time Intervention (Li et al., [23]), and Representation Engineering (Zou et al., [63]) show that such contrasts can isolate behaviorally meaningful directions in activation space. Recent SAE-based reasoning work applies this idea in sparse feature space: ReasonScore studies SAE features associated with uncertainty, exploration, and reflection (Galichin et al., [9]); SAE-Steering controls reasoning strategies such as backtracking and cross-verification (Fang et al., [8]); and ReSA uses SAE-Tuning to transfer reasoning abilities without reasoning traces (Wang et al., [47]). SAE features have also been incorporated into alignment and reward-modeling pipelines, including FPO (Yin et al., [54]), SARM (Zhang et al., [59]), SAFER (Shi et al., [39]), and SparseRM (Liu et al., [29]). These methods use SAE features for interpretation, steering, tuning, or reward model training. In contrast, our SAEPO uses SAE to shape token-level advantages during policy optimization.

Methodology

Preliminary: Sparse Autoencoders

Sparse Autoencoders (SAEs) decompose dense model activations into sparse latent features. Given an activation vector x∈Rd\mathbf{x} \in\mathbb{R}^{d} from a target layer, an SAE encoder maps it to an overcomplete sparse code f=fenc(x)∈Rn\mathbf{f} = f_{\mathrm{enc}}(\mathbf{x}) \in\mathbb{R}^{n}, typically with n≫dn \gg d, and a decoder reconstructs the original activation. Standard SAEs can be written as

f=fenc(x)=σ(Wenc(x−b)),x^=fdec(f)=Wdecf+b,(1)\mathbf{f} = f_{\mathrm{enc}}(\mathbf{x}) = \sigma(\mathbf{W}_{\mathrm{enc}}(\mathbf{x} - \mathbf{b})), \qquad\hat{\mathbf{x}} = f_{\mathrm{dec}}(\mathbf{f}) = \mathbf{W}_{\mathrm{dec}}\mathbf{f} + \mathbf{b}, \tag*{(1)}

where Wenc∈Rn×d\mathbf{W}_{\mathrm{enc}} \in\mathbb{R}^{n \times d}, Wdec∈Rd×n\mathbf{W}_{\mathrm{dec}} \in\mathbb{R}^{d \times n}, b\mathbf{b} is a centering bias, and σ\sigma is an activation or sparsification function. The SAE is trained to reconstruct activations while encouraging sparse codes:

LSAE(x)=∥x−x^∥22+λS(fenc(x)).(2)\mathcal{L}_{\mathrm{SAE}}(\mathbf{x}) = \lVert\mathbf{x} - \hat{\mathbf{x}} \rVert_{2}^{2} + \lambda\mathcal{S}(f_{\mathrm{enc}}(\mathbf{x})). \tag*{(2)}

Here S\mathcal{S} is commonly chosen as an ℓ1\ell_{1} penalty on the sparse code f\mathbf{f}. In this work, we use a BatchTopK SAE (Bussmann et al., [2]), which imposes hard sparsity by selecting the largest latent activations across a minibatch. This allows different samples to activate different numbers of features while controlling the average number of active latents.

The SAE is trained before policy optimization and kept frozen throughout RL training. We use it only as a sparse representation space for constructing token-level credit signals.

Preliminary: Outcome-Supervised Policy Optimization

We consider outcome-supervised RL training for reasoning tasks. For each question qq, the policy samples GG rollouts {oqg}g=1G\{o_{qg}\}_{g=1}^{G}, where gg indexes the rollout sampled for the same question, and receives a scalar verifier reward rqgr_{qg} for each completed rollout. Let JqgJ_{qg} denote the set of positions of the generated response tokens; this is used in the policy objective for rollout oqgo_{qg}. Accordingly, ∣Jqg∣\lvert J_{qg}\rvert is the generated response length used for the objective.

Outcome Advantage. The rollout-level outcome advantage is computed by normalizing rewards within each question group, following the group-relative normalization used in GRPO-style RLVR training [38]:

Aqgout={0,σqr<ϵstd,rqg−μqrσqr+ϵstd,otherwise.(3)A^{\mathrm{out}}_{qg} = \begin{cases} 0, & \sigma^{r}_{q}<\epsilon_{\mathrm{std}},\\ \frac{r_{qg}-\mu^{r}_{q}}{\sigma^{r}_{q}+\epsilon_{\mathrm{std}}}, & \text{otherwise}. \end{cases} \tag*{(3)}

where μqr\mu^{r}_{q} and σqr\sigma^{r}_{q} are the mean and standard deviation of {rq1,…,rqG}\{r_{q1},\ldots,r_{qG}\}, and ϵstd\epsilon_{\mathrm{std}} is a small numerical constant. In typical outcome-supervised training (including GRPO and GSPO), this scalar advantage is broadcast to every generated token: Aqg,t=AqgoutA_{qg,t}=A^{\mathrm{out}}_{qg}, t∈Jqgt\in J_{qg}. This provides group-relative credit across rollouts but does not distinguish the contributions of individual tokens within a rollout.

GRPO. GRPO can be viewed as a critic-free variant of PPO-style clipped policy optimization, where the learned value baseline is replaced by group-relative reward normalization [37, 38]. It uses token-level policy ratios in the clipped surrogate:

rqg,t(θ)=πθ(oqg,t∣q,oqg,<t)πθold(oqg,t∣q,oqg,<t).(4)r_{qg,t}(\theta)=\frac{\pi_{\theta}(o_{qg,t}\mid q,o_{qg,<t})}{\pi_{\theta_{\mathrm{old}}}(o_{qg,t}\mid q,o_{qg,<t})}. \tag*{(4)}

With the per-token advantage Aqg,tA_{qg,t}, the GRPO objective can be written as

LGRPO(θ)=−Eq,g,t∈Jqg[min⁡(rqg,t(θ)Aqg,t,clip⁡(rqg,t(θ),1−ϵclip,1+ϵclip)Aqg,t)]+βKL⁡[πθ∥πref].(5)\mathcal{L}_{\mathrm{GRPO}}(\theta)=-\mathbb{E}_{q,g,t\in J_{qg}}\left[\min\left(r_{qg,t}(\theta)A_{qg,t},\operatorname{clip}(r_{qg,t}(\theta),1-\epsilon_{\mathrm{clip}},1+\epsilon_{\mathrm{clip}})A_{qg,t}\right)\right]+\beta\operatorname{KL}[\pi_{\theta}\Vert\pi_{\mathrm{ref}}]. \tag*{(5)}

GSPO. GSPO replaces token-level importance ratios with a length-normalized sequence-level likelihood ratio and applies clipping at the sequence level [61]. For rollout oqgo_{qg}, the sequence ratio is

sqg(θ)=exp⁡(1∣Jqg∣∑t∈Jqglog⁡πθ(oqg,t∣q,oqg,<t)πθold(oqg,t∣q,oqg,<t)).(6)s_{qg}(\theta)=\exp\left(\frac{1}{\lvert J_{qg}\rvert}\sum_{t\in J_{qg}}\log\frac{\pi_{\theta}(o_{qg,t}\mid q,o_{qg,<t})}{\pi_{\theta_{\mathrm{old}}}(o_{qg,t}\mid q,o_{qg,<t})}\right). \tag*{(6)}

With a rollout-level advantage AqgA_{qg}, the original GSPO surrogate can be written as

LGSPO(θ)=−Eq,g[min⁡(sqg(θ)Aqg,clip⁡(sqg(θ),1−ϵclip,1+ϵclip)Aqg)]+βKL⁡[πθ∥πref].(7)\mathcal{L}_{\mathrm{GSPO}}(\theta)=-\mathbb{E}_{q,g}\left[\min\left(s_{qg}(\theta)A_{qg},\operatorname{clip}(s_{qg}(\theta),1-\epsilon_{\mathrm{clip}},1+\epsilon_{\mathrm{clip}})A_{qg}\right)\right]+\beta\operatorname{KL}[\pi_{\theta}\Vert\pi_{\mathrm{ref}}]. \tag*{(7)}

Since SAEPO supplies token-specific advantages Aqg,tA_{qg,t}, we use the token-wise GSPO variant introduced for advantage customization [61]. This variant preserves the same sequence-level ratio value and clipping condition, but writes the loss over token positions so that Aqg,tA_{qg,t} can be substituted directly. We provide the full token-wise GSPO surrogate in Appendix § 7.§ 1.

In vanilla GRPO and GSPO, Aqg,t=AqgoutA_{qg,t}=A^{\mathrm{out}}_{qg} for all t∈Jqgt\in J_{qg}. In SAEPO, we replace it with a shaped token-level advantage, while leaving the verifier reward, policy-ratio construction, clipping rule, and KL regularizer unchanged.

Plug-in Outcome-Supervised Policy Optimization with SAEPO

Our SAEPO is a plug-in advantage-shaping module for outcome-supervised policy optimization. Figure 2 shows an overview of SAEPO. It constructs a question-local token-level semantic signal from SAE features of the current policy’s rollouts, then adds the normalized signal to the standard outcome advantage. The verifier reward, policy-ratio construction, clipping rule, and KL regularizer are left unchanged, while advantage shaping changes the policy update.

Figure 2. Overview of SAEPO. A frozen SAE encodes token hidden states from grouped rollouts into sparse features. For each token, its counts of similar tokens in correct and incorrect rollouts determine its token-level reward, with higher reward assigned when more similar tokens appear in correct rollouts than in incorrect ones. The token-level reward is normalized and added to the outcome advantage, while the verifier reward, policy-ratio construction, clipping rule, and KL regularizer remain unchanged.

Appendix § 8 provides an on-policy analysis of the expected SAE update through a local surrogate and relates it to a question-weighted success-rate gradient plus an error term.

Step 1: Split Rollouts by Outcome Correctness. For each question qq, the current policy samples GG rollouts {oqg}g=1G\{o_{qg}\}_{g=1}^{G}, where gg indexes the rollout. After grading the final answer of each rollout, we split the group into correct and incorrect rollout sets:

yqg=1{the final answer of oqg is correct},Cq={g:yqg=1},Iq={g:yqg=0}.(8)y_{qg} = \mathbf{1}\{\text{the final answer of }o_{qg}\text{ is correct}\}, \qquad C_q = \{g:y_{qg}=1\}, \qquad I_q = \{g:y_{qg}=0\}. \tag*{(8)}

We use this split to construct the SAE feature contrast. If either CqC_q or IqI_q is empty, the question has no correct-versus-incorrect contrast and receives no SAE signal for that update.

Step 2: Encode Token Hidden States into Sparse Features. For each generated-token position t∈Jqgt \in\mathcal{J}_{qg}, let Hqg,t∈RdH_{qg,t} \in\mathbb{R}^{d} denote the target-layer hidden state corresponding to the policy-loss token. We encode this hidden state with the pretrained SAE:

ϕqg,t=fenc(Hqg,t)∈Rn,(9)\phi_{qg,t} = f_{\mathrm{enc}}(H_{qg,t}) \in\mathbb{R}^{n}, \tag*{(9)}

which generates SAE features for later semantic alignment.

Step 3.1: Semantic Alignment across Rollouts. The core of our method is comparing each token within a rollout against other rollouts of its own question group, rather than unrelated questions. Since different rollouts of the same question may reach the same intermediate result at different positions, we do not require tokens to align by position. For token tt in rollout gg of question qq, we compare its SAE feature with those of every generated token uu in another rollout h≠gh \ne g of the same question. A softmax with temperature τ>0\tau> 0 assigns larger weights to tokens with higher cosine similarity. The weighted sum of these similarities gives one score for rollout hh:

ωqg,t,u(h)=exp⁡(cos⁡(ϕqg,t,ϕqh,u)/τ)∑u′∈Jqhexp⁡(cos⁡(ϕqg,t,ϕqh,u′)/τ),mqg,t(h)=∑u∈Jqhωqg,t,u(h)cos⁡(ϕqg,t,ϕqh,u).(10)\omega_{qg,t,u}^{(h)} = \frac{\exp\left(\cos(\phi_{qg,t},\phi_{qh,u})/\tau\right)}{\sum_{u' \in\mathcal{J}_{qh}}\exp\left(\cos(\phi_{qg,t},\phi_{qh,u'})/\tau\right)}, \qquad m_{qg,t}^{(h)} = \sum_{u \in\mathcal{J}_{qh}}\omega_{qg,t,u}^{(h)}\cos(\phi_{qg,t},\phi_{qh,u}). \tag*{(10)}

Repeating this comparison for each rollout h≠gh \ne g yields one score mqg,t(h)m_{qg,t}^{(h)} for every other rollout hh. We then average these scores separately over the correct and incorrect rollouts:

sqg,t+=1∣Cq∖{g}∣∑h∈Cq∖{g}mqg,t(h),sqg,t−=1∣Iq∖{g}∣∑h∈Iq∖{g}mqg,t(h).(11)s_{qg,t}^{+} = \frac{1}{|C_q \setminus\{g\}|}\sum_{h \in C_q \setminus\{g\}}m_{qg,t}^{(h)}, \qquad s_{qg,t}^{-} = \frac{1}{|I_q \setminus\{g\}|}\sum_{h \in I_q \setminus\{g\}}m_{qg,t}^{(h)}. \tag*{(11)}

We exclude gg to avoid matching token tt to itself. The resulting sqg,t+s_{qg,t}^{+} and sqg,t−s_{qg,t}^{-} measure its average similarity to correct and incorrect rollouts of the same question, respectively. If either set in Eqn. (11) is empty, rollout gg receives no SAE score.

Step 3.2: Calculate Token-Level Semantic Score. We then compute the difference of two alignment scores from Step 3.1 and scale it by the balance of correct and incorrect rollouts for question qq:

Sqg,t=ρq[sqg,t+−sqg,t−],t∈Jqg,(12)S_{qg,t} = \rho_q\left[s_{qg,t}^{+} - s_{qg,t}^{-}\right], \qquad t \in\mathcal{J}_{qg}, \tag*{(12)}

We call Sqg,tS_{qg,t} the semantic score. Here ρq=2min⁡(∣Cq∣,∣Iq∣)/(∣Cq∣+∣Iq∣)\rho_q = 2\min(|C_q|,|I_q|)/(|C_q|+|I_q|) downweights imbalanced correct/incorrect splits. A positive Sqg,tS_{qg,t} means more token tt's similar tokens are in correct rollouts than in incorrect rollouts, and therefore token tt aligns more strongly with correct than incorrect rollouts of the same question; a negative value means the reverse.

Step 4: Advantage Shaping with Token-Level Semantic Score. The raw semantic scores have batch-dependent scale, so we standardize them before adding them to the outcome advantage. Specifically, for each update batch, we compute the mean μS\mu_S and standard deviation σS\sigma_S over all defined raw scores Sqg,tS_{qg,t}. For these tokens, we set

S^qg,t=Sqg,t−μSσS+ϵscore,\widehat{S}_{qg,t} = \frac{S_{qg,t}-\mu_S}{\sigma_S+\epsilon_{\mathrm{score}}},

where ϵscore\epsilon_{\mathrm{score}} is a small numerical constant for stability. For unscored tokens, we set S^qg,t=0\widehat{S}_{qg,t}=0. If no scores are defined in a batch, all tokens receive S^qg,t=0\widehat{S}_{qg,t}=0. The final shaped advantage is

Aqg,t=Aqgout+αS^qg,t,t∈Jqg,(13)A_{qg,t} = A_{qg}^{\mathrm{out}} + \alpha\widehat{S}_{qg,t}, \qquad t \in\mathcal{J}_{qg}, \tag*{(13)}

where α\alpha controls the strength of the SAE signal. When α=0\alpha= 0, the update reduces to the vanilla outcome-only update. Tokens in unscored rollouts also use the outcome-only advantage.

Plug-in Policy Optimization. We instantiate SAEPO as GRPO + SAEPO and GSPO + SAEPO by substituting Eqn. (13) into the corresponding objective (Eqn. (5) and Eqn. (15)). In both cases, the only change from the vanilla optimizer is replacing the broadcast rollout-level (sequence-level) advantage AqgoutA^{\mathrm{out}}_{qg} with the shaped token-level advantage Aqg,tA_{qg,t}. The verifier reward, policy-ratio construction, clipping rule, and KL regularizer are unchanged. The SAE is used only during fine-tuning to compute S^qg,t\widehat{S}_{qg,t}, and the final policy requires no SAE computation at inference time.

Experiments

In this section, we evaluate whether SAEPO’s token-level credit improves outcome-supervised RLVR.

Experimental Setup

Training Data and Reward. For mathematical reasoning, all models are trained on the DeepScaleR-Preview-Dataset ([32]), which contains around 40K math problem-answer pairs from competition-style sources such as AIME, AMC, Omni-MATH, and STILL. For each question, the policy samples a group of rollouts and receives an outcome reward from the final answer. The reward combines a binary correctness score from math_verify with a small format bonus for producing a boxed answer. For code generation, we train on the TACO, PrimeIntellect SYNTHETIC-1, and LiveCodeBench-v5 training splits of the DeepCoder-Preview-Dataset ([31]).

Backbones and Baselines. We use Qwen3-1.7B-Base and Qwen3-4B-Base ((Team, 2025c)) and OLMo-3-7B-Base ([33]) as policy backbones. For each backbone, we compare GRPO + SAEPO against vanilla GRPO, and GSPO + SAEPO against vanilla GSPO. We also include three state-of-the-art token-level credit-assignment methods as baselines: KTAE ([40]), THR ([7]), and GTPO ([41]).

Evaluation. We evaluate accuracy on six mathematical reasoning benchmarks: MATH-500 ([26]), GSM8K ([4]), AIME25 ([60]), AMC ([22]), Minerva Math ([21]), and OlympiadBench ([11]). For code generation, we report LiveCodeBench-v5 ([14, 31]) and LeetCode Dataset v0.3.1 ([52]) (228 held-out test problems), executing every unit test and counting a problem as solved only if all tests pass. More implementation details are in Appendix § 9 and Appendix § 10.

Results

Main Results. Table 1 compares SAEPO with vanilla GRPO and GSPO, as well as three credit-assignment baselines, i.e., KTAE, THR, and GTPO, across all three LLM backbones and both task types. On Qwen3-1.7B-Base, SAEPO successfully enhances both policy optimization algorithms, improving GRPO from 35.56% to 38.68% and GSPO from 36.63% to 39.55%. On Qwen3-4B-Base, SAEPO improves the six-benchmark math average from 48.43% to

Table 1 Accuracy (%) on six math and two code benchmarks across three LLM backbones, with unweighted averages. Bold marks the best result within each backbone’s GRPO or GSPO block.

BackboneMethodMATH-500GSM8KAIME25AMCMinervaOlympiadAvg.LCB-v5LeetCodeAvg.
Qwen3-1.7B-BaseVanilla GRPO63.274.93.326.523.921.535.564.6612.288.47
Qwen3-1.7B-BaseGRPO + KTAE61.676.10.022.927.620.234.735.3811.848.61
Qwen3-1.7B-BaseGRPO + THR62.876.43.327.726.823.336.725.737.026.38
Qwen3-1.7B-BaseGRPO + GTPO45.274.03.313.319.99.327.503.584.824.20
Qwen3-1.7B-BaseGRPO + SAEPO (Ours)65.676.33.334.929.822.138.686.8111.409.11
Qwen3-1.7B-BaseVanilla GSPO62.876.96.727.723.921.836.635.739.657.69
Qwen3-1.7B-BaseGSPO + KTAE60.475.00.022.927.219.334.134.6610.097.37
Qwen3-1.7B-BaseGSPO + THR64.677.010.024.126.520.637.124.668.336.50
Qwen3-1.7B-BaseGSPO + GTPO36.873.20.09.617.67.324.091.437.024.23
Qwen3-1.7B-BaseGSPO + SAEPO (Ours)65.878.76.732.530.523.139.555.0211.408.21
Qwen3-4B-BaseVanilla GRPO77.689.510.044.636.032.948.4313.2610.9612.11
Qwen3-4B-BaseGRPO + KTAE75.688.53.345.841.232.047.7413.2612.7212.99
Qwen3-4B-BaseGRPO + THR77.088.96.742.232.033.746.7411.4711.4011.44
Qwen3-4B-BaseGRPO + GTPO53.287.90.026.524.612.934.196.815.266.04
Qwen3-4B-BaseGRPO + SAEPO (Ours)78.090.810.047.039.734.349.9712.5422.8117.68
Qwen3-4B-BaseVanilla GSPO77.090.06.743.436.432.947.7312.9013.1613.03
Qwen3-4B-BaseGSPO + KTAE73.289.310.039.839.030.646.9711.478.339.90
Qwen3-4B-BaseGSPO + THR74.488.810.042.234.233.847.2311.1112.2811.70
Qwen3-4B-BaseGSPO + GTPO47.685.70.018.123.512.231.176.815.266.04
Qwen3-4B-BaseGSPO + SAEPO (Ours)78.490.110.043.443.835.250.1514.3418.8616.60
OLMo-3-7B-BaseVanilla GRPO55.286.60.025.324.620.035.298.607.898.25
OLMo-3-7B-BaseGRPO + KTAE62.086.63.328.929.422.338.758.967.898.43
OLMo-3-7B-BaseGRPO + THR60.087.30.028.923.222.436.969.687.898.79
OLMo-3-7B-BaseGRPO + GTPO41.085.40.018.119.99.528.984.303.954.12
OLMo-3-7B-BaseGRPO + SAEPO (Ours)65.488.36.737.326.827.041.929.6810.9610.32
OLMo-3-7B-BaseVanilla GSPO67.286.010.036.125.026.041.7111.119.2110.16
OLMo-3-7B-BaseGSPO + KTAE63.685.56.732.525.726.740.138.608.338.47
OLMo-3-7B-BaseGSPO + THR60.885.510.027.725.020.538.259.688.339.01
OLMo-3-7B-BaseGSPO + GTPO50.484.80.021.718.89.630.884.665.705.18
OLMo-3-7B-BaseGSPO + SAEPO (Ours)68.685.66.736.130.131.343.079.6814.4712.08

Table 1.

49.97% with GRPO, and from 47.73% to 50.15% with GSPO. Importantly, SAEPO also consistently outperforms all three credit-assignment baselines in average accuracy across every backbone, policy algorithm, and task type. For example, on OLMo-3-7B-Base, SAEPO achieves 41.92% and 43.07% average math accuracy with GRPO and GSPO, respectively, compared with 38.75% and 40.13% for the strongest credit-assignment baseline. The same advantage extends to code generation benchmarks. These results show that SAEPO’s token rewards consistently (1) improve the vanilla GRPO/GSPO across all three backbones and both task types, and (2) outperform existing credit-assignment approaches.

Training Efficiency. Figure 3 compares training accuracy curves on Qwen3-1.7B-Base, including vanilla GRPO/GSPO and the credit-assignment baselines KTAE, THR, and GTPO. For both GRPO and GSPO, SAEPO improves early-stage accuracy growth and generally reaches higher accuracy under the same training budget. It also enjoys faster convergence and generally higher training accuracy than the three credit-assignment baselines throughout training. This suggests that the SAEPO-derived token-level signal provides a more informative advantage estimate than broadcasting the same rollout-level outcome advantage to all generated tokens, while also providing more effective credit assignment than existing token-level alternatives.

Figure 3. Training dynamics on Qwen3-1.7B-Base. We plot training accuracy curves during RL training for GRPO and GSPO, comparing each vanilla policy optimization algorithm with its SAEPO-augmented variant and with credit-assignment baselines (i.e., KTAE, THR, and GTPO). SAEPO shows faster convergence in training accuracy and generally reaches higher training accuracy.

Interpretability of the Credit Signal. Figure 4 visualizes SAEPO’s SAE features (concepts) that have the highest and lowest average token-level semantic scores on Algebra and Geometry rollouts from MATH-500. For each top feature, we list its top-4 tokens with the highest activation in the SAE. High-reward features correspond to subject-relevant mathematical concepts, such as computation and expression terms, circle/sphere concepts, and geometric measurements.

Figure 4. SAE features (concepts) associated with the highest and the lowest SAEPO token scores, computed from rollouts on the “Algebra” and “Geometry” subjects in MATH-500. Feature-level rewards are obtained by averaging semantic scores over tokens where each SAE feature is active. Rows show features with highest/lowest rewards and their top activating tokens; color intensity indicates normalized activation within each feature. Left: High-reward features correspond to subject-relevant concepts, such as spherical and coordinate vocabulary in Geometry, and computation and expression terms in Algebra. Right: Low-reward features mostly capture connectives, copulas, punctuation, stop words, and discourse markers. These results suggest that the SAEPO-derived signal concentrates on semantically meaningful reasoning features.

In contrast, low-reward features mainly capture connectives, punctuation, generic stop words, copulas, pronouns, and discourse markers. This suggests that the positive credit assigned by SAEPO tends to concentrate on sparse features tied to question-relevant content.

Figure 5(top) provides a token-level view of SAEPO. Importantly, SAEPO’s signal is not simply a copy of the final rollout outcome. In a correct trace for a Realgebra problem (in Figure 5(top)), SAEPO still assigns negative final advantages to unrelated stop words (e.g., “we”), while rewarding tokens involved in the reasoning (e.g., “circle” and “degrees”). Conversely, in an incorrect trace for a geometry question (Figure 5(bottom)), the rollout receives negative outcome supervision, but some reasoning tokens still contain relevant concepts (e.g., “length”, “area”, “volume”, and “pyramid”) and receive positive final advantages. This illustrates the main advantage of our SAEPO’s token-level signal: it can distinguish useful and unhelpful reasoning components within the same trajectory, while a rollout-level advantage would assign the same credit to all tokens (more examples in Appendix H).

Examples of token-level credit assignment for prealgebra and geometry reasoning traces, showing token-level credit categories Strong + (Rewarded), Near-Zero, and Strong − (Penalized), with annotations Penalize Unrelated Words within Correct Trace and Reward Geometry Related Concepts within Incorrect Trace

Figure 5. Examples of how SAEPO can assign a fine-grained credit signal to each token. For rollouts from different types of questions, we visualize the SAEPO-derived final shaped advantages Aqg,t=Aqg+αSqg,tA_{qg,t}=A_{qg}+\alpha S_{qg,t} from Eqn. (13) assigned to individual tokens in the rollouts. Green tokens represent positive credit that rewards the tokens, gray tokens represent near-zero credit, while red tokens represent negative credit that penalizes the tokens. SAEPO tends to reward semantically meaningful tokens like question-relevant tokens in incorrect trajectories and reasoning tokens in correct trajectories, while penalizing uninformative or misleading tokens even when they are in correct trajectories, achieving fine-grained token-level credit assignment over the reasoning trace.

Ablation Studies. Table 2 shows the ablation study results for two core components of SAEPO on Qwen3-1.7B-Base with GRPO. Replacing SAE features with raw hidden states hurts performance, indicating that the sparse SAE basis is important for constructing a useful token-level signal. Flipping the sign of the SAE-derived score leads to a large degradation, showing that the success-versus-failure direction carries meaningful training information. The full

MethodMATH-500GSM8KAIME25AMCMinervaOlympiadAvg.
Vanilla GRPO63.274.93.326.523.921.535.56
GRPO + Raw-Embedding Contrast64.274.50.026.530.123.936.53
GRPO + Reverse SAEPO Signal37.875.40.09.622.47.625.48
GRPO + SAEPO (Ours)65.676.33.334.929.822.138.68

Table 2. Ablation studies with Qwen3-1.7B-Base on GRPO with SAEPO. We report accuracy (%) on the same six-benchmark evaluation suite as Table 1. Bold marks the best result.

GRPO + SAEPO variant achieves the best average performance, supporting the design of our method. More ablations are in Appendix F.

Controlled Evaluation of Token-Level Scores. We conduct a paired minimal-edit experiment to examine the links between SAEPO’s token-level semantic scores, local-step correctness, and prefix-continuation success rates. We sample 976 training problems and select 1,864 rollouts from Qwen3–1.7B–Base, comprising 904 correct and 960 incorrect rollouts. After removing rollouts with ambiguous step boundaries or steps that are difficult to edit, we retain 403 correct and 507 incorrect rollouts as candidates. For each candidate, Qwen3–32B selects one step and proposes a minimal edit: either introducing a single verifiable error into a correct step or correcting an error in an incorrect step. A separate blind judging pass of the same model evaluates both versions and confirms the intended change in step correctness, yielding 304 error introductions and 120 fixes for evaluation. All tokens outside the edited span remain unchanged.

To examine the link between semantic scores and local-step correctness, we feed the original and edited rollouts through the policy and recompute their semantic scores SS, keeping the reference rollouts and outcome labels fixed. We define ΔS\Delta S as the mean score over the edited tokens minus the mean over the original tokens they replace, divided by the standard deviation of scores across the original rollout. This normalization makes score changes comparable across rollouts.

Table 3 shows that introducing an error decreases the score on average, whereas fixing an error increases it; both confidence intervals exclude zero. Thus, the semantic score responds to controlled changes in local reasoning correctness in the intended direction on average, supporting its use as a local credit signal.

EditSamplesExample: original → editedMean ΔS\Delta S [95% CI]
Introduce an error3048×3=24→8×3=258 \times3 = 24 \rightarrow8 \times3 = 25−0.58 [−0.70, −0.47]
Fix an error120Cylinder: V=13πr2h→V=πr2hV=\frac{1}{3}\pi r^2h \rightarrow V=\pi r^2h+0.16 [+0.06, +0.25]

Table 3. Controlled changes in step correctness produce corresponding changes in semantic scores on average: introducing an error lowers the score, while fixing an error raises it.

To examine the link between local-step correctness and prefix-continuation success rates, we truncate each rollout immediately after the edited tokens and sample 32 continuations from each original prefix and 32 from its edited counterpart. Let P^\hat{P} denote the fraction of continuations with correct final answers, and let ΔP^\Delta\hat{P} be the edited estimate minus the original estimate.

As shown in Table 4, introducing an error lowers estimated success in 95% of edits, reducing the mean from 0.74 to 0.17. Conversely, fixing an error raises estimated success in 62% of edits, increasing the mean from 0.15 to 0.32. Thus, the controlled edits affect both local reasoning correctness and the policy’s ability to reach a correct final answer. Together with Table 3, these results show that semantic scores and continuation success respond in the same direction on average, providing empirical support for SAEPO’s local credit signal.

EditSamplesMean P^\hat{P}: original →\to editedMean ΔP^\Delta\hat{P} [95% CI]Lower / higher P^\hat{P}
Introduce an error3040.74 →\to 0.17−0.57\mathbf{-0.57} [−0.61, −0.54]95% / 4%
Fix an error1200.15 →\to 0.32+0.17+\mathbf{0.17} [+0.12, +0.22]23% / 62%

Table 4. Controlled reasoning-step edits affect continuation success in the expected direction: introducing an error lowers the estimated success rate, while fixing an error raises it. These results support the relevance of the constructed edits to final-answer correctness.

Conclusion

We introduced SAEPO, a sparse-autoencoder-guided framework for fine-grained token-level credit assignment in outcome-supervised RLVR. By contrasting correct and incorrect rollouts of the same question in a sparse SAE feature space, SAEPO derives question-local semantic signals to reshape token-level advantages while preserving the verifier reward, policy-ratio construction, clipping rule, and KL regularizer. Across GRPO and GSPO, three LLM backbones, and math and code tasks, SAEPO improves average accuracy over vanilla methods and credit-assignment baselines. Interpretability analyses show that the SAE-derived signal captures meaningful reasoning features. Future work includes extending the framework to other verifiable domains, SAE architectures, and optimization algorithms.

Appendix

Additional Method Details

Token-wise GSPO Surrogate

For completeness, we describe the token-wise GSPO variant used in our implementation. Recall that the original GSPO sequence-level ratio for rollout oqgo_{qg} is

sqg(θ)=exp⁡(1∣Jqg∣∑t∈Jqglog⁡πθ(oqg,t∣q,oqg,<t)πθold(oqg,t∣q,oqg,<t)).s_{qg}(\theta)=\exp\left(\frac{1}{\lvert\mathcal{J}_{qg}\rvert}\sum_{t\in\mathcal{J}_{qg}}\log\frac{\pi_\theta(o_{qg,t}\mid q,o_{qg,<t})}{\pi_{\theta_{\mathrm{old}}}(o_{qg,t}\mid q,o_{qg,<t})}\right).

To support token-specific advantages, we use the token-wise GSPO construction introduced for advantage customization. Define the effective token-wise weight as

s~qg,t(θ)=sg⁡[sqg(θ)]πθ(oqg,t∣q,oqg,<t)sg⁡[πθ(oqg,t∣q,oqg,<t)].(14)\widetilde{s}_{qg,t}(\theta)=\operatorname{sg}[s_{qg}(\theta)]\frac{\pi_\theta(o_{qg,t}\mid q,o_{qg,<t})}{\operatorname{sg}[\pi_\theta(o_{qg,t}\mid q,o_{qg,<t})]}. \tag*{(14)}

where sg⁡[⋅]\operatorname{sg}[\cdot] denotes the stop-gradient operator. Numerically, s~qg,t(θ)=sqg(θ)\widetilde{s}_{qg,t}(\theta)=s_{qg}(\theta), so the clipping condition is still determined by the sequence-level ratio. However, the gradient of each token loss term flows through the corresponding token log-probability, allowing a token-specific advantage Aqg,tA_{qg,t}.

The token-wise GSPO surrogate is

LGSPO(θ)=−Eq,g,t∈Jqg[min⁡(s~qg,t(θ)Aqg,t,clip⁡(s~qg,t(θ),1−ϵclip,1+ϵcliphigh)Aqg,t)]+βKL⁡[πθ∥πref].(15)\mathcal{L}_{\mathrm{GSPO}}(\theta)=-\mathbb{E}_{q,g,t\in\mathcal{J}_{qg}}\left[\min\left(\widetilde{s}_{qg,t}(\theta)A_{qg,t},\operatorname{clip}\left(\widetilde{s}_{qg,t}(\theta),1-\epsilon_{\mathrm{clip}},1+\epsilon_{\mathrm{clip}}^{\mathrm{high}}\right)A_{qg,t}\right)\right]+\beta\operatorname{KL}[\pi_\theta\Vert\pi_{\mathrm{ref}}]. \tag*{(15)}

When all tokens in a rollout share the same advantage, this formulation preserves the original GSPO sequence-level ratio value and clipping behavior. In SAEPO, we substitute the shaped token-level advantage from Eq. (13) into Eq. (15).

Clip values used in this paper. Because the GSPO ratio is sequence-level and length-normalized, its admissible clip range is much tighter than GRPO’s. Following the GSPO paper, all GSPO runs in this paper use asymmetric clipping ϵclip=3×10−4\epsilon_{\mathrm{clip}}=3\times10^{-4} and ϵcliphigh=4×10−4\epsilon_{\mathrm{clip}}^{\mathrm{high}}=4\times10^{-4}; GRPO uses the symmetric ϵclip=0.2\epsilon_{\mathrm{clip}}=0.2 standard. The KL coefficient β=0.02\beta=0.02 and reference policy πref\pi_{\mathrm{ref}} are shared across all algorithms and arms.

Theoretical Analysis

This appendix analyzes the token-level credit and advantage shaping in SAEPO. Let Pπ(s)P^\pi(s) be the probability that policy π\pi, continuing from prefix ss, reaches a correct answer. A token’s local contribution is the change it produces in this probability. We first relate the raw score to similarity-weighted success (Lemma 1), then show how score changes enter the expected token-level update (Proposition 1). The connection to true local contribution depends on the representation, so we also test it through controlled edits and sampled continuations in § 4.2. Preserving the loss form does not establish consistency with the original objective. We therefore further investigate advantage shaping: Proposition 2 identifies the local surrogate optimized by the SAE term, and Proposition 3 expresses this term as α\alpha times a question-weighted success-rate gradient plus a residual from score errors. The verifier reward, policy-ratio construction, clipping rule, and KL regularizer remain unchanged, while the advantage and hence the update change. The results below provide the full statements, assumptions, and proofs.

Setup

Questions, Solutions and Success Probabilities. Questions qq are drawn from a fixed distribution with finite support (the training set). For a question qq, the policy πθ\pi_\theta generates a solution y=(y1,…,yT)y=(y_1,\ldots,y_T) token by token from a finite vocabulary V\mathcal{V}. The length T≤HT\le H is random: generation stops at the end-of-sequence token or at the maximum length HH. The policy is a softmax policy whose probabilities are differentiable in θ\theta, so πθ(a∣s)>0\pi_\theta(a\mid s)>0 for every token aa and prefix ss. Let st=(q,y1,…,yt)s_t=(q,y_1,\ldots,y_t) be the prefix after tt tokens, with s0=qs_0=q, and let gt=∇θlog⁡πθ(yt∣st−1)g_t=\nabla_\theta\log\pi_\theta(y_t\mid s_{t-1}) for $t\le T. For t>Tt > T we set st=sTs_t = s_T and set every per-token quantity (gtg_t, and mtm_t and S^t\widehat{S}_t below) to zero, so that ∑t=1T=∑t=1H\sum_{t=1}^{T} = \sum_{t=1}^{H}. The event {t≤T}\{t \le T\} (the solution has not ended before step tt) is determined by st−1s_{t-1}, and gtg_t is determined by sts_t. Let r(y)∈{0,1}r(y) \in\{0,1\} indicate that yy is correct, and let pq=Pr⁡(r(y)=1)p_q = \Pr(r(y)=1) for y∼πθ(⋅∣q)y \sim\pi_\theta(\cdot\mid q). For a prefix ss with tt tokens, let

Pπ(s)=E[r(y)∣st=s]P^\pi(s) = \mathbb{E}[r(y) \mid s_t = s]

be the probability that the policy reaches a correct answer when it continues from ss. Thus Pπ(s0)=pqP^\pi(s_0)=p_q, Pπ(sT)=r(y)P^\pi(s_T)=r(y), and E[Pπ(st)∣st−1]=Pπ(st−1)\mathbb{E}[P^\pi(s_t) \mid s_{t-1}] = P^\pi(s_{t-1}) on {t≤T}\{t \le T\}.

Groups and Batches. A batch contains a fixed number BB of questions, each drawn from this distribution before any solution is generated, and, for each question, G≥3G \ge3 solutions y(1),…,y(G)y^{(1)},\ldots,y^{(G)} sampled independently from πθ(⋅∣q)\pi_\theta(\cdot\mid q), so the batch has M=BGM = BG solutions; n+n_+ and n−n_- count the correct and incorrect solutions of a group. Every solution has 1≤T≤H1 \le T \le H tokens. All expectations are over batches sampled from the current policy.

Similarity. Let zt∈R≥0Dz_t \in\mathbb{R}_{\ge0}^{D} be the SAE code of the policy’s hidden state at the tt-th token of yy, and let zu(y′)z_u(y') be the code at the uu-th token of another solution y′y'. The codes are nonnegative because the SAE applies a ReLU before its top-kk selection. The hidden state at token tt depends only on sts_t; with a BatchTopK SAE, however, the sparsity threshold is computed over all tokens of a solution, so ztz_t can also depend on the rest of yy. With temperature τ>0\tau> 0 and cu=cos⁡(zt,zu(y′))∈[0,1]c_u = \cos(z_t,z_u(y')) \in[0,1] (set to 00 if either code is zero), the similarity between token tt of yy and another solution y′y' is the softmax-weighted mean of these cosine similarities,

kt(y′)=∑u=1∣y′∣wucu,wu=exp⁡(cu/τ)∑u′=1∣y′∣exp⁡(cu′/τ),k_t(y') = \sum_{u=1}^{|y'|} w_u c_u,\qquad w_u = \frac{\exp(c_u/\tau)}{\sum_{u'=1}^{|y'|}\exp(c_{u'}/\tau)},

so 0≤kt(y′)≤10 \le k_t(y') \le1. For a fixed solution y′y', its average over the continuation of the prefix,

k(s,y′)=E[kt(y′)∣st=s],k(s,y') = \mathbb{E}[k_t(y') \mid s_t=s],

depends only on ss and y′y', and 0≤k(s,y′)≤10 \le k(s,y') \le1. If the code at a token depends only on its prefix (as for a TopK SAE), then kt(y′)=k(st,y′)k_t(y') = k(s_t,y').

Scores. Consider the ii-th solution y=y(i)y=y^{(i)} of a group. Let Ci={j≠i:r(y(j))=1}C_i=\{j\ne i:r(y^{(j)})=1\} and Wi={j≠i:r(y(j))=0}W_i=\{j\ne i:r(y^{(j)})=0\} be the other correct and the other incorrect solutions. The tokens of yy are scored if both sets are nonempty (event EiE_i) and unscored otherwise. For a scored token, the raw score is

mt=1∣Ci∣∑j∈Cikt(y(j))−1∣Wi∣∑j∈Wikt(y(j)),m_t = \frac{1}{|C_i|}\sum_{j\in C_i}k_t(y^{(j)})-\frac{1}{|W_i|}\sum_{j\in W_i}k_t(y^{(j)}),

and mt=0m_t=0 for an unscored token. The SAE score is St=ρmtS_t=\rho m_t, with reliability weight ρ=2min⁡(n+,n−)/G\rho=2\min(n_+,n_-)/G. Scores are normalized over the scored tokens of the batch:

S^t=St−μBσB+ϵscorefor scored tokens,S^t=0for unscored tokens,\widehat{S}_t = \frac{S_t-\mu_B}{\sigma_B+\epsilon_{\mathrm{score}}}\quad\text{for scored tokens},\qquad\widehat{S}_t=0\quad\text{for unscored tokens},

where ϵscore>0\epsilon_{\mathrm{score}}>0, and μB\mu_B and σB\sigma_B are the mean and sample standard deviation of StS_t over all scored tokens of the batch. A group with scored tokens has at least G−1≥2G-1\ge2 scored solutions, so σB\sigma_B is defined whenever the batch has a scored token; if it has none, all S^t=0\widehat{S}_t=0 (and we set μB=σB=0\mu_B=\sigma_B=0).

Update. SAEPO replaces GRPO’s outcome advantage AA, which is shared by all tokens of a solution, by A+αS^tA+\alpha\widehat{S}_t with α>0\alpha>0. We analyze one update on an on-policy batch. At θ=θold\theta=\theta_{\mathrm{old}} the importance ratios equal one and clipping is inactive, so the ascent direction (the negative gradient of the loss) is the sum of ∑t(A+αS^t)gt\sum_t(A+\alpha\widehat{S}_t)g_t over the solutions of the batch, divided by the loss normalizer. As in the implementation, AA, S^t\widehat{S}_t (including ρ\rho, μB\mu_B, σB\sigma_B and the SAE codes) and the normalizer are held fixed during differentiation. The KL term is the same as in GRPO and is not analyzed. Let yy be a solution chosen uniformly at random from the batch, and qq its question. We analyze the expected SAE term per solution,

d(θ)=αE[∑t=1TS^tgt].d(\theta)=\alpha\mathbb{E}\left[\sum_{t=1}^{T}\widehat{S}_t g_t\right].

The implemented loss is a token mean: it divides the sum over the batch by the number of tokens NBN_B in the batch, which is random. Propositions 1–3 hold for any per-token score, so they apply exactly to the implemented update after replacing S^t\widehat{S}_t by (M/NB)S^t(M/N_B)\widehat{S}_t, and ff below by f~(s)=E[(M/NB)S^t∣st=s]\tilde{f}(s) = \mathbb{E}[(M/N_B)\widehat{S}_t \mid s_t = s]; the random factor stays inside this conditional expectation. If M/NBM/N_B is replaced by a deterministic constant β>0\beta> 0, as Corollary 1 does for ρ\rho, μB\mu_B and σB\sigma_B, the formula for ff in Corollary 1 and its coefficient λ\lambda are multiplied by β\beta. Since the question distribution has finite support, V\mathcal{V} is finite and T≤HT \le H, all expectations below are finite sums.

A Basic Identity. For every tt and every function hh of the prefix st−1s_{t-1},

E[1{t≤T}h(st−1)gt]=0.(16)\mathbb{E}\left[\mathbf{1}\{t \le T\}h(s_{t-1})g_t\right] = 0. \tag*{(16)}

Indeed, on {t≤T}\{t \le T\} the token yty_t is drawn from πθ(⋅∣st−1)\pi_\theta(\cdot\mid s_{t-1}), and E[gt∣st−1]=∑a∈Vπθ(a∣st−1)∇θlog⁡πθ(a∣st−1)=∇θ∑a∈Vπθ(a∣st−1)=0\mathbb{E}[g_t \mid s_{t-1}] = \sum_{a\in\mathcal{V}}\pi_\theta(a \mid s_{t-1})\nabla_\theta\log\pi_\theta(a \mid s_{t-1}) = \nabla_\theta\sum_{a\in\mathcal{V}}\pi_\theta(a \mid s_{t-1}) = 0. Below we write ∑t=1T=∑t=1H1{t≤T}\sum_{t=1}^{T} = \sum_{t=1}^{H}\mathbf{1}\{t \le T\} and apply such identities term by term.

What the Score Measures

To interpret the raw score mtm_t, i.e., the mean similarity to other correct solutions minus that to other incorrect ones, define the average similarity and the similarity-weighted success rate

kˉ(s)=Ey′[k(s,y′)],Pk(s)=Ey′[k(s,y′)r(y′)]kˉ(s),y′∼πθ(⋅∣q),\bar{k}(s) = \mathbb{E}_{y'}[k(s,y')], \qquad P_k(s) = \frac{\mathbb{E}_{y'}[k(s,y')r(y')]}{\bar{k}(s)}, \qquad y' \sim\pi_\theta(\cdot\mid q),

assuming kˉ(s)>0\bar{k}(s) > 0. Since k≥0k \ge0, Pk(s)∈[0,1]P_k(s) \in[0,1] is a weighted average of success indicators, in which each solution is weighted by its similarity to ss.

Lemma 1 (What the Score Measures). Let 0<pq<10 < p_q < 1. For every prefix ss with t≥1t \ge1 tokens of the ii-th solution and kˉ(s)>0\bar{k}(s) > 0,

E[mt∣st=s,Ei]=kˉ(s)pq(1−pq)(Pk(s)−pq).\mathbb{E}[m_t \mid s_t = s, E_i] = \frac{\bar{k}(s)}{p_q(1-p_q)}\left(P_k(s)-p_q\right).

Proof. Let r−i=(r(y(j)))j≠ir_{-i} = (r(y^{(j)}))_{j\ne i} be the labels of the other solutions; EiE_i, CiC_i and WiW_i are functions of r−ir_{-i}. Since the GG solutions are independent, (y(j))j≠i(y^{(j)})_{j\ne i} is independent of y(i)y^{(i)}. Moreover, conditional on r−ir_{-i}, each y(j)y^{(j)}, j≠ij \ne i, follows πθ(⋅∣q)\pi_\theta(\cdot\mid q) conditioned on r(y′)=r(y(j))r(y') = r(y^{(j)}). Let μb(s)=Ey′[k(s,y′)∣r(y′)=b]\mu_b(s) = \mathbb{E}_{y'}[k(s,y') \mid r(y') = b] for b∈{0,1}b \in\{0,1\}. For j≠ij \ne i, the similarity kt(y(j))k_t(y^{(j)}) depends on y(i)y^{(i)} and y(j)y^{(j)}; averaging first over the continuation of ss (which is independent of y(j)y^{(j)} and r−ir_{-i}) and then over y(j)y^{(j)} gives

E[kt(y(j))∣st=s,r−i]=Ey′[k(s,y′)∣r(y′)=r(y(j))]=μr(y(j))(s).\mathbb{E}[k_t(y^{(j)}) \mid s_t = s, r_{-i}] = \mathbb{E}_{y'}[k(s,y') \mid r(y') = r(y^{(j)})] = \mu_{r(y^{(j)})}(s).

On EiE_i, linearity then gives

E[mt∣st=s,r−i]=1∣Ci∣∑j∈Ciμ1(s)−1∣Wi∣∑j∈Wiμ0(s)=μ1(s)−μ0(s).\mathbb{E}[m_t \mid s_t = s, r_{-i}] = \frac{1}{|C_i|}\sum_{j\in C_i}\mu_1(s) - \frac{1}{|W_i|}\sum_{j\in W_i}\mu_0(s) = \mu_1(s)-\mu_0(s).

This value does not depend on r−ir_{-i}, so averaging over r−ir_{-i} on EiE_i gives E[mt∣st=s,Ei]=μ1(s)−μ0(s)\mathbb{E}[m_t \mid s_t = s, E_i] = \mu_1(s)-\mu_0(s). Here Pr⁡(Ei)=1−pqG−1−(1−pq)G−1>0\Pr(E_i) = 1-p_q^{G-1}-(1-p_q)^{G-1} > 0, because G≥3G \ge3 and 0<pq<10 < p_q < 1. Finally, Ey′[kr]=kˉPk\mathbb{E}_{y'}[k r] = \bar{k}P_k and Ey′[k(1−r)]=kˉ(1−Pk)\mathbb{E}_{y'}[k(1-r)] = \bar{k}(1-P_k), so, with all quantities evaluated at ss,

μ1−μ0=kˉPkpq−kˉ(1−Pk)1−pq=kˉ(Pk(1−pq)−pq(1−Pk))pq(1−pq)=kˉpq(1−pq)(Pk−pq).\mu_1-\mu_0 = \frac{\bar{k}P_k}{p_q} - \frac{\bar{k}(1-P_k)}{1-p_q} = \frac{\bar{k}\left(P_k(1-p_q)-p_q(1-P_k)\right)}{p_q(1-p_q)} = \frac{\bar{k}}{p_q(1-p_q)}(P_k-p_q).

Intuition and Remark on Lemma 1. Lemma 1 shows that the expected raw score is positive when similarity-weighted success exceeds the question’s average. However, PkP_k weights other solutions by similarity, whereas PπP^\pi conditions on the actual prefix. Using the former as a proxy requires the representation assumption Pk≈PπP_k \approx P^\pi; reconstruction and sparsity alone do not establish it. This explains the prefix score, but not yet how it credits the token just added. We therefore examine its role in the update using Proposition 1 below.

Credit in the Expected Update

For a prefix ss with t≥1t \ge1 tokens, define f(s)=E[S^t∣st=s]f(s)=\mathbb{E}[\widehat{S}_t\mid s_t=s]. The expectation is over everything else that S^t\widehat{S}_t depends on: the other solutions of the group, the rest of the batch through μB\mu_B and σB\sigma_B, and the continuation of yy (for example through ρ\rho and the BatchTopK threshold). Let f(s0)f(s_0) be an arbitrary fixed value.

Proposition 1 (Credit in the Expected Update). The expected SAE term satisfies

E[∑t=1TS^tgt]=E[∑t=1Tf(st)gt]=E[∑t=1T(f(st)−f(st−1))gt].\mathbb{E}\left[\sum_{t=1}^{T}\widehat{S}_t g_t\right] = \mathbb{E}\left[\sum_{t=1}^{T}f(s_t)g_t\right] = \mathbb{E}\left[\sum_{t=1}^{T}\left(f(s_t)-f(s_{t-1})\right)g_t\right].

Proof. For each tt, the factors 1{t≤T}\mathbf{1}\{t\le T\} and gtg_t are determined by sts_t, so by the tower property

E[1{t≤T}S^tgt]=E[1{t≤T}E[S^t∣st]gt]=E[1{t≤T}f(st)gt].\mathbb{E}\left[\mathbf{1}\{t\le T\}\widehat{S}_t g_t\right] = \mathbb{E}\left[\mathbf{1}\{t\le T\}\mathbb{E}[\widehat{S}_t\mid s_t]g_t\right] = \mathbb{E}\left[\mathbf{1}\{t\le T\}f(s_t)g_t\right].

Summing over tt gives the first equality. For the second, Eq. (16) with h=fh=f gives E[1{t≤T}f(st−1)gt]=0\mathbb{E}[\mathbf{1}\{t\le T\}f(s_{t-1})g_t]=0 for every tt; for t=1t=1, f(s0)f(s_0) is a fixed value. □

Intuition and Remark on Proposition 1. In other words, in expectation SAEPO credits each token by how much it raises or lowers the expected score, i.e., f(st)−f(st−1)f(s_t)-f(s_{t-1}), just as the exact policy gradient of the success rate credits each token by how much it raises or lowers the success probability PπP^\pi (Proposition 3). This is an equivalence of expected updates, not of individual sampled scores: a sampled S^t\widehat{S}_t can differ from f(st)−f(st−1)f(s_t)-f(s_{t-1}), but the two give the same expected update. Lemma 1 links this credit to PkP_k; Corollary 1 below makes that connection explicit when the reliability weight and normalization statistics are held fixed.

Corollary 1 (Score Differences and PkP_k). Let 0<pq<10<p_q<1, replace ρ\rho, μB\mu_B and σB\sigma_B by deterministic constants with ρ>0\rho>0 and σB≥0\sigma_B\ge0, and let κq=Pr⁡(Ei)=1−pqG−1−(1−pq)G−1\kappa_q=\Pr(E_i)=1-p_q^{G-1}-(1-p_q)^{G-1}. Then, for every prefix ss with t≥1t\ge1 tokens and kˉ(s)>0\bar{k}(s)>0,

f(s)=κqσB+ϵscore(ρkˉ(s)pq(1−pq)(Pk(s)−pq)−μB).f(s)=\frac{\kappa_q}{\sigma_B+\epsilon_{\mathrm{score}}}\left(\frac{\rho\bar{k}(s)}{p_q(1-p_q)}\left(P_k(s)-p_q\right)-\mu_B\right).

For a transition with t≥2t\ge2 and kˉ(st)=kˉ(st−1)=kˉ\bar{k}(s_t)=\bar{k}(s_{t-1})=\bar{k}, it follows that

f(st)−f(st−1)=λ(Pk(st)−Pk(st−1)),λ=κqρkˉ(σB+ϵscore)pq(1−pq)>0,f(s_t)-f(s_{t-1})=\lambda\left(P_k(s_t)-P_k(s_{t-1})\right),\qquad \lambda=\frac{\kappa_q\rho\bar{k}}{(\sigma_B+\epsilon_{\mathrm{score}})p_q(1-p_q)}>0,

where λ\lambda depends on the transition only through kˉ\bar{k}.

Proof. With these constants, S^t=1Ei(ρmt−μB)/(σB+ϵscore)\widehat{S}_t=\mathbf{1}_{E_i}(\rho m_t-\mu_B)/(\sigma_B+\epsilon_{\mathrm{score}}). Since EiE_i depends only on the other solutions, Pr⁡(Ei∣st=s)=κq\Pr(E_i\mid s_t=s)=\kappa_q, and therefore f(s)=κq(ρE[mt∣st=s,Ei]−μB)/(σB+ϵscore)f(s)=\kappa_q(\rho\mathbb{E}[m_t\mid s_t=s,E_i]-\mu_B)/(\sigma_B+\epsilon_{\mathrm{score}}). Substituting Lemma 1 gives the first formula. In the difference, the terms that do not depend on the prefix cancel, which gives the second formula. □

Under these conditions, Proposition 1 shows that, for such transitions, the expected SAE update credits token yty_t by λ(Pk(st)−Pk(st−1))\lambda(P_k(s_t)-P_k(s_{t-1})), the change in similarity-weighted success that the token produces. In the implementation, ρ\rho counts the scored solution’s own label, and μB\mu_B and σB\sigma_B are batch statistics, so Corollary 1 is an idealization. Whether changes in PkP_k track changes in PπP^\pi depends on the representation assumption Pk≈PπP_k\approx P^\pi.

The Surrogate Objective of the SAE Term

Fix the current parameters θ0\theta_0, write f=fθ0f=f_{\theta_0}, and let the prefixes be visited by πθ0\pi_{\theta_0}. For a prefix ss and a token aa, let (s,a)(s,a) denote ss followed by aa. Define the surrogate

Lθ0(θ)=EqEy∼πθ0(⋅∣q)[∑t=1T∑a∈Vπθ(a∣st−1)f(st−1,a)],\mathcal{L}_{\theta_0}(\theta)=\mathbb{E}_{q}\mathbb{E}_{y\sim\pi_{\theta_0}(\cdot\mid q)}\left[\sum_{t=1}^{T}\sum_{a\in\mathcal{V}}\pi_\theta(a\mid s_{t-1})f(s_{t-1},a)\right],

the expected score of the next token when this token is drawn from πθ\pi_\theta, while the visited prefixes and the score function stay at θ0\theta_0.

Proposition 2 (The Update and Its Objective). The SAE term is α\alpha times the gradient of the surrogate at θ0\theta_0:

d(θ0)=α∇θLθ0(θ)∣θ=θ0.d(\theta_0)=\left.\alpha\nabla_\theta\mathcal{L}_{\theta_0}(\theta)\right|_{\theta=\theta_0}.

Proof. For a fixed prefix ss, since V\mathcal{V} is finite,

∇θ∑a∈Vπθ(a∣s)f((s,a))∣θ=θ0=∑a∈Vπθ0(a∣s)∇θlog⁡πθ(a∣s)∣θ=θ0f((s,a))=E[f(st)gt∣st−1=s],\begin{aligned} \left.\nabla_\theta\sum_{a\in\mathcal{V}}\pi_\theta(a\mid s)f((s,a))\right|_{\theta=\theta_0} &=\sum_{a\in\mathcal{V}}\left.\pi_{\theta_0}(a\mid s)\nabla_\theta\log\pi_\theta(a\mid s)\right|_{\theta=\theta_0}f((s,a))\\ &=\mathbb{E}\left[f(s_t)g_t\mid s_{t-1}=s\right], \end{aligned}

where yt∼πθ0(⋅∣s)y_t\sim\pi_{\theta_0}(\cdot\mid s). Multiplying by 1{t≤T}\mathbf{1}\{t\le T\}, which is determined by st−1s_{t-1}, taking the expectation over the prefixes visited by πθ0\pi_{\theta_0}, and summing over tt gives ∇θLθ0(θ0)=E[∑tf(st)gt]\nabla_\theta\mathcal{L}_{\theta_0}(\theta_0)=\mathbb{E}\left[\sum_t f(s_t)g_t\right]. By the first equality of Proposition 1, this equals E[∑tS~tgt]=d(θ0)/α\mathbb{E}\left[\sum_t\widetilde{S}_t g_t\right]=d(\theta_0)/\alpha. □

Intuition and Remark on Proposition 2. As in PPO, the surrogate is rebuilt after each update, holding ff and the prefix distribution fixed for that update. Intuitively, Proposition 2 implies that at each prefix, the SAE term moves probability toward next tokens whose new prefix has an above-average expected score, i.e., roughly, is more similar to the group’s correct and less to its incorrect solutions. However, raising this score alone need not raise the success rate. To address this, Proposition 3 below further connects the SAE term to the success rate.

Relation to the Expected Success Rate

The original objective is J(θ)=Eq[pq(θ)]J(\theta)=\mathbb{E}_q\left[p_q(\theta)\right]. The exact policy gradient of the success rate credits token yty_t with the change in success probability it causes, whereas the SAE term credits it with the change in expected score, f(st)−f(st−1)f(s_t)-f(s_{t-1}) (Proposition 1). To compare the two, fix a scale cq>0c_q>0 and an offset bqb_q per question and define the remainder ee, the part of the expected score not explained by success probability, by

f(s)=cqPπ(s)+bq+e(s)f(s)=c_qP^\pi(s)+b_q+e(s)

for every prefix ss of question qq. This identity defines ee; it does not assume that ee is small. The remainder absorbs all discrepancies, including those from representation similarity, prefix-dependent kˉ\bar{k}, normalization and reliability weighting. Let eˉ(st−1)=E[e(st)∣st−1]\bar{e}(s_{t-1})=\mathbb{E}\left[e(s_t)\mid s_{t-1}\right] with yt∼πθ(⋅∣st−1)y_t\sim\pi_\theta(\cdot\mid s_{t-1}), let gc=Eq[cq∇θpq]g_c=\mathbb{E}_q\left[c_q\nabla_\theta p_q\right], and let Jc(θ′)=Eq[cqpq(θ′)]J_c(\theta')=\mathbb{E}_q\left[c_qp_q(\theta')\right] with the weights cqc_q held fixed, so that ∇θJc(θ)=gc\nabla_\theta J_c(\theta)=g_c.

Proposition 3 (Relation to the Expected Return). (i) For every question qq, with y∼πθ(⋅∣q)y\sim\pi_\theta(\cdot\mid q),

∇θpq=E[∑t=1T(Pπ(st)−Pπ(st−1))gt∣q].\nabla_\theta p_q=\mathbb{E}\left[\sum_{t=1}^{T}\left(P^\pi(s_t)-P^\pi(s_{t-1})\right)g_t\mid q\right].

(ii) The SAE term decomposes as

d(θ)=α(gc+R),R=E[∑t=1T(e(st)−eˉ(st−1))gt].d(\theta)=\alpha(g_c+R),\qquad R=\mathbb{E}\left[\sum_{t=1}^{T}\left(e(s_t)-\bar{e}(s_{t-1})\right)g_t\right].

(iii) If ∥gt∥≤L\lVert g_t\rVert\le L and ∣e(st)−eˉ(st−1)∣≤δ\lvert e(s_t)-\bar{e}(s_{t-1})\rvert\le\delta for all reachable prefixes, then ∥R∥≤HLδ\lVert R\rVert\le HL\delta.

(iv) gc⊤d(θ)≥α∥gc∥(∥gc∥−∥R∥)g_c^\top d(\theta)\ge\alpha\lVert g_c\rVert(\lVert g_c\rVert-\lVert R\rVert). Hence, if ∥R∥<∥gc∥\lVert R\rVert<\lVert g_c\rVert, a sufficiently small step along d(θ)d(\theta) increases JcJ_c.

Proof. (i) The probability of a solution is ∏t=1Tπθ(yt∣st−1)\prod_{t=1}^{T}\pi_\theta(y_t\mid s_{t-1}) and the set of solutions is finite, so ∇θpq=E[r(y)∑t=1Tgt∣q]\nabla_\theta p_q=\mathbb{E}\left[r(y)\sum_{t=1}^{T}g_t\mid q\right]. For each tt, the factors 1{t≤T}\mathbf{1}\{t\le T\} and gtg_t are determined by sts_t, and E[r(y)∣st]=Pπ(st)\mathbb{E}[r(y)\mid s_t]=P^\pi(s_t), so E[1{t≤T}r(y)gt∣q]=E[1{t≤T}Pπ(st)gt∣q]\mathbb{E}[\mathbf{1}\{t\le T\}r(y)g_t\mid q]=\mathbb{E}[\mathbf{1}\{t\le T\}P^\pi(s_t)g_t\mid q]. Subtracting E[1{t≤T}Pπ(st−1)gt∣q]=0\mathbb{E}[\mathbf{1}\{t\le T\}P^\pi(s_{t-1})g_t\mid q]=0 (Eq. (16)) and summing over tt gives (i).

(ii) By Proposition 1, d(θ)=αE[∑tf(st)gt]d(\theta)=\alpha\mathbb{E}\left[\sum_t f(s_t)g_t\right]. Conditional on its question qq, the solution yy is drawn from πθ(⋅∣q)\pi_\theta(\cdot\mid q). Substitute f=cqPπ+bq+ef=c_qP^\pi+b_q+e and condition on qq. The first term gives cqE[∑tPπ(st)gt∣q]=cq∇θpqc_q\mathbb{E}\left[\sum_tP^\pi(s_t)g_t\mid q\right]=c_q\nabla_\theta p_q, by (i) and Eq. (16). The second term vanishes by Eq. (16). The third term equals E[∑t(e(st)−eˉ(st−1))gt∣q]\mathbb{E}\left[\sum_t\left(e(s_t)-\bar{e}(s_{t-1})\right)g_t \mid q\right], by Eq. (16) with h=eˉh=\bar{e}. Averaging over questions gives (ii).

(iii) By the triangle inequality, ∥R∥≤E[∑t=1T∣e(st)−eˉ(st−1)∣∥gt∥]≤E[T]δL≤HLδ\lVert R\rVert\le\mathbb{E}\left[\sum_{t=1}^{T}\lvert e(s_t)-\bar{e}(s_{t-1})\rvert\lVert g_t\rVert\right]\le\mathbb{E}[T]\delta L\le HL\delta.

(iv) By the Cauchy–Schwarz inequality, gc⊤d=α(∥gc∥2+gc⊤R)≥α(∥gc∥2−∥gc∥∥R∥)g_c^\top d=\alpha\left(\lVert g_c\rVert^2+g_c^\top R\right)\ge\alpha\left(\lVert g_c\rVert^2-\lVert g_c\rVert\lVert R\rVert\right). If ∥R∥<∥gc∥\lVert R\rVert<\lVert g_c\rVert, then gc≠0g_c\ne0 and gc⊤d>0g_c^\top d>0. Since JcJ_c is differentiable with gradient gcg_c, Jc(θ+ηd)=Jc(θ)+ηgc⊤d+o(η)>Jc(θ)J_c(\theta+\eta d)=J_c(\theta)+\eta g_c^\top d+o(\eta)>J_c(\theta) for all sufficiently small η>0\eta>0. □

Remarks. (a) Which Errors Matter. Let fˉ(st−1)=E[f(st)∣st−1]\bar{f}(s_{t-1})=\mathbb{E}[f(s_t)\mid s_{t-1}]. Since E[Pπ(st)∣st−1]=Pπ(st−1)\mathbb{E}[P^\pi(s_t)\mid s_{t-1}]=P^\pi(s_{t-1}),

e(st)−eˉ(st−1)=(f(st)−fˉ(st−1))−cq(Pπ(st)−Pπ(st−1)).e(s_t)-\bar{e}(s_{t-1})=\left(f(s_t)-\bar{f}(s_{t-1})\right)-c_q\left(P^\pi(s_t)-P^\pi(s_{t-1})\right).

Hence RR depends only on how ff and cqPπc_qP^\pi compare alternative next tokens at the same prefix. An error that is shared by all next tokens at a prefix, and a per-question offset, cancel.

(b) Comparison with GRPO: Question Weighting. The SAE term changes GRPO’s policy update. We make this change explicit by comparing both updates with the gradient of the expected return JJ, i.e., the average success rate that both methods aim to increase. Apart from RR, the SAE term follows the gradient of the weighted success rate JcJ_c rather than of JJ: the weights cq>0c_q>0 change how much each question counts, and JcJ_c is a positive scalar multiple of JJ if all cqc_q are equal. GRPO’s division by the group’s reward standard deviation also reweights questions. Consider the per-solution summed update in an idealized analysis with binary rewards, in which the group mean and standard deviation of the rewards are replaced by their population values pqp_q and pq(1−pq)\sqrt{p_q(1-p_q)} (the large-group limit). For a question with 0<pq<10<p_q<1, A=(r(y)−pq)/pq(1−pq)A=(r(y)-p_q)/\sqrt{p_q(1-p_q)}, and using E[r(y)∑tgt∣q]=∇θpq\mathbb{E}\left[r(y)\sum_tg_t\mid q\right]=\nabla_\theta p_q and E[∑tgt∣q]=0\mathbb{E}\left[\sum_tg_t\mid q\right]=0,

E[∑t=1TAgt∣q]=∇θpqpq(1−pq)=∇θ2arcsin⁡pq.\mathbb{E}\left[\left.\sum_{t=1}^{T}Ag_t\right|q\right]=\frac{\nabla_\theta p_q}{\sqrt{p_q(1-p_q)}}=\nabla_\theta2\arcsin\sqrt{p_q}.

because ddp2arcsin⁡p=1/p(1−p)\frac{d}{dp}2\arcsin\sqrt{p}=1/\sqrt{p(1-p)}. If pq∈{0,1}p_q\in\{0,1\}, all solutions of qq have the same label; we define A=0A=0, and pqp_q does not depend on θ\theta, so these questions contribute zero gradient. Averaging over questions, this idealized GRPO outcome term is the gradient of Eq[2arcsin⁡pq]\mathbb{E}_q[2\arcsin\sqrt{p_q}], which weights each question with 0<pq<10<p_q<1 by 1/pq(1−pq)1/\sqrt{p_q(1-p_q)}. Writing wq=1/pq(1−pq)w_q=1/\sqrt{p_q(1-p_q)} for these questions and wq=0w_q=0 at the boundaries, Proposition 3 gives the combined per-solution summed outcome and SAE update under the same on-policy idealization, excluding the KL term:

E[∑t=1T(A+αS^t)gt]=Eq[(wq+αcq)∇θpq]+αR.\mathbb{E}\left[\sum_{t=1}^{T}(A+\alpha\widehat{S}_t)g_t\right]=\mathbb{E}_q\left[(w_q+\alpha c_q)\nabla_\theta p_q\right]+\alpha R.

Relative to GRPO, SAEPO therefore changes the update in only two ways: it changes the weight of each question from wqw_q to wq+αcqw_q+\alpha c_q, which stays positive, and it adds the error αR\alpha R discussed above.

(c) Connection to Empirical Results. Note that here we do not claim that δ\delta is small everywhere. The weight α\alpha scales both gcg_c and RR relative to the outcome term. We also provide empirical results from controlled edits and sampled continuations in § 4.2 to support the theoretical analysis. Specifically, the experiments examine the two-hop connection: SAEPO’s token-level semantic score →\rightarrow correctness of a local step →\rightarrow prefix-continuation success rates (final accuracy). Table 3 evaluates the first connection, and Table 4 evaluates the second. Together, these theoretical and empirical results connect SAEPO’s token-level scores to local reasoning quality and continuation success.

Training Details

Training Data

For math, RL runs use the DeepScaleR-Preview-Dataset (Luo et al., [32]), loaded from agentica-org/DeepScaleR-Preview-Dataset. Its training split contains 40,315 math problems from competition-style sources, including AIME, AMC, Omni-MATH, and STill. We do not apply subject filtering, a difficulty curriculum, or additional subsampling. Matched methods use the same training pool and data order.

For code generation, we use the TACO, PrimeIntellect SYNTHETIC-1, and LiveCodeBench-v5 training splits of the DeepCoder-Preview-Dataset (Luo et al., [31]). These splits provide executable unit tests, and matched methods use the same problems.

Disjoint from evaluation. The DeepScaleR training pool is disjoint from the six-benchmark math evaluation suite. Its internal AIME content is restricted to historical (pre-2024) competitions, so it is also disjoint from AIME25.

Prompt and Generation Settings

For math, training rollouts and downstream evaluation use the same MINERVA_MATH prompt template. The demonstrations are three worked-out math problems plus the target problem, in the format

Problem:\n{example_1}\n\nSolution:\n{worked_solution_1}\nFinal Answer: ...\n\n (×3) Problem:\n{problem}\n\nSolution:\n

where each demonstration solution terminates in a \boxed{...} expression so the model copies that surface form. The string Problem: is registered as a vLLM stop token so a generation cannot leak into a hallucinated next problem; the model EOS token <|endoftext|> is the other stop signal.

All runs sample G=8G = 8 rollouts per question at temperature T=1.0T = 1.0; evaluation uses greedy decoding. The maximum generation length is 8192 tokens for math and 4096 for code. For the Qwen math runs, we use vLLM 0.16 with top-p = 1.0, maximum prompt length 1280, and no length penalty. Weights are synchronized from the HuggingFace policy to vLLM every 10 training steps via CuMemAllocator wake/sleep, with gpu_memory_utilization set to 0.50 for 1.7B and 0.85 for 4B.

Reward Construction

For math, the scalar outcome reward is Rout=Racc+RfmtR_{\mathrm{out}} = R_{\mathrm{acc}} + R_{\mathrm{fmt}}, where Racc∈{0,1}R_{\mathrm{acc}} \in\{0, 1\} records final-answer correctness and Rfmt∈{0,0.1}R_{\mathrm{fmt}} \in\{0, 0.1\} rewards a boxed answer. We extract the final boxed answer and grade it with math_verify. For code, Rout∈{0,1}R_{\mathrm{out}} \in\{0, 1\} is one only when every unit test for the problem passes.

The GRPO/GSPO outcome advantage AqgoutA^{\mathrm{out}}_{qg} is computed from RoutR_{\mathrm{out}}. For SAEPO, the correct/incorrect split uses RaccR_{\mathrm{acc}} for math and test-suite success for code; a math rollout with only the format bonus remains incorrect. After group normalization of the outcome reward and batch standardization of the semantic score, only the advantage changes, as in Eqn. (13).

Optimization Hyperparameters

Within each matched vanilla/SAEPO pair, the verifier reward, policy-ratio construction, clipping rule, KL regularizer, sampling configuration, and optimizer hyperparameters are identical. SAEPO replaces the broadcast rollout-level advantage AqgoutA^{\mathrm{out}}_{qg} with the token-level advantage Aqg,tA_{qg,t}, from Eqn. (13).

All runs use full-parameter fine-tuning, without LoRA or adapters. We use torch.optim.AdamW with β1=0.9\beta_1 = 0.9, β2=0.999\beta_2 = 0.999, weight decay 0, and numerical constant ϵ=10−8\epsilon= 10^{-8}. The learning rate is 10−510^{-5} on a constant schedule (no warmup, no decay). We use KL coefficient β=0.02\beta= 0.02 against a frozen reference policy πref\pi_{\mathrm{ref}} (the SFT initialization), bf16 mixed precision, gradient checkpointing, micro-batch size 4, and 4 gradient-accumulation steps. Randomness is controlled with seed 42 for Python, NumPy, PyTorch, vLLM, and rollout sampling.

The additional random-seed comparison in Appendix § 12.§ 5 also includes seeds 43 and 44.

The Qwen3-4B and OLMo-3-7B runs use 8 questions per batch, corresponding to 64 rollouts per training step. The Qwen3-1.7B runs use 32 questions per batch, corresponding to 256 rollouts per training step. The 4B and 7B runs are trained for 1000 steps and the 1.7B runs for 250 steps. Both settings therefore consume the same budget of 64,000 rollouts, so results across model scales are compared at matched sampling cost. All main results are reported at the last checkpoint rather than selecting the best checkpoint independently for each method.

Single-GPU compute. Each math run occupies a single NVIDIA RTX PRO 6000 Blackwell (∼97\sim97 GB HBM); vLLM, the HF policy, πref\pi_{\mathrm{ref}}, and the SAE all share that GPU through CuMemAllocator wake/sleep. End-to-end wall-clock is approximately 80 hours for a 7B run, 36 hours for a 4B run and 14 hours for a 1.7B run. Training, evaluation, and SAE encoding are all single-GPU and require no inter-node communication.

Computational Cost and Wall-clock Efficiency

We ran additional experiments to document the time and peak GPU memory consumption of all computation steps in SAEPO and vanilla GRPO/GSPO RL training on Qwen3-1.7B-Base. Results are summarized in Table 5.

Component / measurementVanilla GRPOSAEPO (GRPO)Vanilla GSPOSAEPO (GSPO)
Rollout generation (per step)33.1 s37.8 s32.9 s34.5 s
Reward grading (per step)3.5 s2.7 s3.8 s2.7 s
Old/reference log-probs (per step)12.3 s13.6 s12.3 s13.1 s
Policy update (per step)32.4 s36.6 s32.7 s34.7 s
SAE feature extraction (per step)–0.77 s–0.68 s
Semantic alignment (per step)–0.34 s–0.29 s
Total per step81.4 s92.0 s81.8 s86.0 s
Wall-clock, 250 RL steps5.66 h6.39 h5.68 h5.97 h
Peak GPU memory17.3 GB18.4 GB17.3 GB18.4 GB

Table 5. Time and memory for Qwen3-1.7B-Base. Dedicated SAE feature extraction and semantic alignment add 1.11 s per GRPO step and 0.97 s per GSPO step, while peak GPU memory increases by 1.1 GB. The 250-step wall-clock times cover RL training.

We can see that during training, the extra time introduced by the SAE consists of token feature extraction and cross-rollout semantic alignment: 1.11 s per step for GRPO, i.e., 1.4% of a vanilla GRPO step (81.4 s), and 0.97 s per step for GSPO, i.e., 1.2% of a vanilla GSPO step (81.8 s). The rest of the difference in total time comes from SAEPO policies generating longer responses. Therefore, the direct computational overhead of SAE feature extraction and semantic alignment is minimal.

Note that SAE pretraining is a one-time cost: the SAE is trained once per backbone and reused across runs. Our SAE used by Qwen3-1.7B-Base remains unchanged for both math and code and takes 8.1 GPU-hours to pretrain. On our single-GPU setup, this pretraining plus one 250-step SAEPO RL run takes approximately 14 hours in total. Next, we compare SAEPO with vanilla GRPO/GSPO under matched RL wall-clock budgets and report the training-set accuracies across methods in Table 6, with the pretrained SAE reused.

RL wall-clockVanilla GRPOSAEPO (GRPO)Vanilla GSPOSAEPO (GSPO)
1 h12.915.811.813.3
2 h16.925.814.621.2
3 h20.028.117.328.0
4 h20.028.820.124.9
5 h20.728.221.627.4
5.66 h22.228.720.725.5

Table 6. Training accuracy (%) under matched RL wall-clock budgets on Qwen3-1.7B-Base. SAEPO improves accuracy over the corresponding vanilla optimizer at every reported time point. These budgets begin with RL training and reuse the pretrained SAE.

These results show that SAEPO reaches the respective vanilla optimizers’ final training accuracies after 1.35 hours (GRPO) and 1.75 hours (GSPO), while vanilla GRPO and vanilla GSPO need 5.66 hours and 5.68 hours, respectively. This highlights SAEPO’s advantage in accelerating convergence in RL training.

Sparse Autoencoder Details

Sparse Autoencoder Details

For each backbone, we train a BatchTopK SAE ([2]) on target-layer hidden activations before RL. During RL, the frozen encoder provides ϕqg,t=fenc(Hqg,t)\phi_{qg,t} = f_{\mathrm{enc}}(H_{qg,t}) for cross-rollout semantic alignment in Eqn. (10); the SAE is not used at inference time.

For Qwen3-4B-Base, the SAE uses layer 27, hidden dimension 2560, a 32× expansion, and 81,920 latent features. For Qwen3-1.7B-Base, it uses layer 21, hidden dimension 2048, a 32× expansion, and 65,536 latent features. The target average sparsity is k=16k = 16 for 4B and k=8k = 8 for 1.7B. The OLMo-3-7B-Base SAE uses layer 21, a 32× expansion, and target average sparsity k=16k = 16. The Qwen SAEs are trained on FineWeb-Edu hidden activations dumped from the corresponding base models using the EleutherAI sparsify library, with Adam and learning rate 10−410^{-4}.

The SAE parameters remain fixed throughout policy optimization, and no SAE forward pass is required at inference time. We set α=2\alpha= 2 and τ=0.05\tau= 0.05 for all three backbones and both tasks.

Evaluation Details

We evaluate accuracy with greedy decoding on six math benchmarks: MATH-500 ([26]), GSM8K ([4]), AIME25 ([60]), AMC ([22]), Minerva Math ([21]), and OlympiadBench ([11]). The number of problems per benchmark is (500, 1319, 30, 83, 272, 674), for a total of 2878 problems. We report the unweighted average across these six benchmarks. AIME25 has only 30 problems, so one problem changes its accuracy by 3.3 percentage points. For math, answers are extracted as the last boxed expression and graded by math_verify.

For code generation, we evaluate on LiveCodeBench-v5 ([14, 31]) and LeetCode Dataset v0.3.1 ([52]) (228 held-out problems). A problem counts as solved only if all its unit tests pass. The reported code average weights the two benchmarks equally.

Unless otherwise stated, comparisons use endpoint checkpoints under matched training budgets. This avoids selecting each method’s best checkpoint independently.

Interpretability Analysis Details

Feature-Level Heatmap Construction

Stage 1: Rollout pool. We draw a stratified subsample of 200 problems from the MATH-500 test split. The seven subject labels are Algebra, Geometry, Number Theory, Counting & Probability, Prealgebra, Intermediate Algebra, and Precalculus. Sampling uses numpy.random.default_rng with seed 42, with approximately 200/7 problems per subject. For each question, we generate G=8G = 8 rollouts with Qwen3-4B-Base at T=1.0T = 1.0, max_new_tokens = 512, and the math prompt described in Appendix § 9.§ 2. We grade each rollout with math_verify and keep groups with at least two correct and two incorrect rollouts, so every retained rollout has both comparison sets after self-exclusion.

Stage 2: SAE encoding. For every retained rollout, we capture each generated token’s layer-27 hidden state and encode it with the frozen Qwen3-4B SAE. We store the (top_idx, top_acts) pairs, with k=16k = 16 active features per token on average and 81,920 latent features in total.

Stage 3: Cross-rollout semantic alignment. For each token, we compute soft alignment against all generated positions in every other rollout of the same question, then average those alignment scores over correct and incorrect rollouts separately. The resulting raw semantic score Sqg,tS_{qg,t} follows Eqn. (10)–Eqn. (12). The token’s own rollout is excluded, and rollouts need not align by generation position.

Stage 4: Feature-level aggregation. For each subject and SAE feature, we average Sqg,tS_{qg,t} over tokens where that feature is active. We rank features by this mean score and display the five highest and five lowest for each subject in the figure. Each row lists the four token strings with highest mean activation for that feature; token strings must occur at least twice, and displayed features must fire at least 30 times. Cell color is normalized within each feature row, showing relative activation among its tokens.

Ablation Details

The component ablation appears in Table 2. Here we give its scoring details and report the SAE sparsity and hook-layer ablations on Qwen3-1.7B-Base in Table 7 and Table 8.

LayerMATH-500GSM8KAIME25AMCMinervaOlympiadAvg.
Layer 366.074.53.325.328.723.136.82
Layer 964.475.63.324.129.423.736.75
Layer 1564.870.23.325.329.822.135.92
Layer 2165.676.33.334.929.822.138.68
Layer 2764.475.90.033.727.622.437.33

Table 7. Ablation study of SAE hook layer selection for Qwen3-1.7B-Base with GRPO + SAEPO. We report accuracy (%) on six math benchmarks and their unweighted average. Boldface marks the best value in each column.

MethodMATH-500GSM8KAIME25AMCMinervaOlympiadAvg.
Vanilla GRPO63.274.93.326.523.921.535.56
SAEPO (k=4k=4)65.674.73.327.726.121.836.54
SAEPO (k=8k=8)65.676.33.334.929.822.138.68
SAEPO (k=16k=16)64.679.00.030.130.121.837.61
SAEPO (k=32k=32)63.672.33.337.332.422.138.50
SAEPO (k=64k=64)66.272.00.028.933.523.437.34

Table 8. Ablation of SAE sparsity kk for Qwen3-1.7B-Base with GRPO + SAEPO. We report accuracy (%) on six math benchmarks and their unweighted average.

Raw-Embedding Contrast. This ablation replaces the SAE code ϕqg,t\phi_{qg,t} with the raw target-layer hidden state Hqg,tH_{qg,t}, while keeping the cross-rollout soft-alignment and correct-minus-incorrect scoring rules. Its lower average in Table 2 suggests that the sparse feature representation matters for this credit signal.

Reverse SAEPO Signal. This ablation reverses the raw semantic score, Sqg,trev=−Sqg,tS^{\mathrm{rev}}_{qg,t}=-S_{qg,t}, before batch standardization and advantage shaping. Its lower accuracy indicates that the correct-minus-incorrect direction matters.

Table 8 varies target average sparsity kk, with k=8k=8 giving the highest average among the tested values. Table 7 varies the SAE hook layer, with layer 21 giving the highest reported average.

Comparison with Dense Learned Representations

In Table 2, we compare credit assignment using SAE representations with raw hidden states from the language model, and SAE representations show better performance. We run additional experiments to compare SAE, autoencoder (AE), and MLP-based encoders with the same latent dimension of 65,536. For training budgets, we train all three encoders on the policy’s own math rollouts: 32,275 trajectories generated by Qwen3-1.7B-Base from our RL training set, comprising approximately 43.8 million tokens. We train the SAE with reconstruction and sparsity constraints, the AE with reconstruction alone, and the MLP to predict the outcomes of math rollouts using binary cross-entropy through a linear readout. We then freeze all three encoders and run RL training with the SAEPO pipeline, with only the latent code differing. Table 9 reports the accuracies on the six math benchmarks.

RepresentationMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
SAE latent code65.878.06.734.933.122.340.12
MLP latent code59.077.53.326.526.519.635.40
AE latent code63.874.13.334.933.121.838.50

Table 9. Comparison of encoders trained on the same math rollouts with 65,536 latent dimensions. SAE-based credit assignment achieves the highest six-benchmark average, supporting the contribution of sparse semantic representations beyond a general learned transformation.

The comparison in Table 9 shows that SAEPO with sparse semantic decomposition achieves higher average accuracy than the dense AE and MLP representations. SAE representations achieve 40.12% average accuracy, compared with 38.50% for the dense AE and 35.40% for the MLP, gains of 1.62 and 4.72 percentage points, respectively. Moreover, SAE’s latent code makes the credit signal interpretable. Each token activates only a few sparse, largely monosemantic latents, so the similarity that determines its credit decomposes into contributions from the concepts it shares with aligned tokens in correct and incorrect rollouts. This lets us identify which concepts are rewarded or penalized and track them across problems and over training. Dense AE or MLP codes spread the same information over many entangled coordinates with no individual meaning; therefore their credit cannot be traced back to human-interpretable concepts in Appendix § 11.

Similarity Metrics and Alignment

Our SAEPO is a general framework and can support different similarity metrics and alignment rules. We chose cosine similarity and soft alignment because of their stable performance in our preliminary experiments. We run additional experiments as ablation studies on the choice of similarity metric and alignment rule. Specifically, we first examine whether these choices affect performance on Qwen3-1.7B-Base with GRPO. We compare cosine similarity with Jaccard similarity, negative L2L_2 distance, and inner product, retaining soft semantic alignment for each metric. We also replace soft semantic alignment with hard alignment, which compares tokens at the same positions across rollouts, while retaining cosine similarity. Unless varied, these and the following ablations use the default α=2\alpha= 2 and τ=0.05\tau= 0.05. Table 10 shows the results.

Metric / alignmentMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
Cosine + soft alignment (default)65.676.33.334.929.822.138.68
Jaccard + soft alignment63.477.60.031.329.423.337.50
Negative L2L_2 + soft alignment64.875.43.330.130.122.137.63
Inner product + soft alignment64.075.83.334.929.021.738.12
Cosine + hard alignment62.678.70.033.728.720.837.41

Table 10. Similarity and alignment ablations. Cosine similarity with soft alignment achieves the highest benchmark average among the tested alternatives. The hard-alignment comparison supports matching semantically corresponding content across token positions.

Table 10 supports both design choices. Similarity metrics: Cosine similarity, the default metric for SAEPO, achieves the highest average accuracy among the tested metrics, supporting its use as our default. Alignment rules: Replacing soft alignment with hard alignment lowers the average from 38.68% to 37.41%. This supports the use of our soft alignment rule, i.e., matching tokens by semantic similarity across positions: corresponding reasoning content need not occur at the same token position in different rollouts.

Sensitivity to the SAE Weight and Alignment Temperature

We run additional experiments to analyze the sensitivity of the SAE weight α\alpha and alignment temperature τ\tau. Table 11 and Table 12 show the results. We vary the two hyperparameters independently: Table 11 varies α\alpha with τ=0.05\tau= 0.05, while Table 12 varies τ\tau with α=2\alpha= 2.

SettingMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
Default (α=2\alpha= 2)65.676.33.334.929.822.138.68
α=0.5\alpha= 0.565.474.63.327.727.222.636.80
α=1\alpha= 166.675.50.032.530.123.638.06
α=4\alpha= 463.075.90.028.924.322.635.77

Table 11. Sensitivity to the SAE weight α\alpha at τ=0.05\tau= 0.05. The default α=2\alpha= 2 yields the highest average among the tested weights, supporting a moderate contribution from the semantic signal.

SettingMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
Default (τ=0.05\tau= 0.05)65.676.33.334.929.822.138.68
τ=0.01\tau= 0.0163.276.53.326.528.322.636.73
τ=0.02\tau= 0.0261.878.66.736.129.023.739.32
τ=0.15\tau= 0.1563.870.43.333.730.122.737.33

Table 12. Sensitivity to alignment temperature τ\tau at α=2\alpha= 2. The intermediate temperatures 0.02 and 0.05 outperform both 0.01 and 0.15; τ=0.02\tau= 0.02 achieves the highest average in this sweep.

The best average accuracy occurs at α=2\alpha= 2 among the tested values, while increasing the weight to α=4\alpha= 4 harms performance, lowering the average from 38.68% to 35.77%. Thus, stronger SAE guidance is not always better, which supports a moderate weight for α\alpha.

For τ\tau, the best average accuracy occurs at τ=0.02\tau= 0.02, reaching 39.32% and exceeding our default τ=0.05\tau= 0.05 by 0.64 percentage points; both outperform the lower temperature of 0.01 and the higher temperature of 0.15. This indicates that alignment sharpness affects performance. The results favor an intermediate temperature among the tested settings, balancing concentration on close matches with contributions from other relevant tokens.

Correctness-Balance Weighting and Score Normalization

We further run experiments to examine the sensitivity of SAEPO to the correctness-balance weight ρq\rho_q. Since SS is standardized over the batch, we vary the shape of the weighting as Sqg,t=ρqγ(sqg,t+−sqg,t−)S_{qg,t} = \rho_q^\gamma(s^+_{qg,t} - s^-_{qg,t}) for scored tokens. Here γ=0\gamma= 0 removes the weighting, γ=1\gamma= 1 is the default, and γ=2\gamma= 2 strengthens the downweighting of imbalanced correct/incorrect groups. Unscored tokens retain the original zero-SAE-signal convention. Table 13 reports the final RL evaluation results of Qwen3-1.7B-Base on the math task.

SettingMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
Default (γ=1\gamma= 1)65.676.33.334.929.822.138.68
No balance weight (γ=0\gamma= 0)63.073.23.331.327.623.036.90
Squared balance weight (γ=2\gamma= 2)65.276.10.031.326.122.436.85

Table 13. Sensitivity to correctness-balance weighting. The default γ=1\gamma= 1 outperforms both removing the weight and squaring it, supporting the original balance between contributions from different rollout groups.

Table 13 shows that the default weighting achieves 38.68% average accuracy, compared with 36.90% without weighting and 36.85% with squared weighting. This supports using the balance of correct and incorrect rollouts to regulate the contribution of each group’s semantic contrast.

We also test our current batch-level normalization method against normalizing the scored tokens of correct solutions and those of incorrect solutions separately. Table 14 shows the final RL evaluation results of Qwen3-1.7B-Base on the math task.

SettingMATH-500GSM8KAIME25AMCMinervaOlympiadBenchAvg.
Joint normalization (SAEPO default)65.676.33.334.929.822.138.68
Separate correct/incorrect normalization64.069.13.333.727.222.336.60

Table 14. Joint versus separate score normalization. Normalizing scored tokens together improves the six-benchmark average over separate normalization of correct and incorrect rollouts, supporting the shared batch-level statistics used by SAEPO.

The sensitivity results show that SAEPO is generally robust to the tested hyperparameters, and our batch-level normalization performs better than normalizing separately. As shown in Table 14, joint normalization achieves 38.68% average accuracy, compared with 36.60% for separate normalization, an improvement of 2.08 percentage points.

Results across Random Seeds

Next, we compare the final evaluation results of SAEPO, vanilla GRPO, and the strongest baseline, THR, using multiple random seeds. We use Qwen3-1.7B-Base with seeds 42, 43, and 44. Table 15 reports each run’s final six-benchmark math average, together with the mean and standard deviation across seeds.

MethodSeed 42Seed 43Seed 44Mean ± s.d.
Vanilla GRPO35.5636.2936.2536.03 ± 0.41
THR36.7236.5837.0236.77 ± 0.22
SAEPO38.6839.8239.4739.32 ± 0.58

Table 15. Final six-benchmark math averages (%) across three random seeds. SAEPO outperforms vanilla GRPO and THR at every seed, showing that its accuracy gains are consistent across these runs.

SAEPO achieves a mean accuracy of 39.32±0.58%, compared with 36.03±0.41% for vanilla GRPO and 36.77±0.22% for THR. It improves the mean by 3.29 and 2.55 percentage points, respectively, and ranks highest at all three seeds. Two-sided paired tt-tests across seeds yield p=0.0207p = 0.0207 and p=0.0014p = 0.0014 for comparisons against THR and vanilla GRPO, respectively, both lower than 0.05. This indicates that both reported improvements are statistically significant.

SAE Quality

Table 16 reports SAE reconstruction quality on MATH rollouts generated by each backbone. For each completion token, we compute the cosine similarity between its residual-stream activation and its SAE reconstruction, then average over all evaluated tokens. We exclude the prompt using prompt_len and truncate the completion at Problem: if the marker appears.

BackboneReconstruction cosine
Qwen3-1.7B-Base0.960
Qwen3-4B-Base0.799
OLMo-3-7B0.847

Table 16. SAE reconstruction quality on MATH.

For Qwen3-1.7B-Base, Qwen3-4B-Base, and OLMo-3-7B, we collect activations after decoder blocks 21, 27, and 21, respectively. We record activations in bf16 and compute cosine similarities in float32. Because BatchTopK selects latent activations across tokens in a batch, we use the same batch sizes as in SAE training: 4,096 tokens for Qwen3-1.7B-Base, 2,048 for Qwen3-4B-Base, and 1,024 for OLMo-3-7B.

Cross-Task Transfer of the SAE and Its Stability during RL

The SAE for Qwen3-1.7B-Base is trained on a general corpus (FineWeb-Edu web text), and the same SAE is used without fine-tuning for both math and code, i.e., without any task-specific adaptation. To show how consistent a general-corpus SAE is across tasks, we ran additional tests to measure its reconstruction quality on the base model’s own math and code rollouts used for RL training. We report the reconstruction cosine, i.e., the cosine similarity between each token’s hidden state and its SAE reconstruction. On math and code rollouts, our general-corpus SAE maintains reconstruction cosine similarities of 0.957 and 0.952, respectively. Therefore, a general-corpus SAE provides consistent representations across tasks without task-specific adaptation.

We ran additional experiments to evaluate reconstruction quality before and after RL training. Our results show that the frozen SAE maintains high reconstruction quality and substantial overlap in frequently activated features as the policy evolves during RL.

Details on the Experiments. We feed identical code and math rollouts to Qwen3-1.7B-Base checkpoints before and after RL, so changes in SAE activations reflect changes in the model rather than the input text. Besides reconstruction

Case Study Examples

cosine similarity, we measure concept overlap (top-1000) with the base model (step 0): the fraction of its 1,000 most frequently activated SAE features that remain among the 1,000 most frequent after RL. Table 17 shows the results.

TaskModel checkpointReconstruction cosineConcept overlap (top-1000)
MathBase model0.957100%
MathSAEPO + GRPO (Final)0.93294.3%
MathSAEPO + GSPO (Final)0.94094.8%
CodeBase model0.952100%
CodeSAEPO + GRPO (Final)0.94596.6%
CodeSAEPO + GSPO (Final)0.94997.1%

Table 17. The frozen SAE maintains high reconstruction cosine and substantial overlap in frequently activated features across tasks and RL checkpoints. Final policies retain 94.3–97.1% of the base model’s top-1,000 active features, supporting reuse of the pretrained SAE throughout policy optimization.

Results. From Table 17, we can see that reconstruction quality remains high after training: cosine similarity decreases modestly from 0.957 to 0.932–0.940 for math and from 0.952 to 0.945–0.949 for code. Final checkpoints also retain 94.3–97.1% of the base model’s top-1,000 features, indicating that the most frequently activated concepts remain largely consistent. Together, these results support the robustness of the pretrained, frozen SAE to policy evolution during RL.

More Top Feature Analysis

Figure 6. More Case Study Examples.

More Top Feature Analysis

Figure 7. More feature analysis results on “Number Theory” and “Prealgebra” subjects in MATH-500.

Figure 8. More feature analysis results on “Intermediate Algebra” and “Precalculus” subjects in MATH-500.

References

  1. [1]Trenton Bricken, Adly Templeton, Joshua Batson, Brian Chen, Adam Jermyn, Tom Conerly, Nick Turner, Cem Anil, Carson Denison, Amanda Askell, Robert Lasenby, Yifan Wu, Shauna Kravec, Nicholas Schiefer, Tim Maxwell, Nicholas Joseph, Zac Hatfield-Dodds, Alex Tamkin, Karina Nguyen, Brayden McLean, Josiah E Burke, Tristan Hume, Shan Carter, Tom Henighan, and Christopher Olah. Towards monosemanticity: Decomposing language models with dictionary learning. Transformer Circuits Thread, 2023. URL https://transformer-circuits.pub/2023/monosemantic-features/index.html.
  2. [2]Bart Bussmann, Patrick Leask, and Neel Nanda. Batchtopk sparse autoencoders. CoRR, abs/2412.06410, 2024. doi: 10.48550/ARXIV.2412.06410. URL https://doi.org/10.48550/arXiv.2412.06410.
  3. [3]Guoxin Chen, Minpeng Liao, Chengxi Li, and Kai Fan. Step-level value preference optimization for mathematical reasoning. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7889–7903, 2024.arxiv.org/abs/2406.10858
  4. [4]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  5. [5]Ganqu Cui, Lifan Yuan, Zefan Wang, Hanbin Wang, Yuchen Zhang, Jiacheng Chen, Wendi Li, Bingxiang He, Yuchen Fan, Tianyu Yu, Qixin Xu, Weize Chen, Jiarui Yuan, Huayu Chen, Kaiyan Zhang, Xingtai Lv, Shuo Wang, Yuan Yao, Xu Han, Hao Peng, Yu Cheng, Zhiyuan Liu, Maosong Sun, Bowen Zhou, and Ning Ding. Process reinforcement through implicit rewards. Trans. Mach. Learn. Res., 2026, 2026. URL https://openreview.net/forum?id=9SkkfiLopZ.arxiv.org/abs/2502.01456
  6. [6]Ning Dai, Zheng Wu, Renjie Zheng, Ziyun Wei, Wenlei Shi, Xing Jin, Guanlin Liu, Chen Dun, Liang Huang, and Lin Yan. Process supervision-guided policy optimization for code generation. CoRR, abs/2410.17621, 2024. doi: 10.48550/ARXIV.2410.17621. URL https://doi.org/10.48550/arXiv.2410.17621.
  7. [7]Wenlong Deng, Yi Ren, Yushu Li, Boying Gong, Danica Sutherland, Xiaoxiao Li, and Christos Thrampoulidis. Token hidden reward: Steering exploration-exploitation in group relative deep reinforcement learning. In International Conference on Learning Representations, volume 2026, pages 122109–122133, 2026.arxiv.org/abs/2510.03669
  8. [8]Yi Fang, Wenjie Wang, Mingfeng Xue, Boyi Deng, Fengli Xu, Dayiheng Liu, and Fuli Feng. Controllable llm reasoning via sparse autoencoder-based steering. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 21290–21305, 2026.
  9. [9]Andrey V Galichin, Alexey Dontsov, Polina Druzhinina, Anton Razzhigaev, Oleg Rogov, Elena Tutubalina, and Ivan Oseledets. I have covered all the bases here: Interpreting reasoning features in large language models via sparse autoencoders. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 30771–30779, 2026.
  10. [10]Leo Gao, Tom Dupre la Tour, Henk Tillman, Gabriel Goh, Rajan Troll, Alec Radford, Ilya Sutskever, Jan Leike, and Jeffrey Wu. Scaling and evaluating sparse autoencoders. In International Conference on Learning Representations, volume 2025, pages 26721–26754, 2025.arxiv.org/abs/2406.04093
  11. [11]Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, et al. 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), pages 3828–3850, 2024.
  12. [12]Jian Hu, Jason Klein Liu, Haotian Xu, and Wei Shen. Reinforce++: Stabilizing critic-free policy optimization with global advantage normalization. arXiv preprint arXiv:2501.03262, 2025.arxiv.org/abs/2501.03262
  13. [13]Robert Huben, Hoagy Cunningham, Logan Smith, Aidan Ewart, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. In International Conference on Learning Representations, volume 2024, pages 7827–7845, 2024.arxiv.org/abs/2309.08600
  14. [14]Naman Jain, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations, volume 2025, pages 58791–58831, 2025.arxiv.org/abs/2403.07974
  15. [15]Xingguang Ji, Yahui Liu, Qi Wang, Jingyuan Zhang, Yang Yue, Rui Shi, Chenxi Sun, Fuzheng Zhang, Guorui Zhou, and Kun Gai. Leanabell-prover-v2: Verifier-integrated reasoning for formal theorem proving via reinforcement learning. arXiv preprint arXiv:2507.08649, 2025.arxiv.org/abs/2507.08649
  16. [16]Xue Jiang, Yihong Dong, Mengyang Liu, Deng Hongyi, Tian Wang, Yongding Tao, Zhi Jin, Wenpin Jiao, and Ge Li. Coderl+: Improving code generation via reinforcement with execution semantics alignment. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3608–3622, 2026.
  17. [17]Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron C. Courville, and Nicolas Le Roux. Vineppo: Refining credit assignment in RL training of llms. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/kazemnejad25a.html.arxiv.org/abs/2410.01679
  18. [18]Xin Lai, Zhuotao Tian, Yukang Chen, Senqiao Yang, Xiangru Peng, and Jiaya Jia. Step-dpo: Step-wise preference optimization for long-chain reasoning of llms. CoRR, abs/2406.18629, 2024. doi: 10.48550/ARXIV.2406.18629. URL https://doi.org/10.48550/arXiv.2406.18629.
  19. [19]Guillaume Lample, Timothee Lacroix, Marie-Anne Lachaux, Aurelien Rodriguez, Amaury Hayat, Thibaut Lavril, Gabriel Ebner, and Xavier Martinet. Hypertree proof search for neural theorem proving. Advances in neural information processing systems, 35: 26337–26349, 2022.arxiv.org/abs/2205.11491
  20. [20]Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven Chu Hong Hoi. Coderl: Mastering code generation through pretrained models and deep reinforcement learning. Advances in Neural Information Processing Systems, 35:21314–21328, 2022.arxiv.org/abs/2207.01780
  21. [21]Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. Solving quantitative reasoning problems with language models. Advances in neural information processing systems, 35:3843–3857, 2022.arxiv.org/abs/2206.14858
  22. [22]Jia Li, Edward Beeching, Lewis Tunstall, Ben Lipkin, Roman Soletsky, Shengyi Huang, Kashif Rasul, Longhui Yu, Albert Q Jiang, Ziju Shen, et al. Numinmath: The largest public dataset in ai4maths with 860k pairs of competition math problems and solutions. Hugging Face repository, 13(9):9, 2024.
  23. [23]Kenneth Li, Qam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Inference-time intervention: Eliciting truthful answers from a language model. Advances in neural information processing systems, 36:41451–41530, 2023.arxiv.org/abs/2306.03341
  24. [24]Ziheng Li, Liu Kang, Feng Xiao, Luxi Xing, Qingyi Si, Zhuoran Li, Weikang Gong, Deqing Yang, Yanghua Xiao, and Hongcheng 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), pages 24681–24693, 2026.
  25. [25]Tom Lieberum, Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Nicolas Sonnerat, Vikrant Varma, János Kramár, Anca Dragan, Rohin Shah, and Neel Nanda. Gemma scope: Open sparse autoencoders everywhere all at once on gemma 2. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pages 278–300, 2024.
  26. [26]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step, 2023. URL https://arxiv.org/abs/2305.20050.
  27. [27]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, volume 2024, pages 39578–39601, 2024.arxiv.org/abs/2305.20050
  28. [28]Zicheng Lin, Tian Liang, Jiahao Xu, Qiuzhi Liu, Xing Wang, Ruilin Luo, Chufan Shi, Siheng Li, Yujiu Yang, and Zhaopeng Tu. Critical tokens matter: Token-level contrastive estimation enhances llm’s reasoning capability. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/lin25j.html.arxiv.org/abs/2411.19943
  29. [29]Dengcan Liu, Jiahao Li, Zheren Fu, Yi Tu, Jiajun Li, Zhendong Mao, and Yongdong Zhang. Sparserm: A lightweight preference modeling with sparse autoencoder. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 32051–32059, 2026.arxiv.org/abs/2511.07896
  30. [30]Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding rl-zero-like training: A critical perspective. CoRR, abs/2503.20783, 2025. doi: 10.48550/ARXIV.2503.20783. URL https://doi.org/10.48550/arXiv.2503.20783.
  31. [31]Michael Luo, Sijun Tan, Roy Huang, Ameen Patel, Alpay Ariyak, Qingyang Wu, Xiaoxiang Shi, Rachel Xin, Colin Cai, Maurice Weber, Ce Zhang, Li Erran Li, Raluca Ada Popa, and Ion Stoica. Deepcoder: A fully open-source 14b coder at o3-mini level, 2025a. Notion Blog.
  32. [32]Michael Luo, Sijun Tan, Justin Wong, Xiaoxiang Shi, William Tang, Manan Roongta, Colin Cai, Jeffrey Luo, Tianjun Zhang, Erran Li, Raluca Ada Popa, and Ion Stoica. Deepscaler: Surpassing o1-preview with a 1.5b model by scaling rl, 2025b. Notion Blog.
  33. [33]Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, et al. Olmo 3. arXiv preprint arXiv:2512.13961, 2025.
  34. [34]Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Tom Lieberum, Vikrant Varma, János Kramár, Rohin Shah, and Neel Nanda. Improving dictionary learning with gated sparse autoencoders. CoRR, abs/2404.16014, 2024a. doi: 10.48550/ARXIV.2404.16014. URL https://doi.org/10.48550/arXiv.2404.16014.
  35. [35]Senthooran Rajamanoharan, Tom Lieberum, Nicolas Sonnerat, Arthur Conmy, Vikrant Varma, János Kramár, and Neel Nanda. Jumping ahead: Improving reconstruction fidelity with jumprelu sparse autoencoders. CoRR, abs/2407.14435, 2024b. doi: 10.48550/ARXIV.2407.14435. URL https://doi.org/10.48550/arXiv.2407.14435.
  36. [36]Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Huber, and Alexander Matt Turner. Steering llama 2 via contrastive activation addition. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, August 11-16, 2024, pages 15504–15522. Association for Computational Linguistics, 2024. doi: 10.18653/V1/2024.ACL-LONG.828. URL https://doi.org/10.18653/v1/2024.acl-long.828.
  37. [37]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. URL http://arxiv.org/abs/1707.06347.
  38. [38]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. CoRR, abs/2402.03300, 2024. doi: 10.48550/ARXIV.2402.03300. URL https://doi.org/10.48550/arXiv.2402.03300.
  39. [39]Wei Shi, Ziyuan Xie, Sihang Li, and Xiang Wang. SAFER: probing safety in reward models with sparse autoencoder. CoRR, abs/2507.00665, 2025. doi: 10.48550/ARXIV.2507.00665. URL https://doi.org/10.48550/arXiv.2507.00665.
  40. [40]Wei Sun, Wen Yang, Pu Jian, Qianlong Du, Fuwei Cui, Shuo Ren, and Jiajun Zhang. KTAE: A model-free algorithm to key-tokens advantage estimation in mathematical reasoning. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025. URL http://papers.nips.cc/paper_files/paper/2025/hash/ed0566150804b030366b68df744950a–Abstract-Conference.html.arxiv.org/abs/2505.16826
  41. [41]Hongze Tan and Jianfei Pan. GTPO and GRPO-S: token and sequence-level reward shaping with policy entropy. CoRR, abs/2508.04349, 2025. doi: 10.48550/ARXIV.2508.04349. URL https://doi.org/10.48550/arXiv.2508.04349.
  42. [45]Adly Templeton, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, and Tom Henighan. Scaling monosemanticity: Extracting interpretable features from claude 3 sonnet. Transformer Circuits Thread, 2024. URL https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html.
  43. [46]Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. Math-shepherd: Verify and reinforce llms step-by-step without human annotations. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, August 11-16, 2024, pages 9426–9439. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.ACL-LONG.510. URL https://doi.org/10.18653/v1/2024.acl-long.510.
  44. [47]Shangshang Wang, Julian Asilis, Ömer Faruk Akgül, Enes Burak Bilgin, Ollie Liu, Deqing Fu, and Willie Neiswanger. Resa: Transparent reasoning models via saes. CoRR, abs/2506.09967, 2025a. doi: 10.48550/ARXIV.2506.09967. URL https://doi.org/10.48550/arXiv.2506.09967.
  45. [48]Shenzhi Wang, Le Yu, Chang Gao, Chujie Zheng, Shixuan Liu, Rui Lu, Kai Dang, Xiong-Hui Chen, Jianxin Yang, Zhenru Zhang, Yuqiong Liu, An Yang, Andrew Zhao, Yang Yue, Shiji Song, Bowen Yu, Gao Huang, and Junyang Lin. Beyond the 80/20 rule: High-entropy minority tokens drive effective reinforcement learning for LLM reasoning. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025b. URL http://papers.nips.cc/paper_files/paper/2025/hash/a797c2de0c1fdabf4d1ab8cd0b465c6-Abstract-Conference.html.arxiv.org/abs/2506.01939
  46. [49]Yinjie Wang, Ling Yang, Ye Tian, Ke Shen, and Mengdi Wang. Co-evolving LLM coder and unit tester via reinforcement learning. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025c. URL http://papers.nips.cc/paper_files/paper/2025/hash/d38653cdaa8e992549e1e9e1621610d7-Abstract-Conference.html.arxiv.org/abs/2506.03136
  47. [50]Yiping Wang, Qing Yang, Zhiyuan Zeng, Liliang Ren, Liyuan Liu, Baolin Peng, Hao Cheng, Xuehai He, Kuan Wang, Jianfeng Gao, Weizhu Chen, Shuhang Wang, Simon S. Du, and Yelong Shen. Reinforcement learning for reasoning in large language models with one training example. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025d. URL http://papers.nips.cc/paper_files/paper/2025/hash/b1ea3f93167c55f3fc2999b68a170ff3-Abstract-Conference.html.arxiv.org/abs/2504.20571
  48. [51]Xumeng Wen, Zihan Liu, Shun Zheng, Zhijian Xu, Shengyu Ye, Zhirong Wu, Xiao Liang, Yang Wang, Junjie Li, Ziming Miao, Jiang Bian, and Mao Yang. Reinforcement learning with verifiable rewards implicitly incentivizes correct reasoning in base llms. CoRR, abs/2506.14245, 2025. doi: 10.48550/ARXIV.2506.14245. URL https://doi.org/10.48550/arXiv.2506.14245.
  49. [52]Yunhui Xia, Wei Shen, Yan Wang, Jason Klein Liu, Huifeng Sun, Siyue Wu, Jian Hu, and Xiaolong Xu. Leetcodedataset: A temporal dataset for robust evaluation and efficient training of code llms, 2025. URL https://arxiv.org/abs/2504.14655.
  50. [53]An Yang, Beichen Zhang, Binyuan Hui, Bofei Gao, Bowen Yu, Chengpeng Li, Dayiheng Liu, Jianhong Tu, Jingren Zhou, Junyang Lin, Keming Lu, Mingfeng Xue, Runji Lin, Tianyu Liu, Xingzhang Ren, and Zhenru Zhang. Qwen2.5-math technical report: Toward mathematical expert model via self-improvement. CoRR, abs/2409.12122, 2024. doi: 10.48550/ARXIV.2409.12122. URL https://doi.org/10.48550/arXiv.2409.12122.
  51. [54]Qingyu Yin, Chak Tou Leong, Hongbo Zhang, Minjun Zhu, Hanqi Yan, Qiang Zhang, Yulan He, Wenjie Li, Jun Wang, Yue Zhang, and Linyi Yang. Constrain alignment with sparse autoencoders. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/yin25a.html.arxiv.org/abs/2411.07618
  52. [55]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Hu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, and Mingxuan Wang. DAPO: an open-source LLM reinforcement learning system at scale. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruiz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025. URL http://papers.nips.cc/paper_files/paper/2025/hash/a4277440d50f1f15d2cb4c14f7e0c0d2-A bstract-Conference.html.arxiv.org/abs/2503.14476
  53. [56]Yongcheng Zeng, Guoqing Liu, Weiyu Ma, Ning Yang, Haifeng Zhang, and Jun Wang. Token-level direct preference optimization. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 58348–58365. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/zeng24c.html.arxiv.org/abs/2404.11999
  54. [57]Dan Zhang, Sining Zhoubian, Ziniu Hu, Yisong Yue, Yuxiao Dong, and Jie Tang. Rest-mcts*: LLM self-training via process reward guided tree search. In Amir Globerson, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024. URL http://papers.nips.cc/paper_files/paper/2024/hash/76ec64dc30e9faaf0e4b6093eaa377218-Abstract-Conference.html.arxiv.org/abs/2406.03816
  55. [58]Jingyuan Zhang, Qi Wang, Xingguang Ji, Yahui Liu, Yang Yue, Fuzheng Zhang, Di Zhang, Guorui Zhou, and Kun Gai. Leanabell-prover: Posttraining scaling in formal reasoning. CoRR, abs/2504.06122, 2025. doi: 10.48550/ARXIV.2504.06122. URL https://doi.org/10.48550/arXiv.2504.06122.
  56. [59]Shuyi Zhang, Wei Shi, Sihang Li, Jiayi Liao, Tao Liang, Hengxing Cai, and Xiang Wang. Interpretable reward model via sparse autoencoder. In Sven Koenig, Chad Jenkins, and Matthew E. Taylor, editors, Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026, pages 34808–34816. AAAI Press, 2026. doi: 10.1609/AAAI.V40I41.40783. URL https://doi.org/10.1609/aaai.v40i41.40783.
  57. [60]Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2025, 2025.
  58. [61]Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization. CoRR, abs/2507.18071, 2025. doi: 10.48550/ARXIV.2507.18071. URL https://doi.org/10.48550/arXiv.2507.18071.
  59. [62]Han Zhong, Zikang Shan, Guhao Feng, Wei Xiong, Xinle Cheng, Li Zhao, Di He, Jiang Bian, and Liwei Wang. DPO meets PPO: reinforced token optimization for RLHF. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/zhong25b.html.arxiv.org/abs/2404.18922
  60. [63]Andy Zou, Long Phan, Sarah Li Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, Shashwat Goel, Nathaniel Li, Michael J. Byun, Zifan Wang, Alex Mallen, Steven Basart, Sammi Koyejo, Dawn Song, Matt Fredrikson, J. Zico Kolter, and Dan Hendrycks. Representation engineering: A top-down approach to AI transparency. CoRR, abs/2310.01405, 2023. doi: 10.48550/ARXIV.2310.01405. URL https://doi.org/10.48550/arXiv.2310.01405.

Paper details

vlnc:W_5ereu77y
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents