Manuscript Offprint

arXiv:2610.11519

Residual Advantage: Student-Relative Teacher Guidance for RL with Verifiable Rewards

Xiaobing Chen, Zhiqi Pang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Reinforcement learning with verifiable rewards (RLVR) and on-policy distillation (OPD) have become two main paradigms for post-training reasoning models. RLVR gives each response a single outcome label, leaving the steps inside it without separate credit. OPD provides token-level guidance at student-visited prefixes, but its pointwise signal does not directly reflect the pattern of teacher–student disagreement across the vocabulary. Dense, unbounded log-ratio supervision can amplify the teacher's influence, yet a strong solver is not necessarily a suitable guide when the student's solution paths depart from the teacher's. We propose Residual Advantage (RA), which treats the teacher–student probability residual as a bounded one-step reward, subtracts the corresponding state value under the student policy to form a standard advantage, and centers the result within each response before adding it to the verifier advantage. The guidance term has zero mean within each response, so the verifier advantage remains the response's mean label and the teacher only redistributes credit among the steps within it. Co-RA further updates a teacher LoRA with verifier advantages on the same scored student batch and uses the updated teacher in the next iteration's residual, adapting guidance to the student's attempts. With Qwen3-1.7B-Base and Qwen3-4B-Base students and a Qwen3-8B teacher, RA combined with GRPO or REINFORCE++ improves the underlying sequence-advantage algorithm in all 24 comparisons on three mathematical benchmarks, raising macro Avg@8 by 1.7–3.6 points and Pass@8 by 3.9–6.3 points. Both combinations surpass teacher-only OPD, and Co-RA adds a further 1.0–1.5 Avg@8 points.

1 INTRODUCTION

Reinforcement learning with verifiable rewards (RLVR) trains a language model on its own sampled solutions, scored by a checker of the final answer (Shao et al., 2024; DeepSeek-AI et al., 2025). GRPO and REINFORCE++ turn this terminal reward into one advantage per response (Shao et al., 2024; Hu, 2025), so every step receives the same label even when the response mixes useful and mistaken steps. Learning is also confined to the successful paths the student can sample, and under practical budgets much of the gain reflects sharpening of what the model can already do (Yue et al., 2025; Huang et al., 2025).

On-policy distillation (OPD) instead supplies a teacher's next-token distribution at every prefix the student visits (Agarwal et al., 2024; Lu & Thinking Machines Lab, 2025). Its label, the log ratio log⁡(q(a)/p(a))\log(q(a)/p(a)) or one coordinate of a top-k or full-vocabulary divergence, says how far apart teacher and student are at that token but does not directly reflect where the teacher's extra mass sits; a full-vocabulary objective sees this only implicitly, through the softmax coupling of the coordinates. The log-ratio label is moreover unbounded, growing as log⁡(1/q(a))\log(1/q(a)) at a token the teacher assigns little probability, so on such tokens the teacher's signal can become disproportionately strong. At the same time, a strong solver is not necessarily a good teacher for the current student, least of all on prefixes where the student has left the teacher's solution paths (Li et al., 2025; Tiapkin et al., 2025).

∗^{*}Corresponding author.

(a) Residual advantage

Figure

(b) Actor label along one response

Figure

Figure 1: Local teacher guidance redistributes the verifier’s response-level credit. (a) At one prefix, the reward Qd(s,v)=qs(v)−ps(v)Q_d(s, v) = q_s(v) - p_s(v) over the student’s likeliest tokens, its value Vdp(s)V_d^p(s) under the student policy, and the advantage Asd(a)A_s^d(a) of the sampled token, here the student’s third choice and the teacher’s first. (b) Labels along one response, with blue and coral stems for positive and negative guidance terms δt\delta_t; each label is AVA^V plus a centered guidance term, so the labels’ weighted mean is AVA^V.

The question is how teacher guidance should enter RLVR so that the student draws on the teacher's knowledge while the response-level label stays tied to outcome feedback and room for exploration remains.

To this end, we propose Residual Advantage (RA). RA treats the probability difference d=q−pd = q - p as a bounded one-step reward. At each visited prefix it subtracts the reward's expectation under the student's own policy, that is, the policy's value under this reward,

Ad(a)=d(a)−⟨p,d⟩=Ev∼p[(q(a)−q(v))−(p(a)−p(v))],A^{d}(a)=d(a)-\langle p,d\rangle=\mathbb{E}_{v\sim p}\big[(q(a)-q(v))-(p(a)-p(v))\big],

This design reflects how the teacher’s disagreement with the student is distributed. It asks whether, relative to the student, the teacher favors the sampled token over the other candidates the student would consider, each weighted by the student’s probability of choosing it. Even with the same residual at the sampled token, teachers that distribute the rest of the vocabulary differently can therefore give local advantages of opposite signs (Appendix A.4). RA then centers the local advantages within the response and adds them to the verifier advantage, At=AV+λ(Atd−A‾d)A_t = A^V + \lambda(A_t^d - \overline{A}^d), where A‾d\overline{A}^d is the response mean and λ\lambda the guidance weight. This gives the guidance term zero mean within every response, so the verifier advantage remains the response’s mean label and the teacher only redistributes credit among the steps within it. The guidance is thus student-relative twice over, as an advantage under the student’s own next-token distribution and as a deviation within the student’s own response.

The appeal of the construction is that it is both elegant and natural. The local advantage is a single inner product, Ad(a)=⟨ea−p,q−p⟩A^d(a) = \langle e_a - p, q - p \rangle, and three properties follow from it. It is the rate at which the squared distance 12∥p−q∥22\frac{1}{2} \| p - q \|_2^2 falls when the student moves probability toward aa. Its expected update at a prefix is the exact logit gradient of that distance, so the student's own probability of a token scales how strongly the teacher can move it. And it is bounded by the student–teacher distance times the probability the student leaves to other tokens, so guidance fades on its own as the two converge. Scaled in this way by the student's own probability, it also stays small wherever the student is already sure, so the teacher mainly adjusts the choices the student is still weighing instead of imposing its preference on those the student has settled, and it does not inflate small disagreements into large labels. The construction requires no schedule, threshold, or learned component.

Co-RA extends the construction to a teacher that learns from the student's attempts. Each iteration scores a student batch, fixes its labels, and updates a teacher LoRA with the base estimator's verifier advantages while the student receives the guided label, much as actor and critic share a rollout batch in PPO (Schulman et al., 2017). The updated teacher supplies the distribution in the next iteration's residual, with the same advantage construction and weight as RA. Training on the student's own rollouts with the verifier's advantages lets the teacher adapt to the reasoning along the student's solution paths, with the aim of reducing the bias a frozen teacher carries on trajectories it would not have generated itself. Across two students, two estimators, and three mathematical benchmarks,

RA improves all 24 three-seed benchmark means of its base estimator, both combinations surpass teacher-only OPD, and Co-RA raises accuracy further with mixed changes in coverage.

References (100)

  • On-policy distillation of language models: Learning from self-generated mistakes
  • Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs
  • Robust and efficient estimation by minimising a density power divergence
  • Ganqu Cui, Lifan Yuan, Zefan Wang, Hanbin Wang, Yuchen Zhang, Jiacheng Chen, Wendi Li, Bingxiang He, Yuchen Fan, Tianyu Yu, Qixin Xu, et al. Process reinforcement through implicit rewards. arXiv preprint arXiv:2502.01456, 2025. (opens arXiv in a new tab)
  • DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning
  • Efficient projections onto the $\ell_{1}$-ball for learning in high dimensions
  • Counterfactual multi-agent policy gradients
  • Advantage-guided distillation for preference alignment in small language models
  • Variance reduction techniques for gradient estimates in reinforcement learning
  • MiniLLM: Knowledge distillation of large language models
  • LoRA: Low-rank adaptation of large language models
  • Jian Hu. REINFORCE++: A simple and efficient approach for aligning large language models, 2025. URL https://arxiv.org/abs/2501.03262v1. Version 1, 4 January 2025. (opens arXiv in a new tab)
  • Self-improvement in language models: The sharpening mechanism
  • VinePPO: Refining credit assignment in RL training of LLMs
  • Sequential Beats Joint: On the Interplay between On-Policy Distillation and RLVR
  • Learning from language feedback via variational policy distillation, 2026b (opens arXiv in a new tab)
  • Small models struggle to learn from strong reasoners
  • ReMax: A simple, effective, and efficient reinforcement learning method for aligning large language models
  • Let's verify step by step
  • On-policy Distillation with Verifiable Reward
  • On-policy distillation
  • From softmax to sparsemax: A sparse model of attention and multi-label classification
  • Advantage-weighted regression: Simple and scalable off-policy reinforcement learning (opens arXiv in a new tab)
  • Direct preference optimization: Your language model is secretly a reward model (opens the publisher in a new tab)
  • From r to Q*: Your language model is secretly a Q-function (opens arXiv in a new tab)
  • Proximal Policy Optimization Algorithms
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Policy gradient methods for reinforcement learning with function approximation
  • On teacher hacking in language model distillation
  • Beyond the 80/20 rule: High-entropy minority tokens drive effective reinforcement learning for LLM reasoning (opens arXiv in a new tab)
  • Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3–4):229–256, 1992. doi: 10.1007/BF00992696. (opens the publisher in a new tab)
  • Learning to reason under off-policy guidance
  • Qwen3 Technical Report
  • DAPO: An Open-Source LLM Reinforcement Learning System at Scale
  • Free process rewards without process labels
  • Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model? In Advances in Neural Information Processing Systems, volume 38, 2025
  • OPD+: Rethinking the advantage design for on-policy distillation, 2026 (opens arXiv in a new tab)
  • Labels are held fixed during differentiation, expectations over actions use the same $p$ that defines the label, and scores are evaluated at the rollout policy
  • For fixed $A^{\star}$, expanding at $\beta^{-1}=0$ gives
  • A frozen solver need not be such a step for the current student, and RA builds its local advantage from the probability residual instead
  • At the rollout policy, the expected logit update of the local label $A^{V} + \lambda A^{d}(a)$, before response centering, is $\nabla_{z} F(p)$ for
  • Projection onto a closed convex set is nonexpansive, which gives the last claim
  • (i) On logit coordinate b, the expected residual update is $\lambda p(b)A^{d}(b)$, with
  • The teacher sensitivity $\partial w_{\alpha}(v)/\partial q(v) = q(v)^{\alpha-2}$ is unbounded at a teacher-rare token for every $\alpha < 2$ and constant at the quadratic endpoint, the only member of the family with bounded teacher influence
  • Figure 3 holds the student's distribution and the teacher's probability of the sampled token fixed while changing the teacher's alternatives
  • Its mean does not depend on $\nu$, and completing the square gives
  • For binary logits, write $p = (x, 1 - x)$ and $d = (u, -u)$
  • Bounded sensitivity is the bounded-influence property of the quadratic comparison (Hampel, 1974; Basu et al., 1998), and Appendix A.4 places it among the alternatives
  • For any realized nonnegative weights with $\sum_t c_t = 1$, the guidance term $\delta_t = \lambda \sum_{u \neq t} c_u(A_t^d - A_u^d)$ therefore satisfies
  • The implication runs one way
  • With $P_c = I - \mathbf{1}c^\top$, the actor label has the vector form
  • Pairing each teacher's position with an agreement position isolates its own contribution
  • Without the student value baseline this cancellation fails, and the disagreement levels of other prefixes enter each token's update through centering
  • The verifier moves the response along its mean score direction and the teacher along the covariance between local advantages and scores
  • For $u > t$, $\psi_t$ is $\mathcal{F}_u$-measurable, and conditioning on $\mathcal{F}_u$ annihilates $A_u^d$
  • Its residual is $d_t^{(k)} = q_{\phi_k,t} - p_{k,t}$, its local advantage is $A_t^{d,(k)} = \langle e_{a_t} - p_{k,t}, d_t^{(k)} \rangle$, and with the same normalized response weights $c_t$ its guidance term is $\delta_t^{(k)} = \lambda(A_t^{d,(k)} - \sum_u c_u A_u^{d,(k)})$
  • Lengths count response tokens
  • These settings supplement Table 9
  • The aligned width is the width of the probability tensor, which exceeds the tokenizer's nominal size (Table 11); the local advantage sums over all aligned coordinates
  • Labels are computed at the rollout distribution and held fixed through the student PPO update
  • The sampled routes use token-mean reduction
  • For runs with verifier feedback, let $y_i \in \{0,1\}$ be answer correctness and $L_i$ the number of response tokens
  • \tag{42} $$
  • Shaping occurs before advantage normalization, so a zero raw reward can yield a negative response advantage
  • Groups with identical returns stay in the batch with zero advantages, and a group of correct responses can still receive different advantages through the length shaping
  • With no reward-side KL, the response advantage is
  • \tag {43} $$
  • Means and SD are computed from per-seed scores and shown to two decimals, so recomputing them from displayed values can differ in the last decimal
  • Validation samples eight responses per problem at the training temperature of 1.0 and scores mean accuracy over the samples
  • The raw residual adds $\gamma_{\mathrm{raw}} d_{it}(a_{it})$ without either operation, and the uncentered control retains $A_t^d$ (Equation 46)
  • At its best weight, $\beta = 0.2$, it remains 1.97 Avg@8 and 2.70 Pass@8 points below full RA. With verifier feedback present in both guided runs, this comparison favors the complete RA construction over the raw log ratio
  • These guidance terms are held fixed, as in RA, and their weights stay fixed during training: $\gamma_x = 10$, and $\gamma_{\log}$ is swept for both log-ratio controls (Appendix B.6)
  • Two controls on the 1.7B student with REINFORCE++ use the same probability residual as RA:
  • Its weight $\gamma_{raw} = 10$ equals the reference $\lambda$ and multiplies $d_t(a_t)$ directly
  • The student value baseline compares actions at a prefix; response centering removes the realized teacher mean across positions
  • The verifier advantage $A_i^{V,\mathcal{B}}$ comes from the run's base estimator $\mathcal{B}\in \{\mathrm{GRPO},\mathrm{REINFORCE}++\}$, and the adapter applies that estimator's clipped surrogate to the same scored batch:
  • The snapshot ratio limits how far $q_{\phi}$ moves during its update and does not reweight the student's samples toward the teacher's distribution
  • With 128 prompts per rollout batch and the final incomplete batch dropped, each epoch processes 135 batches, or 17,280 prompt occurrences, so the two epochs comprise 270 rollout batches and 34,560 prompt occurrences
  • The horizontal coordinate counts scheduled student generations: each processed prompt contributes eight responses in GRPO runs and one in OPD and REINFORCE++ runs
  • The teacher signal weakens in this run without any weight reduction, as the distance bound of Equation 8 allows, while still contributing to the actor labels at the end of training
  • Incorrect-response mean length rises more sharply and later fluctuates mostly between 9,000 and 12,000 tokens, close to the cap; the shaped reward penalizes length only for correct responses, so nothing in the reward opposes the growth of incorrect ones
  • The raw residual shifts every length group by a negative amount, -0.32 on average, with 26% of responses beyond 0.5
  • >Responses</td><td rowspan=
  • S1–S3 identify the three runs
  • The reference runs repeat Table 1; the teacher-peak branch runs of Section 4.4 are in Appendix D.3
  • Each cell gives Avg@8 / Pass@8 in percent; macro scores weight the three benchmarks equally
  • At every weight, each seed of RA with the branch falls below the same seed of RA. With REINFORCE++, each seed with the branch falls below the same verifier-only seed at the weights 5 and 10, and two of the three seeds do at 20
  • >Base method + branch</td><td rowspan=
  • The $\lambda = 10$ row repeats the reference runs of Table 1, and the other rows come from the control runs of Tables 2 and 3
  • Table 25 breaks every residual run down by benchmark and seed
  • We run this schedule on Qwen3-1.7B-Base
  • At $\beta = 0.05$, 0.2, and 0.6 it reaches 25.94, 26.14, and 25.82 macro Avg@8 and 39.71, 39.94, and 39.53 Pass@8
  • Table 27 runs this sampled variant on Qwen3-1.7B-Base with every other setting unchanged
  • Pass@K is the share of problems solved at least once among the $K$ completions, averaged over the three benchmarks and then over three seeds
  • Qwen3-1.7B-Base; three-seed means in %, with sample SD for the macro scores and the per-seed scores of the two combinations below; the reverse-KL weight is $\beta = 0.2$
  • The other rows repeat Table 1
  • >Run</td><td colspan=
  • Three-seed means in %, with the increment from the previous $K$ in gray
  • the same prompt template, eight completions per problem at temperature 0.8, and the 12,000-token cap, with the teacher in non-thinking mode
  • Qwen3-1.7B-Base and Qwen3-4B-Base before any training, and the Qwen3-8B teacher in non-thinking mode

Couldn't load all references. Reload the page to try again.