ConceptioArchivearXiv CS
arXiv CSopen access

Learning from Language Feedback via Variational Policy Distillation

2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
neural-networks
machine learning, deep learning, neural networks

Learning from Language Feedback via Variational Policy Distillation

Erik Nijkamp Semih Yavuz Shafiq Rayhan Joty Salesforce AI Research {yli2, erik.nijkamp, syavuz, sjoty}@salesforce.com

arXiv:2605.15113v1 [cs.LG] 14 May 2026

Yang Li

Abstract Reinforcement learning from verifiable rewards (RLVR) suffers from sparse outcome signals, creating severe exploration bottlenecks on complex reasoning tasks. Recent on-policy self-distillation methods attempt to address this by utilizing language feedback to generate dense, token-level supervision. However, these approaches rely on a fixed, passive teacher to interpret the feedback. As the student policy improves, the teacher’s zero-shot assessment capabilities plateau, ultimately halting further learning. To overcome this, we propose Variational Policy Distillation (VPD), a framework that formalizes learning from language feedback as a Variational Expectation-Maximization (EM) problem. VPD co-evolves both policies: in the E-step, the teacher is actively refined on trajectory outcomes via an adaptive trust-region update, translating textual feedback into a dynamically improved target token distribution. In the M-step, the student internalizes this dense distributional guidance on its own on-policy rollouts. By continuously improving the teacher’s ability to extract actionable signals from textual critique, VPD overcomes the limitations of passive distillation. Evaluated across diverse sources of diagnostic feedback on scientific reasoning and code generation tasks, VPD consistently outperforms both standard RLVR and existing self-distillation baselines. Finally, by stress-testing our framework on rigid mathematical reasoning and cold-start regimes, we illuminate the fundamental bounds of feedback-driven self-distillation compared to pure environment-driven RL.

1

Introduction

Recent leaps in the reasoning capabilities of large language models (LLMs) have been largely driven by reinforcement learning from verifiable rewards (RLVR) [9, 33, 38]. By optimizing models against objective, outcome-based correctness, RLVR avoids the high cost of human preference data in standard RLHF [22]. However, standard policy gradient methods like GRPO [33] and their variants [50, 43] rely almost entirely on sparse, binary outcome signals. This creates a severe credit assignment bottleneck: a minor arithmetic mistake in a complex derivation receives the same zero-reward as a completely nonsensical hallucination. Consequently, standard outcome-based RL is notoriously sample inefficient [48, 51]. On hard problems where the model’s initial success rate is near zero, on-policy algorithms face an extreme exploration bottleneck: they receive zero positive learning signal regardless of how many rollouts are sampled, entirely wasting the valuable latent information embedded in near-miss trajectories [26, 32]. To overcome this sparsity, a promising paradigm is to learn directly from language feedback. In many real-world and agentic settings, failure is accompanied by rich textual diagnostics, such as automated critiques from a stronger LLM, compiler error traces, or user corrections. This textual feedback can potentially provide exactly the dense, localized supervision that scalar rewards lack, pointing out not just that an attempt failed, but why and how it should be fixed. Preprint.

Leveraging this rich feedback effectively, however, remains an open challenge. Off-policy methods, such as supervised fine-tuning on expert traces or feedback-revised trajectories, suffer from distribution mismatch: the student model often lacks the internal capacity to faithfully reproduce the external teacher’s reasoning, leading to copycat behavior without genuine comprehension [17, 29]. Recently, on-policy self-distillation methods like SDPO [10] and OPSD [49] condition the model itself on language feedback to act as a “self-teacher,” distilling feedback-informed next-token predictions back into the unconditioned policy. Crucially, by sampling directly from the student’s own distribution, these methods avoid the severe train-inference distribution mismatch of off-policy approaches [34, 1], allowing the teacher to act as an internal critic providing dense, token-level learning signals [10]. Yet, existing self-distillation approaches suffer from a critical flaw: they treat the feedback-conditioned self-teacher as a fixed, passive function. The quality of the distillation signal depends entirely on the model’s zero-shot ability to parse and exploit the language feedback. If the critique is noisy, or if the model cannot yet map natural language hints to structural token adjustments, the self-teacher’s guidance can become counterproductive. Furthermore, as the student internalizes basic corrections, the zero-shot advantage of appending feedback diminishes. Since a passive teacher is never explicitly trained to be a sharper critic, its ability to distinguish between increasingly subtle reasoning errors plateaus, ultimately starving the student of further meaningful gradients. To address this, we propose Variational Policy Distillation (VPD), a principled framework that frames learning from language feedback as a variational inference problem. Instead of taking the self-teacher’s feedback interpretation for granted, VPD treats the feedback-conditioned model as an approximate posterior over correct solutions that must be actively optimized alongside the student policy. This variational perspective naturally yields an Expectation-Maximization (EM) algorithm that enables the teacher and student to co-evolve: • E-step (Teacher Refinement): We actively train the teacher’s ability to interpret language feedback. By optimizing the teacher to distinguish between successful and failed trajectories given the rich textual critique, we effectively teach the teacher how to read and leverage the feedback. • M-step (Student Optimization): We distill this refined knowledge back into the student. By minimizing the token-level KL divergence against the improved teacher on its own on-policy rollouts, the student internalizes this dense learning signal to succeed zero-shot at deployment. By ensuring the teacher’s assessment capabilities scale alongside the student’s reasoning, VPD extracts significantly more value from language feedback than passive distillation methods. We summarize our contributions as follows: 1. We formalize on-policy learning from language feedback as a Variational EM procedure. This introduces an explicit, feedback-aware teacher update (absent from prior self-distillation methods) implemented via unpaired preference optimization. By dynamically anchoring the teacher to the current student, we enforce an adaptive trust region that ensures highly stable on-policy KL distillation over a shared-weight network. 2. We present a comprehensive empirical study instantiating VPD across three sources of diagnostic feedback: deterministic environment verifiers, contrastive sibling rollouts, and autonomous selfcritique. Evaluated on benchmarks spanning competitive programming and scientific reasoning, VPD consistently outperforms standard RLVR and self-distillation baselines. 3. We characterize the fundamental regimes in which language-feedback distillation outperforms sparse RL, and where it does not. By stress-testing our framework on base-model cold-start scenarios and challenging mathematical reasoning, we empirically establish the bounds of languagedriven self-distillation. While VPD significantly mitigates and delays the training collapse typically observed in these settings, our results demonstrate that pure sparse RL ultimately remains the most effective paradigm.

2

Preliminaries

Reinforcement Learning from Verifiable Rewards. We model language generation as a contextual bandit problem where the context is the user prompt x ∈ X . A language model, parameterized by θ, represents a policy πθ that generates a response y = (y1 , . . . , yT ) autoregressively: y ∼ πθ (· | x). In the RLVR framework, an environment or rule-based verifier assesses the final response and assigns a scalar outcome reward r(x, y). For complex reasoning tasks, such as mathematical theorem proving or competitive programming, this reward is typically sparse and binary, r(x, y) ∈ {0, 1}. 2

The standard RLVR objective seeks to maximize the expected reward while penalizing deviations from an initial reference policy πref (typically the supervised fine-tuned model) to prevent catastrophic forgetting or "over-optimization" [7]: JRLVR (θ) = Ex∼D,y∼πθ (·|x) [r(x, y)] − βDKL (πθ (· | x) ∥ πref (· | x)) , (1) where β controls the strength of the KL penalty. Modern post-training pipelines often optimize this objective using algorithms like Group Relative Policy Optimization (GRPO) [33] and its variants [50, 43], which estimate gradients using advantage scores normalized across a group of responses. However, because r(x, y) is a sparse outcome signal, if the model fails to sample any correct answers for a given prompt (i.e., r(x, yi ) = 0 for all i), the advantage scores collapse, halting the learning process and establishing a severe exploration bottleneck [26]. On-Policy Self-Distillation. To circumvent the sparsity of outcome-based rewards, recent approaches leverage rich textual feedback C (e.g., compiler error messages or LLM-generated critique) to construct a dense learning signal. Methods like Self-Distillation Policy Optimization (SDPO) [10] condition the model itself on C to act as an on-policy “self-teacher”. Given a student rollout y ∼ πθ (· | x) and its corresponding feedback C, the self-teacher is defined as the identical model conditioned on the augmented prompt: πθ (· | x, C). The goal is to align the unconditioned student policy with the feedback-informed teacher’s next-token distribution. The SDPO objective minimizes the token-level KL divergence on the student’s own rollouts: hP i T LSDPO (θ) = Ex∼D,y∼πθ (·|x) D (π (· | x, y ) ∥ sg [π (· | x, C, y )]) , (2) KL θ <t θ <t t=1 where sg[·] denotes the stop-gradient operator. Note that Forward KL or JS divergence can interchangeably be used here depending on desired dynamics. While Eq. 2 provides dense gradients, the stop-gradient highlights a fundamental limitation: the teacher is never explicitly optimized. Instead, the teacher πθ (· | x, C) operates purely zero-shot, relying on its pre-existing capacity to interpret the textual feedback C. Since the teacher is not trained to refine its diagnostic interpretation, this creates a ceiling effect that restricts the gradients the teacher can ultimately provide to an improving student.

3

Variational Policy Distillation

In contrast to passive self-distillation methods that treat the feedback-conditioned model as a fixed heuristic, we frame learning from language feedback as a variational inference problem. This perspective allows the teacher to co-evolve alongside the student, actively learning to extract deeper insights from the textual feedback. 3.1

Variational Formulation

As established in the literature [25, 27, 8], the optimal policy π ∗ under the KL-regularized RLVR objective (Eq. 1) takes the form of a reward-tilted distribution:   1 π ∗ (y | x) = Z(x) πref (y | x) exp β1 r(x, y) . (3) Theoretically, optimizing the original RLVR objective is mathematically equivalent to minimizing the reverse KL divergence DKL (πθ ∥ π ∗ ) (see Appendix A for full derivations). In practice, however, directly minimizing this divergence is computationally infeasible because the partition function Z(x) is analytically intractable, preventing us from explicitly evaluating the target distribution π ∗ . Standard reinforcement learning methods bypass this intractability by taking the gradient of the objective, which elegantly cancels out Z(x) and yields standard policy gradient estimators. Yet, relying on these gradients inherently reduces the optimization back to sampling-based reward estimation, thrusting us right back into the sparse reward bottleneck discussed in Sec. 2. To bypass this intractability, we cast the alignment process as a variational inference problem. We introduce a parameterized teacher network, qϕ (y | x, C)—conditioned on the dense diagnostic feedback C—to serve as a tractable approximate posterior for the optimal distribution π ∗ . While the unconditioned student πθ must blindly search the vast trajectory space for sparse rewards, the inclusion of C allows the teacher qϕ to more effectively approximate the high-reward modes of π ∗ . Mathematically, introducing this surrogate allows us to lower-bound the intractable RLVR objective using an Evidence Lower Bound (ELBO) (see Appendix A.3 for details). This variational formulation naturally decomposes the training process into an Expectation-Maximization (EM) algorithm: 3

1. E-Step (Teacher Refinement): We optimize the teacher parameters ϕ to minimize its divergence from the reward-tilted optimal target: minϕ DKL (qϕ (y | x, C) ∥ π ∗ (y | x)). This forces the teacher to actively learn how to translate textual diagnostics into high-reward token distributions. 2. M-Step (Student Distillation): We update the student parameters θ to minimize its divergence from the refined teacher: minθ DKL (πθ (y | x) ∥ qϕ (y | x, C)). This allows the student to internalize the teacher’s dense diagnostic guidance. Crucially, while we maintain distinct notation for the teacher (ϕ) and student (θ) to mathematically isolate their alternating optimization phases, both policies are instantiated within a single, sharedweight neural network (ϕ = θ) in practice. The two distributions remain behaviorally distinct simply because the teacher is conditionally prompted with the diagnostic feedback C. This unified architecture allows us to execute complex co-evolutionary distillation while entirely eliminating the memory overhead typically associated with dual-model paradigms. 3.2

E-Step: Teacher Refinement via Off-policy Preference Optimization

For the student πθ to learn effectively during the subsequent M-step, the teacher qϕ must first become a highly accurate surrogate for the intractable optimal policy π ∗ . Therefore, the primary objective of the E-step is to minimize the divergence DKL (qϕ ∥ π ∗ ). As formally derived in Appendix A.3, we can decompose this divergence as follows:   DKL (qϕ ∥ π ∗ ) = log Z(x) − β1 Ey∼qϕ [r(x, y)] − DKL (qϕ ∥ πref ) . (4) Since the log-partition function log Z(x) is a constant with respect to the teacher parameters ϕ, minimizing this divergence is mathematically equivalent to maximizing the term inside the parentheses. Multiplying by β, this yields our E-step objective: JE-Step (ϕ) = Ey∼qϕ [r(x, y)] − βDKL (qϕ ∥ πref ).

(5)

Notice that JE-Step (ϕ) takes the exact mathematical form of a standard KL-regularized RL objective (similar to Eq. 1). While it is theoretically possible to optimize this via standard on-policy RL, doing so would force the teacher to independently search for successful outcomes, immediately re-introducing the severe sparse reward bottleneck we aim to bypass. Instead, we efficiently train the teacher off-policy by leveraging the diverse exploration trajectories already generated by the student. Off-policy Preference Optimization. We frame this off-policy learning as preference optimization. Since Eq. 5 mirrors the original RL objective, the closed-form optimal distribution  for the teacher  1 takes the same reward-tilted form as Eq. 3: q ∗ (y | x, C) = Z(x) πref (y | x) exp β1 r(x, y) . By algebraically rearranging this expression and substituting our parameterized network qϕ , we obtain the implicit reward defined by the teacher’s current parameters: q (y|x,C)

rϕ (x, y) = β log πϕref (y|x) + β log Z(x).

(6)

Dynamic Reference Prior. In standard preference optimization, this implicit reward is anchored to a static base model. However, in a co-evolutionary framework, optimizing against a stale prior can lead to severe distribution shift between teacher and student [36, 28, 23]. To ensure the teacher remains a useful critic for the student’s current capabilities, we frame the E-step as an iterative trust-region update by dynamically anchoring the reference prior to the current student policy (πref ← πθ ) [30, 31]. This yields our effective implicit reward: q (y|x,C)

rϕ (x, y, C) = β log πϕθ (y|x) + β log Z(x) ≜ r̃ϕ (x, y, C) + β log Z(x).

(7)

By setting the prior to πθ , we redefine the optimal target π ∗ as a student-relative posterior. To ensure optimization stability, we freeze the student likelihoods πθ (y|x) during each E-step; we provide a rigorous analysis of this implicit reward and the resulting trust-region dynamics in Appendix A.4. Unpaired Preference Optimization. Given our dynamically anchored implicit reward, if we were to optimize the teacher using the standard Bradley-Terry preference model (as in Direct Preference Optimization [27]), we would require paired responses (y + , y − ) evaluated under the exact same input context. However, in our framework, the diagnostic feedback C acts as the input context for the teacher, and this feedback is uniquely generated for each individual student trajectory y. Consequently, we cannot construct valid preference pairs, since there is no shared feedback context between any two distinct trajectories. 4

To overcome this structural bottleneck, we adopt Binary Classifier Optimization (BCO) [12], an unpaired preference optimization framework. In a standard paired setting, the objective relies on the difference between implicit rewards, allowing the prompt-specific partition function β log Z(x) to perfectly cancel out. By leveraging the fundamental property of the sigmoid function, log σ(a − b) ≥ log σ(a) + log σ(−b), BCO decouples the paired DPO objective into two independent parts for positive and negative samples. Substituting our computable r̃ϕ terms into this inequality establishes a Binary Cross-Entropy (BCE) loss that acts as an upper bound to the standard paired DPO loss:   LDPO (ϕ) = −E(x,y+ ,y− ) log σ r̃ϕ (x, y + , C + ) − r̃ϕ (x, y − , C − )     (8) ≤ −Ey+ log σ(r̃ϕ (x, y + , C + )) − Ey− log σ(−r̃ϕ (x, y − , C − )) . To minimize the approximation gap of this upper bound, we introduce a reward shift parameter δ as prescribed by the BCO method [12]. This yields our final E-step objective:     LE-step (ϕ) = −Ey+ log σ(r̃ϕ (x, y + , C + ) − δ) − Ey− log σ(−(r̃ϕ (x, y − , C − ) − δ)) , (9) where δ is dynamically estimated as the moving average of the batch implicit rewards: δ = 1 + + − − 2 (E[r̃ϕ (x, y , C )] + E[r̃ϕ (x, y , C )]). 3.3

M-Step: Student Optimization

With the teacher qϕ successfully refined in the E-step to approximate the local optimal policy, the M-step focuses on transferring this knowledge to the student πθ . Since the student operates without the privileged diagnostic feedback C at inference time, it must implicitly internalize the reasoning corrections discovered by the teacher. Mathematically, this corresponds to the maximization phase of the EM framework. Holding the teacher’s parameters fixed, we project its feedback-conditioned distribution back into the student’s unconditioned hypothesis space. We achieve this by minimizing the token-level KL divergence between the student and the updated teacher, sampled over the student’s own on-policy rollouts: hP i T LM-step (θ) = Ex∼D,y∼πθ (·|x) D (π (· | x, y ) ∥ sg [q (· | x, C, y )]) , (10) KL θ <t ϕ <t t=1 where sg[·] denotes the stop-gradient operation, ensuring that optimization is strictly isolated to the student parameters θ. This projection reveals the theoretical necessity of the dynamic reference prior introduced in the E-step. Because the teacher qϕ was explicitly constrained to stay within the local trust-region of the student (DKL (qϕ ∥ πθ )), we guaranteed that the teacher’s target distribution remains fundamentally reachable. Consequently, this M-step distillation is highly stable, sidestepping the extreme gradient variance and mode-collapse issues that typically plague models forced to distill from a disconnected or overly dominant oracle. As the student masters basic syntax and logic, its improved rollouts raise the baseline for the next EM cycle. The E-step then pushes the teacher to focus on increasingly complex, multi-step logical flaws, ensuring the student is continuously challenged and never starved of meaningful gradients. 3.4

Algorithm Summary

The co-evolutionary procedure alternates between four phases: (1) gathering on-policy student rollouts, (2) generating textual critique via the environment, (3) updating the teacher via unpaired preference optimization (E-step), and (4) distilling the updated teacher into the student (M-step). To eliminate the severe memory overhead of multi-model co-evolution, we instantiate both the student πθ and teacher qϕ within a single shared-weight network (θ = ϕ). The distinction is purely contextual: the teacher is invoked by appending diagnostic feedback C to the prompt, whereas the student relies solely on the unconditioned input x. This unified architecture and dynamic reference policy allow highly efficient execution on standard hardware, bypassing the need for separate frozen reference models. Furthermore, while Algorithm 1 depicts synchronous updates, VPD natively supports asymmetric frequencies (e.g., multiple M-steps per E-step). Updating the student more frequently acts like a target network in RL; it stabilizes the target distribution, ensuring the student internalizes guidance before the teacher advances. 5

Since shared-weight sequential updating shifts parameters during the E-step, initial rollouts y ∼ πθk−1 become nominally off-policy for the M-step. While this could be rigorously corrected via importance sampling (ρ = πθcurrent /πθk−1 ) as in PPO [31], our E-step’s constrained trust-region empirically renders this unnecessary. Omitting importance sampling yields no measurable degradation while streamlining implementation. The complete training procedure is summarized in Algorithm 1.

4

Experiments

We design our experiments to answer three primary questions: (1) How does our EM decoupling compare to standard RL and self-distillation baselines? (2) How effectively can VPD leverage different sources of diagnostic feedback? and (3) When stress-testing on-policy self-distillation in extremely challenging scenarios, to what extent can VPD overcome these inherent limitations? Models and Benchmarks. To ensure our findings generalize across different architectures and scales, our evaluation suite comprises Qwen3-1.7B, Qwen3-8B [38] and OLMo3-7B-Instruct [21]. Across our various experiments, we test reasoning capabilities spanning diverse domains: scientific reasoning via SciKnowEval (Biology, Chemistry, Material, Physics) [5], code generation via LiveCodeBench (LCB) [11], and mathematical reasoning via DAPO-Math [43], Math500 [16], AIME24/25 [46, 47], and AMC23. The specific model-benchmark pairings for each evaluation are detailed in their respective subsections below. Baselines. Since our VPD framework integrates signals from both a sequence-level verifier and tokenlevel teacher guidance, we benchmark against three classes of optimization paradigms: (1) Pure RL: GRPO [33], relying entirely on sparse sequence-level rewards; (2) Pure Distillation: SDPO [10], distilling reasoning via token-level KL penalties without environment rewards; and (3) Single-Phase Hybrids: Three coupled mechanisms defined in Section B.3 (Joint Loss, Advantage Reshaping, and Advantage Reweighting), which attempt to fuse RL and distillation into a simultaneous update step. 4.1

Efficacy Across Feedback Sources

A core component of our on-policy distillation framework is the diagnostic feedback C. To demonstrate the versatility of VPD, we evaluate its efficacy across three distinct sources of feedback: verifiable environment execution, successful sibling rollouts, and self-critique via an LLM judge. 1. Environment Feedback (LiveCodeBench). For code gen- Table 1: Performance on the eration tasks, the environment acts as a natural, determinis- LCBv6 subset using Qwen3-8B tic verifier, providing rich feedback such as runtime errors (thinking mode off). and failed unit test assertions. We evaluate Qwen3-8B (with reasoning/thinking mode disabled) on the LiveCodeBench Qwen3-8B 28.05 (LCB) v6 subset, following the public and private unit test GRPO 45.61 settings established by SDPO [10]. Detailed hyperparameSDPO 47.33 ters and setup configurations are provided in Appendix D.1. SDPO+RL (Adv Reshape) 46.95 SDPO+RL (Adv Reweight) 44.85 As shown in Table 1, both pure RL (GRPO) and pure distilSDPO+RL (Joint Loss) 47.52 lation (SDPO) significantly improve upon the base model’s VPD (Ours) 49.62 28.05% pass rate. However, attempting to simultaneously fuse these signals via single-phase hybrids yields highly mixed results: Advantage Reshaping and Advantage Reweighting degrade performance compared to pure SDPO (dropping to 46.95% and 44.85%, respectively), while the Joint Loss formulation provides only a marginal gain. In contrast, our decoupled VPD framework effectively internalizes the compiler’s diagnostic feedback, achieving a state-of-the-art 49.62% pass rate. To demonstrate the sustained discriminative power of our approach, Figure 1 plots the reward margin between correct and incorrect student responses during training, defined Figure 1: Reward margin between as r̃(x, y + , C + ) − r̃(x, y − , C − ). As training progresses, we correct and incorrect responses durobserve that the margin for standard SDPO rapidly diminishes, ing LCB training. indicating a loss of useful guidance. Conversely, VPD consistently increases this margin, confirming that our E-step successfully continuously refines the teacher to distinguish between high- and low-quality trajectories. 6

2. Contrastive Sibling Rollouts (Sci- Table 2: Performance on the SciKnowEval benchmark KnowEval). For many scientific reason- using contrastive sibling rollouts as feedback. ing tasks, ground-truth textual feedback Bio. Chem. Mat. Phys. AVG is unavailable; the environment only provides a sparse, binary correctness sigQwen3-1.7B 33.63 40.95 50.07 49.92 43.64 nal. In these scenarios, we can synGRPO 61.25 75.65 74.93 67.42 69.81 SDPO 61.50 72.41 71.54 59.92 66.34 thesize the diagnostic feedback C usSDPO+RL (Adv Reshape) 54.62 54.94 66.62 58.83 58.75 ing the model’s own generations. Following the methodology of SDPO [10], SDPO+RL (Adv Reweight) 57.75 73.36 75.27 62.58 67.24 SDPO+RL (Joint Loss) 58.00 77.53 68.88 62.11 66.63 we provide the student with a successVPD (Ours) 64.75 81.88 77.06 73.67 74.34 ful trajectory sampled from the same QWEN3-8B 31.13 42.14 59.18 59.14 47.90 prompt’s rollout group, effectively using GRPO 62.50 76.58 77.26 76.09 73.11 a contrastive sibling rollout as the texSDPO 61.62 82.26 79.59 74.30 74.44 tual guidance. We evaluate this setting SDPO+RL (Adv Reshape) 52.00 75.18 75.07 74.14 69.10 on the SciKnowEval benchmark across SDPO+RL (Adv Reweight) 61.37 76.46 75.80 70.39 71.01 Qwen3-1.7B, Qwen3-8B, and OLMo3SDPO+RL (Joint Loss) 66.00 81.01 73.87 73.12 73.50 VPD (Ours) 68.00 82.38 77.66 80.55 77.15 7B-Instruct (all with thinking mode disabled). As detailed in Table 2, VPD conOlmo3-7B-Instruct 16.12 22.77 34.71 37.34 27.74 sistently outperforms both pure baselines GRPO 52.88 69.88 74.00 66.09 65.71 and single-phase hybrids across almost SDPO 50.00 80.15 70.21 63.91 66.07 SDPO+RL (Adv Reshape) 50.25 65.83 72.47 66.02 63.64 all domains. Looking at the aggregate averages, VPD establishes a clear state- SDPO+RL (Adv Reweight) 58.25 76.67 74.87 66.56 69.09 SDPO+RL (Joint Loss) 55.37 80.51 71.21 69.45 69.14 of-the-art: achieving 74.34% on Qwen3VPD (Ours) 55.62 80.33 76.06 71.17 70.80 1.7B (vs. GRPO’s 69.81%), 77.15% on Qwen3-8B (vs. SDPO’s 74.44%), and 70.80% on OLMo3-7B-Instruct. On specific sub-tasks, the gains are even more pronounced; for instance, on Qwen3-8B (Biology), VPD achieves 68.00% compared to GRPO’s 62.50% and SDPO’s 61.62%. Crucially, this performance advantage is intrinsically linked to training Figure 2: Training progression on SciKnowEval stability. Across the SciKnowEval subtasks, the single-phase hybrid baselines (SDPO+RL variants) experience severe training instability. We hypothesize that simultaneously updating a policy using unbounded log-ratios and high-variance RL advantages causes catastrophic scale mismatches—a vulnerability entirely bypassed by VPD’s decoupled EM formulation. Furthermore, as illustrated in Figure 2, standard SDPO frequently suffers from late-stage training degradation, where validation accuracy begins to decrease at longer step counts. In contrast, VPD eliminates this issue entirely, exhibiting a highly stable and monotonic convergence curve. 3. Self-Critique via LLM Judge. Contrastive Table 3: Performance on SciKnowEval using ausibling rollouts fail when all sampled trajectories tonomous self-critique as the feedback source. for a prompt are incorrect, providing no diagnostic feedback. To overcome this, we evaluate Bio. Chem. Mat. Phys. AVG a setting where the model acts as its own judge, SDPO 62.12 78.66 71.21 58.13 67.53 generating autonomous critiques for failed tra- Qwen3-1.7B VPD 64.75 79.43 73.54 70.31 72.01 jectories without positive pairs (setup in Appendix D.3). This mimics a self-reflection loop: QWEN3-8B SDPO 61.38 82.35 83.71 72.03 74.87 VPD 65.38 83.52 84.20 79.45 78.14 the model diagnoses its own logical errors, and the E-step refines the teacher policy based on this reflection before distilling it back into the student. As Table 3 shows, self-critique yields performance comparable to contrastive siblings. Crucially, VPD still significantly outperforms SDPO across architectures (e.g., achieving 78.14% vs. 74.87% on Qwen3-8B). This viability highlights a compelling future direction: dynamically co-evolving the judge alongside the reasoning policy. 4.2

Ablations and Analysis: The Bounds of Self-Distillation

While VPD successfully stabilizes hybrid training across science and coding domains, our empirical investigation revealed two critical scenarios where all self-distillation methods (including standard 7

SDPO and our VPD) struggle relative to pure RL. We present these findings to illuminate the fundamental, empirical limits of language-driven self-distillation. The "Cold Start" Problem on Base Models. Recent literature demonstrates that GRPO can elicit advanced reasoning capabilities from a base foundation model. However, when we apply SDPO to base models, performance rapidly collapses to near zero. We hypothesize that self-distillation intrinsically requires the policy to possess a rudimentary level of instruction-following competence; if the base model lacks the capacity to properly digest the diagnostic feedback C in its prompt, the teacher’s target distribution becomes corrupted. While our VPD formulation mitigates this collapse—increasing dis- Figure 3: Training progression crimination power via the E-step updates and significantly delaying on Qwen3-4B-Base. the degradation—it still ultimately underperforms GRPO in pure cold-start scenarios. Figure 3 illustrates this delayed collapse, confirming that while VPD is far more robust than SDPO, pure RL remains necessary for emergent reasoning elicitation. Mathematical Reasoning. Similarly, on challenging mathematical benchmarks (e.g., training on DAPO-Math), SDPO suffers from severe training collapse. This vulnerability to mathematical reasoning domains has been observed in concurrent works [14]. While VPD again successfully delays this collapse, pure GRPO remains the dominant approach (achieving 83.8% on Math500 with Qwen3-8B). We hypothesize that this stems from the strict, non-forgiving nature of mathematical derivations. Sparse RL (GRPO) encourages broad exploration, rewarding the model only when it independently discov- Figure 4: Performance on the ers a rigorous, fully correct logical path. In contrast, self-distillation Math500 benchmark for modforces the student to closely track the teacher’s intermediate token els trained on DAPO-Math. distribution. If the teacher’s diagnostic feedback is imprecise or flawed, distilling this noisy guidance may overly constrain exploration and inadvertently reinforce incorrect reasoning steps. Computational Efficiency. A major practical advantage of VPD is its memory and sampling efficiency. By instantiating both policies within a single shared-weight network, we completely eliminate the massive VRAM overhead of hosting separate teacher models. Furthermore, because the exact same on-policy student rollouts are shared across both the E-step and M-step, VPD incurs zero additional sampling or environment verification costs. While the explicit E-step introduces a gradient-computation overhead compared to standard SDPO—empirically observed as a 30% to 55% increase in overall runtime—this temporal cost is effectively managed by our asymmetric update frequency (e.g., one E-step per five M-steps). Ultimately, the significant gains in training stability and final reasoning performance strongly justify this moderate runtime increase, establishing VPD as a highly practical framework. Table 4: Ablation on E-step update frequency using Qwen3-1.7B. N denotes one E-step per N M-steps. Bio. VPD (F5) 64.75 VPD (F1) 61.12 VPD (F10) 59.50

Table 5: Ablation on the E-Step reference prior using Qwen3-1.7B on SciKnowEval.

Chem. Mat. Phys. AVG

Prior Type

81.88 78.51 79.50

Dynamic (πθ ) 64.75 Fixed (πref ) 55.87

77.06 73.67 74.34 72.47 68.75 70.21 71.61 66.48 69.27

Bio.

Chem. Mat. Phys. AVG 81.88 76.34

77.06 73.67 74.34 72.81 66.33 67.84

Ablation: E-Step Update Frequency. As discussed in Sec. 3.4, our shared-weight architecture allows for asymmetric update frequencies. In our main experiments, we perform one E-step update for every 5 M-step gradient updates (F5). To validate this design, we ablate the update frequency on the SciKnowEval benchmark using Qwen3-1.7B. As shown in Table 4, both overly frequent and overly infrequent E-step updates degrade performance. If the teacher is updated too frequently (F1), the target distribution becomes volatile, functioning like a rapidly moving target network in RL that destabilizes the student’s distillation phase. Conversely, if the teacher is updated too infrequently (F10), the target distribution becomes stale, preventing the student from receiving dynamically adjusted feedback. The F5 configuration provides the optimal balance, allowing the student sufficient gradient steps to internalize the refined guidance before the teacher advances. 8

Ablation: Dynamic Reference Prior. As established in Eq. 7, VPD dynamically anchors the reference prior to the current student policy (πθ ). This sliding trust region restricts the teacher’s target distribution, ensuring its guidance remains safely reachable for the student. To validate this design, we conduct an ablation study comparing our dynamic prior against a fixed reference model (πref ). As shown in Table 5, reverting to a static prior on Qwen3-1.7B not only results in a severe performance drop across the evaluation domains but also Figure 5: Training progression severely degrades training stability (see Fig. 5). This confirms our on Qwen3-1.7B with different hypothesis: optimizing against a stale prior induces harmful distrireference model for E-Step. bution shift, decoupling the teacher’s guidance from the student’s exploration space and destabilizing the M-step distillation.

5

Related Work

Our work intersects with recent advancements in Reinforcement Learning from Verifiable Rewards (RLVR) [33, 38], learning from language feedback [6, 37], and on-policy self-distillation [10, 49, 42]. While RLVR provides unbiased ground-truth signals, it suffers from severe reward sparsity. Recent self-distillation methods mitigate this by using language feedback to construct dense, token-level supervision. However, existing approaches typically treat the feedback-conditioned teacher as a fixed, passive heuristic or rely on unconstrained, disconnected updates [24]. VPD fundamentally departs from this paradigm by embedding self-distillation within a rigorous, shared-weight ExpectationMaximization (EM) framework. By actively optimizing the teacher’s diagnostic capabilities within a dynamic trust region, VPD provides continuous, safely anchored guidance for the student without the memory overhead of multi-model pipelines. A comprehensive discussion of related literature is provided in Appendix C.

6

Conclusion

In this work, we introduced Variational Policy Distillation (VPD), a framework that reframes selfdistillation as a principled, co-evolutionary Expectation-Maximization (EM) algorithm. Rather than relying on frozen heuristic oracles or static reference models, VPD jointly trains a feedback-aware teacher alongside an unconditioned student. During the E-step, the framework actively updates the teacher via unpaired preference learning (BCO) to extract sharper insights from environmental critiques (C). Crucially, by anchoring this evolving teacher to the active student policy, we enforce a dynamic trust-region that ensures the subsequent M-step distillation remains highly informative yet safely within the student’s learning capacity. We execute this complex cycle highly efficiently through a unified, shared-weight architecture (ϕ = θ), completely eliminating the massive memory overhead of traditional multi-model paradigms. Our theoretical formulation and empirical evaluations demonstrate that this approach yields stable optimization dynamics and consistent performance gains on complex reasoning tasks, outperforming static reference methods like standard SDPO. Limitations and Future Work. Despite these advancements, our framework has notable limitations. First, while VPD significantly improves upon standard self-distillation and successfully delays training collapse in challenging scenarios, it still ultimately lags behind pure sparse RL (e.g., GRPO) in mathematical reasoning and base-model cold-starts. This highlights an inherent limitation in relying on unstructured textual feedback, which can sometimes be too noisy or imprecise for strict logical derivations. Second, while our shared-weight parameterization (ϕ = θ) maximizes computational efficiency, it strictly bounds the teacher’s representational capacity to the student’s architecture. In highly complex domains, this strict coupling may prevent the teacher from sufficiently approximating the optimal posterior. Moving forward, future work should explore decoupled or partially decoupled parameterizations (e.g., using parameter-efficient fine-tuning for the teacher) to expand its diagnostic capacity without reintroducing massive memory overheads. Additionally, analyzing the theoretical bounds of the EM framework under varying degrees of feedback noise, and extending this coevolutionary process to continual learning scenarios, represent exciting frontiers for developing autonomous, self-improving agents. 9

References [1] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In The twelfth international conference on learning representations, 2024. [2] Wen-Tse Chen, Jiayu Chen, Fahim Tajwar, Hao Zhu, Xintong Duan, Ruslan Salakhutdinov, and Jeff Schneider. Retrospective in-context learning for temporal credit assignment with large language models. arXiv preprint arXiv:2602.17497, 2026. [3] Zixiang Chen, Yihe Deng, Huizhuo Yuan, Kaixuan Ji, and Quanquan Gu. Self-play fine-tuning converts weak language models to strong language models. arXiv preprint arXiv:2401.01335, 2024. [4] Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306, 2024. [5] Kehua Feng, Xinyi Shen, Weijie Wang, Xiang Zhuang, Yuqi Tang, Qiang Zhang, and Keyan Ding. Sciknoweval: Evaluating multi-level scientific knowledge of large language models. arXiv preprint arXiv:2406.09098, 2024. [6] Xidong Feng, Bo Liu, Yan Song, Haotian Fu, Ziyu Wan, Girish A Koushik, Zhiyuan Hu, Mengyue Yang, Ying Wen, and Jun Wang. Natural language reinforcement learning. arXiv preprint arXiv:2411.14251, 2024. [7] Leo Gao, John Schulman, and Jacob Hilton. Scaling laws for reward model overoptimization. In International Conference on Machine Learning, pages 10835–10866. PMLR, 2023. [8] Dongyoung Go, Tomasz Korbak, Germán Kruszewski, Jos Rozen, Nahyeon Ryu, and Marc Dymetman. Aligning language models with preferences through f-divergence minimization. arXiv preprint arXiv:2302.08215, 2023. [9] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. [10] Jonas Hübotter, Frederike Lübeck, Lejs Behric, Anton Baumann, Marco Bagatella, Daniel Marta, Ido Hakimi, Idan Shenfeld, Thomas Kleine Buening, Carlos Guestrin, et al. Reinforcement learning via self-distillation. arXiv preprint arXiv:2601.20802, 2026. [11] Naman Jain, King Han, 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. arXiv preprint arXiv:2403.07974, 2024. [12] Seungjae Jung, Gunsoo Han, Daniel Wontae Nam, and Kyoung-Woon On. Binary classifier optimization for large language model alignment. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1858–1872, 2025. [13] Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, and Nicolas Le Roux. Vineppo: Refining credit assignment in rl training of llms. arXiv preprint arXiv:2410.01679, 2024. [14] Jeonghye Kim, Xufang Luo, Minbeom Kim, Sangmook Lee, Dohyung Kim, Jiwon Jeon, Dongsheng Li, and Yuqing Yang. Why does self-distillation (sometimes) degrade the reasoning capability of llms? arXiv preprint arXiv:2603.24472, 2026. [15] Yoonho Lee, Joseph Boen, and Chelsea Finn. Feedback descent: Open-ended text optimization via pairwise comparison. arXiv preprint arXiv:2511.07919, 2025. [16] 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. arXiv preprint arXiv:2305.20050, 2023. 10

[17] Hao Liu, Carmelo Sferrazza, and Pieter Abbeel. Chain of hindsight aligns language models with feedback. arXiv preprint arXiv:2302.02676, 2023. [18] Zijun Liu, Peiyi Wang, Runxin Xu, Shirong Ma, Chong Ruan, Peng Li, Yang Liu, and Yu Wu. Inference-time scaling for generalist reward modeling. arXiv preprint arXiv:2504.02495, 2025. [19] Renjie Luo, Zichen Liu, Xiangyan Liu, Chao Du, Min Lin, Wenhu Chen, Wei Lu, and Tianyu Pang. Language models can learn from verbal feedback without scalar rewards. arXiv preprint arXiv:2509.22638, 2025. [20] Radford M Neal and Geoffrey E Hinton. A view of the em algorithm that justifies incremental, sparse, and other variants. In Learning in graphical models, pages 355–368. Springer, 1998. [21] 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. [22] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022. [23] Richard Y Pang, Weizhe Yuan, Kyunghyun Cho, He He, Sainbayar Sukhbaatar, and Jason Weston. Iterative reasoning preference optimization. Advances in Neural Information Processing Systems, 37:116617–116637, 2024. [24] Emiliano Penaloza, Dheeraj Vattikonda, Nicolas Gontier, Alexandre Lacoste, Laurent Charlin, and Massimo Caccia. Privileged information distillation for language models. arXiv preprint arXiv:2602.04942, 2026. [25] Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019. [26] Yuxiao Qu, Amrith Setlur, Virginia Smith, Ruslan Salakhutdinov, and Aviral Kumar. Pope: Learning to reason on hard problems via privileged on-policy exploration. arXiv preprint arXiv:2601.18779, 2026. [27] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:53728–53741, 2023. [28] Corby Rosset, Ching-An Cheng, Arindam Mitra, Michael Santacroce, Ahmed Awadallah, and Tengyang Xie. Direct nash optimization: Teaching language models to self-improve with general preferences. arXiv preprint arXiv:2404.03715, 2024. [29] Jérémy Scheurer, Jon Ander Campos, Tomasz Korbak, Jun Shern Chan, Angelica Chen, Kyunghyun Cho, and Ethan Perez. Training language models with language feedback at scale. arXiv preprint arXiv:2303.16755, 2023. [30] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889–1897. PMLR, 2015. [31] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. [32] Amrith Setlur, Zijian Wang, Andrew Cohen, Paria Rashidinejad, and Sang Michael Xie. Reuse your flops: Scaling rl on hard problems by conditioning on very off-policy prefixes. arXiv preprint arXiv:2601.18795, 2026. [33] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. 11

[34] Idan Shenfeld, Mehul Damani, Jonas Hübotter, and Pulkit Agrawal. Self-distillation enables continual learning. arXiv preprint arXiv:2601.19897, 2026. [35] Yuda Song, Lili Chen, Fahim Tajwar, Remi Munos, Deepak Pathak, J Andrew Bagnell, Aarti Singh, and Andrea Zanette. Expanding the capabilities of reinforcement learning via text feedback. arXiv preprint arXiv:2602.02482, 2026. [36] Yue Wu, Zhiqing Sun, Huizhuo Yuan, Kaixuan Ji, Yiming Yang, and Quanquan Gu. Self-play preference optimization for language model alignment. arXiv preprint arXiv:2405.00675, 2024. [37] Wanqiao Xu, Allen Nie, Ruijie Zheng, Aditya Modi, Adith Swaminathan, and Ching-An Cheng. Provably learning from language feedback. arXiv preprint arXiv:2506.10341, 2025. [38] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. [39] Chenxu Yang, Chuanyu Qin, Qingyi Si, Minghui Chen, Naibin Gu, Dingyu Yao, Zheng Lin, Weiping Wang, Jiaqi Wang, and Nan Duan. Self-distilled rlvr. arXiv preprint arXiv:2604.03128, 2026. [40] Wenkai Yang, Jingwen Chen, Yankai Lin, and Ji-Rong Wen. Deepcritic: Deliberate critique with large language models. arXiv preprint arXiv:2505.00662, 2025. [41] Tianzhu Ye, Li Dong, Qingxiu Dong, Xun Wu, Shaohan Huang, and Furu Wei. Online experiential learning for language models. arXiv preprint arXiv:2603.16856, 2026. [42] Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models. arXiv preprint arXiv:2602.12275, 2026. [43] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. arXiv preprint arXiv:2503.14476, 2025. [44] Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li, Sainbayar Sukhbaatar, Jing Xu, and Jason E Weston. Self-rewarding language models. In Forty-first International Conference on Machine Learning, 2024. [45] Lunjun Zhang, Arian Hosseini, Hritik Bansal, Mehran Kazemi, Aviral Kumar, and Rishabh Agarwal. Generative verifiers: Reward modeling as next-token prediction. arXiv preprint arXiv:2408.15240, 2024. [46] Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2024, 2024. [47] Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2025, 2025. [48] Yuheng Zhang, Wenlin Yao, Changlong Yu, Yao Liu, Qingyu Yin, Bing Yin, Hyokun Yun, and Lihong Li. Improving sampling efficiency in rlvr through adaptive rollout and response reuse. arXiv preprint arXiv:2509.25808, 2025. [49] Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734, 2026. [50] Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, et al. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025. [51] Haizhong Zheng, Yang Zhou, Brian R Bartoldson, Bhavya Kailkhura, Fan Lai, Jiawei Zhao, and Beidi Chen. Act only when it pays: Efficient reinforcement learning for llm reasoning via selective rollouts. arXiv preprint arXiv:2506.02177, 2025. 12

[52] Victor Zhong, Dipendra Misra, Xingdi Yuan, and Marc-Alexandre Côté. Policy improvement using language feedback models. Advances in Neural Information Processing Systems, 37:43730–43758, 2024. [53] Xiangxin Zhou, Zichen Liu, Haonan Wang, Chao Du, Min Lin, Chongxuan Li, Liang Wang, and Tianyu Pang. Variational reasoning for language models. arXiv preprint arXiv:2509.22637, 2025.

13

A

Theoretical Derivations

This appendix provides the formal derivations for the variational framework introduced in Section 3. We first derive the closed-form optimal policy under the KL-regularized RLVR objective, demonstrate its equivalence to minimizing the reverse KL divergence, and finally establish the ExpectationMaximization (EM) lower bound that justifies the alternating optimization of the teacher qϕ and student πθ . A.1

Derivation of the Optimal Target Distribution

The standard KL-regularized RLVR objective for a given context x is defined as: J (π) = Ey∼π(·|x) [r(x, y)] − βDKL (π(· | x) ∥ πref (· | x)) .

(A.1)

∗ We P wish to find the optimal policy π that maximizes J (π) subject to the probability constraint π(y | x) = 1. We formulate this constrained optimization problem using the method of Lagrange y multipliers. The Lagrangian is given by: ! X X X π(y | x) −λ L(π, λ) = π(y | x)r(x, y) − β π(y | x) log π(y | x) − 1 . (A.2) πref (y | x) y y y

Taking the partial derivative of L with respect to π(y | x) and setting it to zero yields:   ∂L π(y | x) = r(x, y) − β log + 1 − λ = 0. ∂π(y | x) πref (y | x)

(A.3)

Solving for π(y | x): log

π(y | x) 1 λ = r(x, y)−1− =⇒ π ∗ (y | x) = πref (y | x) exp πref (y | x) β β



   1 λ r(x, y) exp −1 − . β β (A.4)

To eliminate the Lagrange multiplier λ, we apply the constraint that the probabilities must sum to 1. This reveals that the term exp(−1 − βλ ) acts as a normalization constant. We define the partition function Z(x) as:   X 1 Z(x) = πref (y | x) exp r(x, y) . (A.5) β y Thus, the optimal target distribution is the exponentially reward-tilted policy:   1 1 ∗ π (y | x) = πref (y | x) exp r(x, y) . Z(x) β A.2

(A.6)

Equivalence of Reverse KL and the RLVR Objective

We now demonstrate that minimizing the reverse KL divergence between the student policy πθ and the optimal policy π ∗ is mathematically equivalent to maximizing the original RLVR objective. Expanding the definition of the KL divergence: DKL (πθ ∥ π ∗ ) = Ey∼πθ [log πθ (y | x) − log π ∗ (y | x)] .

(A.7)

Substituting the definition of π ∗ (y | x) from Equation A.6:     1 1 ∗ DKL (πθ ∥ π ) = Ey∼πθ log πθ (y | x) − log πref (y | x) exp r(x, y) Z(x) β   1 = Ey∼πθ log πθ (y | x) − log πref (y | x) − r(x, y) + log Z(x) β 1 = DKL (πθ ∥ πref ) − Ey∼πθ [r(x, y)] + log Z(x). (A.8) β 14

Multiplying both sides by −β, we observe: −βDKL (πθ ∥ π ∗ ) = Ey∼πθ [r(x, y)] − βDKL (πθ ∥ πref ) − β log Z(x).

(A.9)

Since the term β log Z(x) depends only on the environment and πref , it is a constant with respect to the policy parameters θ. Therefore, minimizing the reverse KL divergence exactly maximizes the original objective J (θ). A.3

Variational Expectation-Maximization Lower Bound

Because Z(x) is analytically intractable, computing the exact log-likelihood of π ∗ is impossible. We introduce a tractable teacher distribution qϕ (y | x, C) conditioned on the dense language feedback C to act as an approximate posterior. To evaluate the quality of this approximation, we look to the log-partition function, log Z(x). By rearranging the equivalence established in Equation A.9, we can express the original RL objective as: J (π) = β log Z(x) − βDKL (π ∥ π ∗ ).

(A.10)

Because the KL divergence is strictly non-negative, the maximum possible value of the objective function is exactly β log Z(x), achieved only when π perfectly matches π ∗ . Therefore, log Z(x) represents the absolute theoretical ceiling of performance under the KL constraint. To bound this intractable ceiling, we multiply and divide the terms inside Z(x) by our teacher distribution qϕ (y | x, C):   πref (y | x) exp β1 r(x, y) X log Z(x) = log qϕ (y | x, C) . (A.11) qϕ (y | x, C) y Applying Jensen’s Inequality, we establish the Evidence Lower Bound (ELBO), denoted as F(qϕ ):   πref (y | x) exp β1 r(x, y) X log Z(x) ≥ qϕ (y | x, C) log qϕ (y | x, C) y =

1 Ey∼qϕ [r(x, y)] − DKL (qϕ ∥ πref ) ≡ F(qϕ ). β

(A.12)

To explicitly derive the gap between this lower bound and the true optimal log-partition function, we expand the KL divergence between our approximate posterior qϕ and the optimal policy π ∗ : DKL (qϕ ∥ π ∗ ) = Ey∼qϕ [log qϕ (y | x, C) − log π ∗ (y | x)] .

(A.13)

Substituting the definition of π ∗ (y | x) from Equation A.6:     1 1 ∗ DKL (qϕ ∥ π ) = Ey∼qϕ log qϕ (y | x, C) − log πref (y | x) exp r(x, y) Z(x) β   1 = Ey∼qϕ log qϕ (y | x, C) − log πref (y | x) − r(x, y) + log Z(x) . (A.14) β By separating the terms, we can reformulate this in terms of the ELBO:   qϕ (y | x, C) 1 ∗ DKL (qϕ ∥ π ) = log Z(x) + Ey∼qϕ log − Ey∼qϕ [r(x, y)] πref (y | x) β 1 = log Z(x) + DKL (qϕ ∥ πref ) − Ey∼qϕ [r(x, y)] β   1 = log Z(x) − Ey∼qϕ [r(x, y)] − DKL (qϕ ∥ πref ) . β 15

(A.15)

Recognizing the term inside the parentheses as exactly our definition of F(qϕ ), we arrive at the fundamental decomposition: log Z(x) = F(qϕ ) + DKL (qϕ ∥ π ∗ ).

(A.16)

Because log Z(x) is a constant with respect to ϕ, this derivation proves that maximizing the tractable lower bound F(qϕ ) is mathematically equivalent to minimizing the divergence DKL (qϕ ∥ π ∗ ). This establishes the following E-Step optimization: E-Step: Teacher Refinement We optimize the teacher parameters ϕ to maximize F(qϕ ) (effectively minimizing DKL (qϕ ∥ π ∗ )). As derived in Section 3.2, we approximate this optimization using Binary Classifier Optimization on the implicit rewards. To mathematically justify the M-step, we must connect this updated teacher back to our global objective: minimizing DKL (πθ ∥ π ∗ ). By adding and subtracting log qϕ (y | x, C) inside the expectation of this global objective, we can decompose it as follows: DKL (πθ ∥ π ∗ ) = Ey∼πθ [log πθ (y | x) − log π ∗ (y | x)] = Ey∼πθ [log πθ (y | x) − log qϕ (y | x, C) + log qϕ (y | x, C) − log π ∗ (y | x)]   qϕ (y | x, C) = DKL (πθ ∥ qϕ ) + Ey∼πθ log ∗ . (A.17) π (y | x) While the E-step cannot guarantee that qϕ perfectly matches the optimal policy π ∗ due to finite network capacity, it actively minimizes the residual error represented by the second term. By treating the optimized qϕ as the tightest tractable surrogate for the optimal policy, the M-step circumvents the intractable global objective by instead minimizing the proxy divergence DKL (πθ ∥ qϕ ). This establishes the following M-Step optimization: M-Step: Student Distillation Operating on the mathematical decomposition above, we project this refined knowledge back into the student policy space. By minimizing DKL (πθ ∥ qϕ ) over the student’s onpolicy rollouts, we strictly minimize the remaining divergence against our optimal surrogate, completing the distillation cycle without requiring the privileged feedback C at inference time. A.4

Theoretical Implications of the Dynamic Reference Model

As established in Equation 7, we define the effective implicit reward using a dynamic prior by setting the reference model to the current student policy, πθ . This formulation is mathematically equivalent ∗ to defining an optimal target distribution πdyn where the student acts as the base prior:   1 r(x, y) ∗ πdyn (y | x, C) = πθ (y | x) exp (A.18) Zdyn (x) β where Zdyn (x) is the partition function. To deeply understand the regularizing effect of this dynamic prior, we analyze the E-step objective from two complementary mathematical perspectives: its relationship to standard static priors, and its role as an adaptive trust region. Perspective 1: The Adaptive Alignment Bonus. First, we can contrast our dynamic target directly against the standard optimal target π ∗ introduced previously in Equation 3, which utilizes a fixed, static prior anchored to the initial reference model πref . We can analytically express our new dynamic target as a probability-ratio scaled version of this static target:   Zstat (x) πθ (y | x) ∗ ∗ πdyn (y | x, C) = π (y | x) (A.19) Zdyn (x) πref (y | x) 16

Because our E-step objective is to minimize the KL divergence between the teacher policy qϕ and this dynamic optimal target, we can substitute the ratio expansion into the objective: " # q (y | x, C) ϕ ∗ min DKL (qϕ ∥ πdyn ) = Eqϕ log ∗ ϕ πdyn (y | x, C)   qϕ πθ Zstat = Eqϕ log ∗ − log − log π πref Zdyn   πθ (y | x) + C. (A.20) = DKL (qϕ ∥ π ∗ ) − Eqϕ log πref (y | x) This derivation reveals a profound insight into how VPD stabilizes co-evolution. The E-step objective is mathematically equivalent to the standard, static objective, but with a critical additional penalty term: −Eqϕ [log(πθ /πref )]. This extra term acts as an adaptive alignment bonus. It explicitly incentivizes the teacher to upweight trajectories where the current student (πθ ) assigns a higher likelihood than the base model (πref ). Instead of rigidly pulling the teacher toward an absolute global optimum that may be conceptually out of reach for the student, the teacher actively anchors its guidance to the pathways the student has already begun to master. Perspective 2: The Sliding Trust Region. Alternatively, to explicitly demonstrate how this dynamic prior restricts the teacher’s updates, we can expand the E-step KL divergence directly: # " qϕ (y | x, C) ∗ min DKL (qϕ ∥ πdyn ) = Eqϕ log ∗ ϕ πdyn (y | x, C)     r(x, y) 1 = Eqϕ log qϕ (y | x, C) − log πθ (y | x) exp Zdyn (x) β   qϕ (y | x, C) r(x, y) = Eqϕ log − + log Zdyn (x) πθ (y | x) β 1 = DKL (qϕ ∥ πθ ) − Eqϕ [r(x, y)] + log Zdyn (x). (A.21) β Because log Zdyn (x) is a constant with respect to the teacher’s parameters ϕ, minimizing this KL divergence is mathematically identical to solving the following constrained optimization problem: max Eqϕ [r(x, y)] − βDKL (qϕ ∥ πθ ). ϕ

(A.22)

This direct expansion exposes the profound regularizing effect of the dynamic prior. By anchoring the implicit reward to the current student πθ , the E-step objective naturally produces a strict KL penalty against the student’s active distribution. Our dynamic formulation fundamentally acts as a sliding trust region. It enforces a geometric boundary: the teacher is permitted to adjust its distribution to maximize the diagnostic language feedback, but it is mathematically penalized for proposing targets that fall outside the student’s current active learning capacity. This ensures the dense distributional guidance provided during the M-step is always a safely reachable "next step," thereby eliminating the catastrophic training collapse observed in standard single-phase hybrid methods. Stable Inner Loops and Dynamic Outer Loops. Finally, it is important to distinguish the stationary nature of the E-step from the global trajectory of training. Because the student parameters θ are ∗ continuously updated during the M-step, the optimal target πdyn dynamically shifts across the overall training process. However, the reference likelihoods πθ (y | x) are pre-calculated and frozen before each individual E-step begins. This ensures that within the bounds of any specific E-step, the target remains strictly stationary, allowing for highly stable gradient descent while still supporting the continuous co-evolution of the policies.

B

Method

B.1

VPD Algorithm

17

Algorithm 1 Variational Policy Distillation via Co-Evolutionary EM Require: Initialized model parameters θ0 , Prompt dataset D, Verifiable Environment E, KL coefficient β, Number of iterations K 1: for k = 1, 2, . . . , K do 2: // 1. On-Policy Rollout 3: Sample a batch of prompts x ∼ D. 4: Generate student trajectories y ∼ πθk−1 (· | x). 5: // 2. Environment Critique 6: for each trajectory y do 7: Evaluate y using E to obtain binary outcome r(x, y) and diagnostic feedback C. 8: end for 9: Partition trajectories and feedback into successes {(y + , C + )} and failures {(y − , C − )} 10: // 3. E-Step: Teacher Refinement (Unpaired Preference) 11: Synchronize teacher alias with current student weights: ϕk ← θk−1 . 12: Compute the dynamic reward shift δ = 21 (E[r̃ϕk (x, y + , C + )] + E[r̃ϕk (x, y − , C − )]). 13: Update parameters to obtain refined teacher ϕ′k by minimizing LE-step (Eq. 9). 14: // 4. M-Step: Student Distillation (Information Projection) 15: Update student θk by minimizing LM-step against the stop-gradient teacher sg[qϕ′k ] (Eq. 10). 16: end for 17: return Optimized policy θK

B.2

Convergence Properties of the VPD EM Procedure

A natural concern with any EM-style algorithm is whether alternating E- and M-steps yields monotonic progress toward the global objective. We formalize this below and connect it to the practical setting where each step performs only approximate gradient updates. Proposition 1 (Monotonic ELBO Improvement). Let θk denote the student parameters at the start of iteration k. Suppose the E-step and M-step each attain their respective global optima within iteration k. Then the RLVR objective J (θk ) (Eq. 1) is non-decreasing across iterations: J (θk+1 ) ≥ J (θk ). Proof. We chain two results already established in Appendix A. Step 1 (E-step improves the bound). From Eq. A.16, the log-partition function decomposes as ∗ log Zdyn (x) = F(qϕ ) + DKL (qϕ ∥πdyn ), where F(qϕ ) = β1 Eqϕ [r(x, y)] − DKL (qϕ ∥πθk ) is the ∗ dynamic ELBO. Since log Zdyn (x) is constant w.r.t. ϕ, any reduction in DKL (qϕ ∥πdyn ) produces an equal increase in F. The E-step optimizes exactly this divergence, so the refined teacher qϕ′k satisfies F(qϕ′k ) ≥ F (qθk ). Step 2 (M-step improves the objective). From Eq. A.17, the global divergence decomposes as DKL (πθ ∥π ∗ ) = DKL (πθ ∥qϕ′k ) + Eπθ [log(qϕ′k /π ∗ )]. Holding qϕ′k fixed, the second term is constant w.r.t. θ. The M-step minimizes DKL (πθ ∥qϕ′k ), directly reducing DKL (πθ ∥π ∗ ). By the equivalence in Eq. A.9, this implies J (θk+1 ) ≥ J (θk ). Step 3 (Convergence). Chaining Steps 1 and 2 yields a monotonically non-decreasing sequence {J (θk )}K k=1 . Since J is upper-bounded by β log Z(x) (Eq. A.10), the sequence converges. Extension to approximate updates (Generalized EM). In practice, neither step is solved to global optimality; each performs a finite number of gradient updates. Following the Generalized EM framework [20], monotonic ELBO improvement is preserved provided each step does not decrease its respective sub-objective—a condition satisfied by gradient descent with a sufficiently small learning rate. Two features of VPD further strengthen this practical guarantee:(i) the dynamic trust-region (Eq. A.22) explicitly penalizes large teacher drift via DKL (qϕ ∥πθk ), bounding per-iteration parameter change; and (ii) freezing the student likelihoods πθk (y|x) during each E-step ensures a stationary inner-loop landscape. Together, these place VPD squarely within the Generalized EM family with bounded per-step updates, providing strong practical assurance of monotonic progress even under partial optimization. 18

B.3

Hybrid Distillation and RL

While our EM framework elegantly separates the integration of verifiable rewards (E-step) from the distillation of the reasoning process (M-step), an alternative paradigm in recent literature attempts to fuse these signals simultaneously within a single optimization phase. Since the on-policy nature of our M-step evaluates trajectories against a ground-truth verifier at no additional sampling cost, it is technically possible to compress both the dense distillation signal and the sparse scalar advantage into a single update. To rigorously benchmark the benefits of our decoupled co-evolutionary approach, we formulate three representative single-phase hybrid mechanisms to serve as strong baselines: 1. Joint Loss Optimization. The most straightforward baseline computes the objective losses independently and optimizes their weighted sum. We calculate the standard GRPO surrogate loss LGRPO using the sequence-level advantages, and combine it with the SDPO KL distillation loss: LHybrid (θ) = ωopd · LSDPO (θ) + ωrl · LGRPO (θ), (B.23) where ωopd and ωrl are hyperparameters balancing the dense distributional guidance of the teacher with the unbiased terminal outcome of the verifier. While simple to implement, linearly combining a bounded reward with a potentially high-variance KL loss can often cause scale mismatches. 2. Advantage Reshaping. Instead of summing the final losses, a second class of baselines fuses the signals at the advantage level. Following the methodology of Self-Distillation Policy Optimization (SDPO) [10], the teacher’s dense distillation signal can be translated into a per-token advantage, ASDPO = sg (log qϕ (yt | x, C, y<t ) − log πθ (yt | x, y<t )). This is then linearly combined with the t sequence-level Monte Carlo advantage provided by the verifier, AGRPO . For a given token yt , the fused advantage is: AHybrid (yt ) = ωrl · AGRPO + ωopd · ASDPO (yt ). (B.24) t t The combined advantage is then used as a direct drop-in replacement in the standard clipped policy gradient objective:   |y|   X LPPO (θ) = −Ex,y  min ρt (θ)AHybrid (yt ), clip(ρt (θ), 1 − ϵ, 1 + ϵ)AHybrid (yt )  , (B.25) t t t=1

where ρt (θ) = πθ (yt | x, y<t )/πθold (yt | x, y<t ) is the token-level importance sampling ratio. This baseline fundamentally balances the unbiased, high-variance nature of the environment reward with the dense, low-variance bootstrapped signal from the self-teacher. 3. Distillation-Guided Advantage Reweighting. A fundamental limitation of the standard GRPO advantage AGRPO is its uniform application to all tokens in a sequence, failing to differentiate between critical reasoning steps and generic filler. To construct a baseline that addresses this without fully decoupling the steps, we can explicitly weight the sequence-level advantage using the teacher’s distillation signal. First, we capture the token-level discrepancy between the teacher and student using the log-ratio: ∆t = sg (log qϕ (yt | x, C, y<t ) − log πθ (yt | x, y<t )) . (B.26) To rigorously formulate this multiplier and avoid destabilizing the RL training with unbounded log-ratios, we adapt the mathematical mechanics of RLVR with Self-Distillation (RLSD) [39]. Specifically, we construct an exponential weight modulated by the sign of the sequence-level advantage: wt = exp(sign(AGRPO ) · ∆t ). (B.27) GRPO This ensures that when a trajectory is successful (A > 0), tokens favored by the teacher receive amplified credit, whereas in a failed trajectory (AGRPO < 0), tokens disfavored by the teacher bear a greater penalty. To safely integrate this reweighting, we adapt RLSD’s stabilization formula, applying a trust-region clip ϵw and a decaying mixing coefficient α ∈ [0, 1]: AHybrid (yt ) = AGRPO · ((1 − α) + α · clip(wt , 1 − ϵw , 1 + ϵw )) . (B.28) t By decaying α over the course of training, this baseline relies heavily on the teacher’s fine-grained magnitude guidance early on, and smoothly transitions to pure verifier-driven GRPO as the policy matures. The hybrid advantage is similarly inserted into the standard policy gradient objective. This formulation ensures the overall update direction remains strictly anchored to the environment verifier, while our distillation signal dynamically reshapes the token-level credit. 19

C

Additional Related Works

Reinforcement Learning with Verifiable Rewards (RLVR). Recent advancements in large foundation models have popularized Reinforcement Learning with Verifiable Rewards (RLVR) [9, 33, 38]. Unlike traditional RLHF which relies on noisy human preference models [22], RLVR optimizes LLMs against deterministic, rule-based environments (e.g., Python interpreters, formal theorem provers, or exact-match graders). While RLVR provides unbiased ground-truth signals, it suffers heavily from reward sparsity; a model receives a binary outcome only at the end of a long generative trajectory, making the credit assignment problem exceptionally difficult [13, 45, 48, 51, 18]. Our Variational Policy Distillation (VPD) framework fundamentally solves this sparsity issue. Instead of treating the verifiable environment (E) as a black-box scalar reward generator, we extract dense diagnostic feedback (C) from it to condition an intermediate teacher, transforming sparse RLVR into a rich, token-level distillation process. Iterative Self-Improvement and Preference Optimization. A rapidly growing body of literature explores allowing LLMs to iteratively self-improve using their own generated rollouts. Frameworks like Self-Play Fine-Tuning (SPIN) [3] pit a model against its previous iterations, while Self-Rewarding LLMs [44] prompt the model to act as its own reward judge. To bypass the instabilities of policy gradients (e.g., PPO), recent methods iteratively apply Direct Preference Optimization (DPO) [27] or leverage unpaired preference learning like Kahneman-Tversky Optimization (KTO) [4] and Binary Classifier Optimization (BCO) [12]. However, unconstrained self-improvement risks severe distribution shift and mode collapse, as the target distribution can easily decouple from the student’s active exploration space. Privileged Information and On-Policy Self-Distillation. To mitigate distribution shift and leverage privileged information without relying on external oracles, recent research has shifted toward OnPolicy Self-Distillation. Methods such as On-Policy Self-Distillation (OPSD) [49] condition a teacher on ground-truth answers to generate distillation targets. Similarly, On-Policy Context Distillation (OPCD) [42, 41] distills historical solution traces and system-prompt behaviors into model weights, while Self-Distillation Policy Optimization (SDPO) [10] conditions a self-teacher on diagnostic feedback for dense credit assignment. A major limitation of these existing methods is that they typically treat the conditionally prompted teacher as a fixed, heuristic oracle during the update step. Conceptually closer to our work is π-Distill [24], which moves beyond a static oracle by jointly learning a teacher (via GRPO) and a student. However, it treats the teacher’s rollouts as disconnected off-policy samples to subsequently fine-tune the student. VPD fundamentally departs from all these approaches by embedding the self-distillation process within a rigorous Expectation-Maximization (EM) framework. Rather than blindly distilling from a static prompt or relying on ad-hoc off-policy sampling, our E-step actively optimizes the teacher to sharply distinguish successful from failed trajectories. Crucially, this optimization is mathematically constrained within a dynamic trust region. This guarantees that the teacher’s target distribution is not only highly informative but remains safely anchored to the student’s local support, ensuring stable M-step distillation and preventing the vanishing gradients that plague standard self-distillation. More broadly, while concurrent work explores variational inference for LLM reasoning [53], VPD uniquely formulates this latent-variable optimization as a teacher-student distillation problem. Learning from Language Feedback. Moving beyond sparse scalar rewards, a rapidly expanding body of work explores natural language as a denser, more informative supervision signal. Theoretical foundations have recently been laid by tracking LLM hypothesis spaces and utilizing the transfer eluder dimension to quantify feedback information [37], as well as by leveraging natural language for explicit value estimation and policy improvement [6]. In practice, methods integrate feedback through various mechanisms: some utilize verbal reflections for temporal credit assignment [2, 52, 40], while others treat feedback as textual gradients to iteratively evolve responses [15, 35]. Another prominent strategy conditions models directly on the feedback itself during fine-tuning, as seen in Chain of Hindsight [17], Imitation learning from Language Feedback (ILF) [29], and Feedback-Conditional Policy (FCP) [19]. While these approaches successfully harness rich linguistic signals, they typically require training separate, computationally expensive critique models or rely on unconstrained, heuristic fine-tuning. VPD streamlines this paradigm. By fusing the feedback-aware teacher and the student into a single, shared-weight network (θ = ϕ), we embed dense language critiques (C) directly into a mathematically 20

bounded Expectation-Maximization cycle, achieving the benefits of language feedback without the traditional memory overhead or instability.

D

Experiments

D.1

Environment Feedback (LiveCodeBench)

Dataset and Evaluation Protocol. We evaluate our framework on the LiveCodeBench (LCB) v6 subset [11]. To ensure a rigorous evaluation of generalization, we follow the exact protocol established by SDPO [10]: during the on-policy rollout generation, the environment verifies the model’s code against the public unit tests provided in the prompt. If the code fails, the specific compiler error or assertion failure is returned as the diagnostic feedback C. However, final model performance is exclusively evaluated on the held-out private unit tests. Following the SDPO evaluation standard, we report the average accuracy over 4 independent rollouts to reliably measure the model’s robust reasoning capabilities and ensure it is not merely overfitting to the visible test cases. Model Configuration. We adopt Qwen3-8B [38] as our base model. To rigorously isolate the impact of our VPD framework and prevent the policy from relying on built-in extended reasoning mechanisms, we explicitly disable Qwen3’s “thinking mode” across all evaluations. Additionally, we construct the feedback-augmented prompt for the teacher policy using the exact template format established by SDPO [10]. Hyperparameters. Across all baselines and VPD, we sample N = 8 on-policy rollouts per prompt. For VPD, we apply an asymmetric update frequency, performing one E-step optimization for every F = 5 M-step gradient updates. The shared-weight network is optimized using the AdamW optimizer. Detailed hyperparameters are provided in Table D.1. Table D.1: Hyperparameters for LiveCodeBench experiments (Qwen3-8B). Hyperparameter

Value

Learning Rate Epochs Rollout Batch Size Rollouts per Prompt (N ) Max Prompt Length Max Response Length PPO Minibatch Size SDPO Logits Topk SDPO Loss SDPO Teacher Update Rate VPD E-Step Frequency (F ) VPD E-Step Minibatch Size BCO temperature (β)

D.2

1 × 10−6 30 32 8 2048 8192 1 20 Reverse KL 0.01 5 32 0.1

Contrastive Sibling Rollouts as Feedback (SciKnowEval)

Dataset and Evaluation Protocol. We evaluate the generalization of our framework across diverse scientific domains using the SciKnowEval benchmark [5], encompassing Biology, Chemistry, Materials Science, and Physics. Unlike code generation environments, SciKnowEval does not natively provide dense execution tracebacks; instead, the environment acts as a sparse verifier, returning only a binary correctness score via exact-match grading of the final extracted answer. We report the final average accuracy (Avg@16) on the benchmark’s evaluation split. Contrastive Sibling Feedback Mechanism. Because the environment cannot generate natural language critiques, we synthesize the diagnostic feedback C using the model’s own successful rollouts. During the rollout phase, we sample N trajectories per prompt. For each generated rollout, we select one successful trajectory from the same prompt’s rollout group (excluding itself) to serve as the conditioning information for the teacher. If all N rollouts for a given prompt are uniformly incorrect (meaning no successful sibling exists), those samples are entirely excluded from both the 21

E-step and M-step updates. The prompt template for the teacher policy strictly follows the exact formatting established in SDPO. Model Configuration and Hyperparameters. We evaluate Qwen3-1.7B, Qwen3-8B [38], and OLMo3-7B-Instruct [21]. As with our LiveCodeBench experiments, we explicitly disable the built-in “thinking mode” for all models to rigorously isolate the benefits of the VPD framework. We sample N = 8 trajectories per prompt during the data collection phase. The shared-weight network is optimized using the AdamW optimizer. To maintain stable trust-region dynamics during the EM cycle, we employ an asymmetric update frequency of F = 5 (one E-step per five M-steps). Detailed hyperparameters are provided in Table D.2. Table D.2: Hyperparameters for SciKnowEval experiments. Hyperparameter Learning Rate Training Steps Rollout Batch Size Rollouts per Prompt (N ) Max Prompt Length Max Response Length PPO Minibatch Size SDPO Logits Top-k SDPO Loss SDPO Teacher Update Rate VPD E-Step Frequency (F ) VPD E-Step Minibatch Size BCO Temperature (β)

D.3

Value −5

1 × 10

(Qwen) / 5 × 10−6 (OLMO) 500 32 8 2048 8192 32 100 JS 0.05 5 32 0.1

Self-Critique via LLM Judge (SciKnowEval)

Motivation and Protocol. As discussed in Section D.2, the contrastive sibling mechanism relies on the presence of at least one successful trajectory within a prompt’s rollout group. If all N rollouts fail, the sample provides no contrastive textual guidance. To evaluate our framework’s ability to operate without contrastive positive pairs, we introduce an autonomous LLM Judge setting. In this configuration, the model acts as its own evaluator, generating diagnostic critiques for its failed trajectories. Critique Generation Prompt. To generate the diagnostic feedback C, the failed trajectory is passed back to the model along with the ground-truth answer. Because SciKnowEval acts as a sparse verifier, it does not provide step-by-step ground-truth derivation; the available {reference_solution} is strictly limited to the final multiple-choice letter (e.g., “The correct answer is A”). The model must therefore independently deduce the logical gap between its attempt and the correct final answer. We generate the critique using the following zero-shot prompt: LLM Judge Critique Prompt Given this multiple-choice science question, a student’s incorrect attempt, and the correct answer, provide specific feedback on what went wrong in the student’s reasoning. Problem:

{problem}

Student’s attempt:

{response}

Reference solution:

{reference_solution}

Provide 2-3 sentences of specific, actionable feedback explaining why the student’s chosen answer is wrong and what conceptual misunderstanding led to the error. Do not simply state the correct answer.

22

Teacher Conditioning and Hyperparameters. Once the critique is generated, it serves as the diagnostic feedback C for the E-step. The teacher policy is conditioned on this critique using a format identical to the contrastive sibling template (replacing the sibling trajectory with the generated text). The subsequent E-step and M-step optimizations proceed exactly as in the contrastive setting. All model configurations, rollout strategies (N = 8), update frequencies (F = 5), and optimization hyperparameters are identical to those detailed in Table D.2. D.4

Base Model “Cold Start”

Motivation and Setup. To investigate the reliance of self-distillation methods on pre-existing instruction-following capabilities, we evaluate our framework in a pure “cold start” scenario. In this setting, we directly optimize a base foundation model using on-policy generation. We utilize Qwen3-4B-Base and evaluate its performance on the SciKnowEval benchmark. Prompting and Formatting. We maintain the exact same prompt templates used for the instructiontuned models. However, because the base model lacks instruction-following alignment, it struggles to efficiently parse and integrate the textual critique (C) into its subsequent reasoning steps. For standard self-distillation, this inability to utilize feedback causes the teacher’s target distribution to rapidly degrade. Hyperparameters and Stability. All hyperparameters are kept identical to those detailed in Table D.2. While pure RL (GRPO) successfully elicits reasoning capabilities through sparse reward maximization, standard SDPO immediately collapses to a 0% pass rate within the first few steps. By actively optimizing the teacher policy and constraining the trust region, VPD’s E-step effectively prevents this rapid collapse, maintaining a functional learning trajectory for substantially longer. However, because the M-step distillation inherently relies on tracking the teacher’s intermediate token distribution, the base model still ultimately struggles compared to pure outcome-based RL, resulting in lower final accuracy. The results are summarized in Table D.3. Table D.3: Cold start training on SciKnowEval using Qwen3-4B-Base. Method

Bio.

Chem.

Mat.

Phys.

AVG

Base GRPO VPD

29.37 58.63 48.50

32.71 77.98 70.45

50.84 81.12 64.03

51.33 80.23 72.81

41.06 74.49 63.95

Figure D.1 presents additional training curves for the base model cold-start experiments across the remaining SciKnowEval domains.

Figure D.1: Additional training curves illustrating the cold-start optimization dynamics of Qwen3-4BBase across the Biology, Chemistry, and Physics domains. While standard SDPO collapses almost immediately, VPD actively stabilizes the trust region and effectively delays training degradation.

D.5

Mathematical Reasoning Experimental Setup

Dataset and Evaluation Protocol. To stress-test our framework on highly symbolic and strict logical domains, we utilize the DAPO-Math dataset [43] for training and evaluate the resulting policies on the Math500 benchmark [16]. DAPO-Math provides a challenging distribution of competitive mathematics problems. During training, the verifiable environment parses the model’s final answer (enclosed in a \boxed{} tag) and uses a symbolic exact-match grader to assign a binary reward. Final performance is evaluated using the standard Math500 test script, reporting the Avg@4 accuracy. 23

Feedback Mechanism for Mathematics. For mathematical reasoning, we employ the contrastive sibling mechanism to generate the diagnostic feedback C. If a model’s logical derivation leads to an incorrect final boxed answer, the teacher policy is provided with a successful sibling trajectory to identify the algebraic or conceptual error. Optimization Dynamics. As noted in the main text, mathematical reasoning is uniquely unforgiving; intermediate self-distillation targets (π ∗ ) that contain subtle arithmetic hallucinations can actively poison the student policy. While pure sparse RL (GRPO) achieves an 83.8% accuracy by strictly rewarding fully correct derivations, standard SDPO suffers from severe training collapse as it distills these flawed linguistic explanations. We sample N = 8 trajectories per prompt and apply an asymmetric update frequency (F = 5) for VPD. Detailed training hyperparameters for the DAPOMath experiments are provided in Table D.4. Table D.4: Hyperparameters for DAPO-Math experiments (Qwen3-8B). Hyperparameter

Value

Learning Rate Training Steps Rollout Batch Size Rollouts per Prompt (N ) Max Prompt Length Max Response Length PPO Minibatch Size SDPO Logits Top-k SDPO Loss SDPO Teacher Update Rate VPD E-Step Frequency (F ) VPD E-Step Minibatch Size BCO Temperature (β)

5 × 10−6 200 32 8 2048 8192 32 full logits Forward KL 0.05 5 32 0.1

Figure D.2 presents additional training curves for the mathematical reasoning experiments across the AIME24, AIME25, and AMC 23 benchmarks.

Figure D.2: Additional training curves illustrating the performance on the AIME24, AIME25, and AMC23 benchmarks. Consistent with our Math500 findings, while VPD actively delays the severe training collapse observed with standard SDPO, pure sparse RL (GRPO) remains the most robust optimization method for these strict, highly symbolic domains. D.6

Ablations

E-Step Update Frequency (F ). To investigate the impact of the asymmetric update frequency, we utilize Qwen3-1.7B on the SciKnowEval benchmark. All foundational hyperparameters remain strictly identical to the configuration detailed in Table D.2. In our algorithmic implementation, configuring the update frequency to F dictates the optimization schedule at the rollout-batch level. For every generated batch of on-policy rollouts, we perform the standard M-step distillation updates for the student. Additionally, once every F rollout batches, we reuse this exact same batch of trajectories to perform an E-step optimization to refine the teacher. As discussed in the main text, F = 5 provides an optimal target-network dynamic. When setting F = 1 (synchronous updates), the temporal runtime overhead increases as well, and the rapidly shifting teacher distribution prevents the student from adequately converging on the distillation targets. Conversely, for F = 10, the teacher’s diagnostic capabilities stagnate relative to the student’s learning 24

pace, yielding stale guidance that fails to appropriately address the student’s newly emerging logical errors. Dynamic vs. Fixed Reference Prior. In standard reinforcement learning (e.g., PPO) and traditional self-distillation paradigms (e.g., SDPO), the policy is typically regularized via a KL-divergence penalty against a completely frozen reference model (πref ), which is usually the initial base model. For our Fixed Prior ablation, we replicate this standard mechanism during the E-step, anchoring the teacher’s BCO objective strictly to the frozen Qwen3-1.7B initialization. For our standard VPD (Dynamic Prior) setting, this prior is instead continually updated to match the active student policy (πθ ) at the start of each expectation-maximization cycle. The severe training instability observed with the Fixed Prior (illustrated in Figure 5) stems from an escalating distribution shift. As the student policy naturally evolves and discovers novel, successful reasoning paths during the iterative M-steps, its distribution inherently drifts from the initial base model. If the teacher is subsequently forced to anchor its E-step updates to the frozen πref , its optimized target distribution is artificially pulled backwards toward the outdated base behaviors. This creates a destructive gradient conflict during the subsequent M-step: the student is penalized for exploring new reasoning paths and is instead distilled toward stale, pre-training priors. By dynamically anchoring the prior to πθ , VPD guarantees a sliding trust region, ensuring the teacher’s guidance smoothly tracks the student’s active exploration space without inducing training collapse. Figure D.3 provides additional training progression plots across the remaining SciKnowEval domains.

Figure D.3: Additional training curves comparing the dynamic and fixed reference priors during E-step optimization across the Chemistry, Materials Science, and Physics domains.

25

Record · ID 187307 · SHA-256 ecfe8d0fb69b5b87
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.