Learning from Language Feedback via Variational Policy Distillation

Yang Li, Erik Nijkamp, Semih Yavuz, Shafiq Joty

TL;DR

Reinforcement learning from verifiable rewards (RLVR) often struggles with sparse feedback, a bottleneck that text-based language feedback can help solve. However, existing self-distillation methods rely on a static, passive "self-teacher" that quickly plateaus as the student model improves. This paper introduces Variational Policy Distillation (VPD), a framework that co-evolves both the teacher and student policies using an Expectation-Maximization (EM) approach, significantly boosting performance and training stability on coding and scientific reasoning tasks.

What Problem Does This Paper Address?

Modern large language models (LLMs) often use RLVR (like the Group Relative Policy Optimization, or GRPO, algorithm behind models like DeepSeek-R1) to optimize for objective correctness. However, because these rewards are typically sparse and binary (e.g., a program either passes all test cases or it doesn't), the model faces a severe credit assignment problem: a tiny typo in a complex derivation receives the exact same zero reward as complete gibberish.

While rich textual diagnostics—such as compiler error traces or automated critiques—can provide dense, localized supervision, leveraging them effectively is challenging. Current on-policy self-distillation methods condition the model on this feedback to act as a "self-teacher" and distill that knowledge back into the unconditioned model. Unfortunately, they treat this teacher as a fixed, passive function. As the student model internalizes basic corrections, the passive teacher's zero-shot capabilities plateau, starving the student of meaningful learning signals and causing training to stall.

Methods

VPD formalizes learning from language feedback as a Variational Expectation-Maximization (EM) problem, allowing the teacher and student to co-evolve:

  • E-Step (Teacher Refinement): Instead of leaving the teacher static, VPD actively trains it to interpret textual feedback. It optimizes the teacher to distinguish between successful and failed trajectories given a textual critique using unpaired preference optimization (via Binary Classifier Optimization, or BCO). Crucially, the teacher is dynamically anchored to the current student policy, creating a sliding trust region that ensures the teacher's guidance remains reachable for the student.
  • M-Step (Student Optimization): The student internalizes this refined guidance by minimizing the token-level KL divergence against the updated teacher on its own on-policy rollouts.

To eliminate memory overhead, both the teacher and student are instantiated within a single, shared-weight neural network. The distinction is purely contextual: the teacher is invoked simply by appending the diagnostic feedback to the prompt. VPD also utilizes an asymmetric update frequency (e.g., one E-step for every five M-steps) to keep the target distribution stable.

Datasets

The authors evaluated VPD across several demanding benchmarks:

  • LiveCodeBench (LCB) v6 subset: Used for code generation tasks, leveraging deterministic environment feedback (compiler errors and failed unit tests).
  • SciKnowEval: Covering scientific reasoning across Biology, Chemistry, Materials Science, and Physics. Feedback was synthesized using contrastive sibling rollouts or autonomous LLM self-critiques.
  • DAPO-Math, Math500, AIME24/25, and AMC23: Used to stress-test the framework on rigid, highly symbolic mathematical reasoning.

Key Insights and Ideas

  • Co-Evolution Sustains Learning: Actively training the teacher prevents the feedback signal from degrading. As shown in the reward margin tracking, standard self-distillation (SDPO) quickly loses its discriminative power, whereas VPD continuously improves the teacher's ability to extract actionable signals.
Figure 1: Reward margin between correct and incorrect responses dur- ing LCB training.
  • The Limits of Textual Feedback: The authors identified clear boundaries where language-driven self-distillation falls short. In base-model "cold start" scenarios and rigid mathematical reasoning, pure environment-driven RL (GRPO) still dominates. Unstructured text can be too noisy or imprecise for strict logical derivations, meaning that forcing the student to match a flawed intermediate token distribution can inadvertently restrict useful exploration.

Key Results

  • Code Generation: On LiveCodeBench, VPD achieved a state-of-the-art 49.62% pass rate, outperforming pure RL (GRPO at 45.61%) and passive distillation (SDPO at 47.33%).
  • Scientific Reasoning: On SciKnowEval, VPD consistently outperformed all baselines, achieving an aggregate average accuracy of 74.34% on Qwen3-1.7B and 77.15% on Qwen3-8B.
  • Training Stability: Single-phase hybrid methods that try to fuse RL advantages and distillation losses simultaneously often suffer from catastrophic scale mismatches. VPD's decoupled EM formulation entirely bypassed this instability, yielding monotonic convergence curves.

Limitations and Future Work

Despite its success, VPD has a few notable limitations:

  1. The Math & Cold-Start Gap: VPD still lags behind pure sparse RL in base-model cold starts and rigid mathematical reasoning, highlighting the difficulty of relying on unstructured text for strict logical constraints.
  2. Capacity Bounds: Because of the shared-weight architecture, the teacher's representational capacity is strictly bounded by the student's size.

Moving forward, the authors suggest exploring partially decoupled parameterizations (such as using Parameter-Efficient Fine-Tuning, or PEFT, specifically for the teacher step) to expand diagnostic capacity without reintroducing massive memory overheads.

Summary updated

BibTeX
@inproceedings{li2026learning,
  author = {Yang Li and Erik Nijkamp and Semih Yavuz and Shafiq Joty},
  title = {{Learning from Language Feedback via Variational Policy Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TgNhN4o5vf},
}
Figure