Variational Policy Distillation

Learning from Language Feedback via a Co-Evolutionary EM Framework

Variational EM Language Feedback Self-Distillation RLVR
πŸ“ Preprint 2026 Β· arXiv:2605.15113

Salesforce AI Research

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.

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, consistently outperforming both standard RLVR and existing self-distillation baselines across scientific reasoning and code generation.

Why VPD?

Standard RLVR optimizes against sparse, binary outcomes β€” wasting the latent diagnostic information embedded in failed trajectories. Existing self-distillation methods such as SDPO inject language feedback, but only through a frozen, zero-shot teacher. VPD reframes this as a principled variational inference problem and asks four questions that prior work cannot answer:

πŸ“‰

Sparse Rewards

How can we densify binary outcome signals without losing the unbiased ground-truth they provide?

🧊

Plateauing Teacher

How do we prevent the passive teacher's zero-shot critique from saturating as the student improves?

🎯

Stable Distillation

How can the teacher's target distribution stay reachable for the active student policy?

πŸ’Ύ

No Extra Memory

How do we co-evolve teacher and student without doubling VRAM with a second model?

VPD's answer: a Variational EM loop on a single shared-weight network. The teacher is the student conditioned on diagnostic feedback C, refined off-policy in the E-step, then distilled into the unconditioned student in the M-step β€” all anchored to a dynamic trust region around the current policy.

Key Contributions

1. A Variational EM Framework for Self-Distillation

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. Comprehensive Multi-Source Feedback Study

We instantiate VPD across three sources of diagnostic feedback: deterministic environment verifiers (compiler errors), contrastive sibling rollouts, and autonomous self-critique via an LLM judge. Evaluated on competitive programming and scientific reasoning benchmarks across Qwen3-1.7B, Qwen3-8B, and OLMo3-7B-Instruct, VPD consistently outperforms standard RLVR and self-distillation baselines.

3. Characterizing the Bounds of Language-Feedback Distillation

We stress-test VPD on cold-start base models and rigid mathematical reasoning, empirically establishing the limits of language-driven self-distillation. VPD significantly mitigates and delays the training collapse typically observed in these settings, while clarifying where pure sparse RL ultimately remains the most effective paradigm.

The Variational EM Algorithm

Rather than treating the feedback-conditioned model as a fixed heuristic, VPD treats it as an approximate posterior qΟ•(y | x, C) over correct solutions that must be actively optimized alongside the student policy πθ(y | x). This variational perspective naturally decomposes training into two alternating phases:

E-Step

Teacher Refinement

We actively train the teacher's ability to interpret language feedback by optimizing it to distinguish successful from failed trajectories given the textual critique. Because preference pairs cannot be formed (feedback is unique per trajectory), we use Binary Classifier Optimization (BCO) β€” an unpaired preference loss with a moving reward shift Ξ΄.

minΟ• DKL( qΟ•(y | x, C) βˆ₯ Ο€*(y | x) )
M-Step

Student Distillation

We project the refined teacher back into the student's unconditioned hypothesis space by minimizing the token-level KL divergence over the student's own on-policy rollouts. Because the E-step trust region keeps the teacher reachable, the M-step distillation is highly stable and avoids mode collapse.

minΞΈ DKL( πθ(y | x) βˆ₯ qΟ•(y | x, C) )
Shared-weight architecture (Ο• = ΞΈ). Although mathematically distinct, the teacher and student are instantiated within a single neural network. The teacher is simply the same model conditionally prompted with diagnostic feedback C β€” eliminating the VRAM overhead of dual-model paradigms.

Dynamic Trust Region

A naΓ―ve EM loop would anchor the teacher's implicit reward to a static base model. In a co-evolutionary setting, this causes severe distribution shift between teacher and student. VPD instead frames the E-step as an iterative trust-region update by anchoring the reference prior to the current student policy:

rΜƒΟ•(x, y, C) = Ξ² Β· log [ qΟ•(y | x, C) / πθ(y | x) ]

This sliding trust region restricts the teacher to a safely reachable target distribution around the student's current support, ensuring the dense distributional guidance provided during the M-step is always a viable "next step". The result is monotonic ELBO improvement under generalized EM β€” and dramatic empirical stability over static-prior baselines.

Dynamic vs fixed reference prior on SciKnowEval Biology

Figure 5: Reverting to a static reference prior on Qwen3-1.7B Biology (pink) causes severe training instability. VPD's dynamic prior (brown) yields a stable, monotonically improving trajectory.

How VPD Differs

Method Dense Feedback Active Teacher Trust-Region Constrained Shared-Weight Co-Evolution
GRPO / RLVR βœ— β€” β€” β€” βœ—
SDPO / OPSD βœ“ βœ— βœ— βœ“ βœ—
SDPO + RL (hybrid) βœ“ βœ— βœ— βœ“ βœ—
Ο€-Distill βœ“ βœ“ (off-policy) βœ— βœ— partial
VPD (Ours) βœ“ βœ“ (on-policy) βœ“ βœ“ βœ“

VPD is the only method to combine an actively optimized teacher, a dynamic trust region, and a shared-weight architecture inside a single co-evolutionary EM loop.

Algorithm at a Glance

1

On-Policy Rollout

Sample a batch of prompts and generate N student trajectories per prompt from the current policy πθ.

2

Environment Critique

For each trajectory, the verifier returns a binary outcome r(x, y) and diagnostic feedback C β€” compiler errors, contrastive sibling rollouts, or self-generated critique.

3

E-Step Β· Teacher Refinement

Update the teacher via unpaired preference optimization (BCO) against the dynamic implicit reward. Partition trajectories into successes and failures, compute the moving reward shift Ξ΄, and minimize the binary cross-entropy loss.

4

M-Step Β· Student Distillation

Distill the refined teacher into the student by minimizing token-level KL divergence on the student's own rollouts, with stop-gradient on the teacher logits.

Asymmetric updates (F = 5). VPD natively supports multiple M-steps per E-step. Updating the student more frequently stabilizes the target distribution and ensures the student internalizes guidance before the teacher advances β€” the empirical sweet spot is one E-step per five M-steps.

Three Sources of Diagnostic Feedback

A core strength of VPD is its versatility across diverse feedback channels. We evaluate three instantiations that span the spectrum from deterministic environment signals to self-generated critique.

Main Results

LiveCodeBench v6 (Qwen3-8B)

Base 28.1
GRPO 45.6
SDPO 47.3
VPD (Ours) 49.6

Pass-rate on held-out private unit tests; +2.3 over SDPO, +4.0 over GRPO.

SciKnowEval AVG

Qwen3-1.7B (vs GRPO) +4.5
Qwen3-8B (vs SDPO) +2.7
OLMo3-7B (vs SDPO) +4.7
Qwen3-8B Self-Critique +3.3

Consistent gains across model families, scales, and feedback sources.

SciKnowEval (Contrastive Sibling Feedback)

Model Method Bio. Chem. Mat. Phys. AVG
Qwen3-1.7B Base 33.641.050.149.943.6
GRPO 61.375.774.967.469.8
SDPO 61.572.471.559.966.3
VPD 64.881.977.173.774.3
Qwen3-8B Base 31.142.159.259.147.9
GRPO 62.576.677.376.173.1
SDPO 61.682.379.674.374.4
VPD 68.082.477.780.677.2
OLMo3-7B-Instruct Base 16.122.834.737.327.7
GRPO 52.969.974.066.165.7
SDPO 50.080.270.263.966.1
VPD 55.680.376.171.270.8

Table 2: VPD consistently outperforms GRPO, SDPO, and SDPO+RL hybrids across three model families and four scientific domains.

Sustained Discriminative Power

As training progresses, SDPO's reward margin between correct and incorrect responses rapidly collapses β€” a clear signature of the passive teacher saturating. VPD's E-step continually sharpens the teacher's critique, opening a widening gap that powers downstream M-step distillation.

Reward margin between correct and incorrect responses on LiveCodeBench

Figure 1: Reward margin rΜƒ(x, y+, C+) βˆ’ rΜƒ(x, yβˆ’, Cβˆ’) during LCB training. SDPO (orange) stays near zero; VPD (brown) steadily grows, confirming the E-step continually refines the teacher.

Training Stability on SciKnowEval

Single-phase hybrid methods (SDPO+RL Adv-Reshape / Reweight / Joint-Loss) suffer from catastrophic scale mismatches between unbounded log-ratios and high-variance RL advantages. Plain SDPO degrades late in training. VPD's decoupled EM formulation eliminates both pathologies and exhibits a stable, monotonic convergence curve.

Qwen3-8B Biology training dynamics

Qwen3-8B Β· SciKnowEval Biology

Qwen3-8B Physics: SDPO vs VPD

Qwen3-8B Β· Physics (SDPO collapses, VPD stays stable)

Figure 2: VPD avoids both the late-stage degradation of plain SDPO and the catastrophic instability of single-phase hybrid baselines.

Self-Critique: VPD Without Positive Pairs

When all sampled trajectories for a prompt are incorrect, contrastive siblings provide no guidance. In the self-critique setting, the model acts as its own judge β€” generating diagnostic critique against only the ground-truth final answer. VPD still significantly outperforms SDPO, pointing to a compelling future direction: co-evolving the judge alongside the reasoning policy.

Model Method Bio. Chem. Mat. Phys. AVG
Qwen3-1.7B SDPO 62.178.771.258.167.5
VPD 64.879.473.570.372.0
Qwen3-8B SDPO 61.482.383.772.074.9
VPD 65.483.584.279.578.1

Table 3: VPD with autonomous self-critique outperforms SDPO across architectures, hinting at fully self-improving feedback loops.

The Bounds of Self-Distillation

We stress-test VPD on two settings where all self-distillation methods struggle relative to pure RL: cold-start base models and rigid mathematical reasoning. In both regimes, VPD significantly delays training collapse β€” but pure GRPO remains the most effective strategy, illuminating an inherent limit of unstructured textual feedback for strict logical derivation.

Cold-start training on Qwen3-4B-Base

Figure 3 Β· Cold start: VPD delays the SDPO collapse on a base model.

Math500 training

Figure 4 Β· Math500: VPD substantially delays collapse but GRPO still wins.

Additional cold-start curves

Qwen3-4B-Base Biology

Biology

Qwen3-4B-Base Chemistry

Chemistry

Qwen3-4B-Base Physics

Physics

Additional mathematical reasoning curves

Qwen3-8B AIME24

AIME 2024

Qwen3-8B AIME25

AIME 2025

Qwen3-8B AMC23

AMC 23

Ablations

E-Step Update Frequency

Updating the teacher too often (F = 1) creates a volatile target distribution; updating too rarely (F = 10) yields stale guidance. The empirical sweet spot is F = 5.

Frequency Bio.Chem.Mat.Phys.AVG
VPD (F1)61.178.572.568.870.2
VPD (F5)64.881.977.173.774.3
VPD (F10)59.579.571.666.569.3

Dynamic vs. Fixed Reference Prior

A fixed reference prior decouples the teacher's guidance from the student's exploration space, destabilizing the M-step. VPD's dynamic prior tracks the student and yields a +6.5 average improvement on Qwen3-1.7B.

Dynamic vs Fixed Chemistry

Chemistry

Dynamic vs Fixed Material

Material Science

Dynamic vs Fixed Physics

Physics

Figure C.3: Across all SciKnowEval domains, the dynamic prior (brown) is markedly more stable than the fixed prior (pink).

Key Takeaways

1

Co-evolution beats passive distillation. Actively refining the teacher via a Variational E-step yields a widening reward margin where SDPO's saturates, translating into +2-8% gains across LiveCodeBench, SciKnowEval, and self-critique settings.

2

The dynamic trust region is essential. Anchoring the teacher to the current student (rather than a static Ο€ref) keeps the M-step target reachable and eliminates the late-stage collapse that plagues plain SDPO and single-phase hybrids.

3

Memory-efficient by design. A shared-weight network (Ο• = ΞΈ) means VPD adds no VRAM and no extra sampling cost over SDPO β€” only a modest 30-55% runtime overhead, controlled by asymmetric update frequencies.

4

Honest limits. On cold-start base models and rigid math reasoning, even VPD lags pure RLVR. Self-distillation needs a baseline of instruction-following competence and forgiving feedback β€” sparse outcome-driven RL still wins where every intermediate token must be precisely correct.

Citation

@article{li2026vpd, title = {Learning from Language Feedback via Variational Policy Distillation}, author = {Li, Yang and Nijkamp, Erik and Yavuz, Semih and Joty, Shafiq}, journal = {arXiv preprint arXiv:2605.15113}, year = {2026} }