TL;DR
SDPO (Self-Distillation Policy Optimization) breaks the "credit-assignment bottleneck" in LLM reinforcement learning by using rich environment feedback (like compiler errors) to turn the model into its own teacher. By retrospectively identifying its own mistakes in-context, the model achieves higher accuracy with 4–6x better sample efficiency and produces significantly more concise reasoning than standard RL methods.
What Problem Does This Paper Address?
Post-training Large Language Models (LLMs) often involves Reinforcement Learning with Verifiable Rewards (RLVR). In domains like math or coding, we can easily check if an answer is right or wrong. However, most current methods (like GRPO) rely on a simple scalar reward—a 1 for success or a 0 for failure.
This creates a credit-assignment bottleneck. If a 500-line block of code fails a unit test, a binary reward doesn't tell the model which specific token caused the failure. Furthermore, if all attempts in a training batch fail, the mathematical "advantage" signal collapses to zero, and the model stops learning. The authors argue that we are throwing away valuable information: many environments provide "rich feedback" (e.g., "RuntimeError: division by zero at line 73") that explains why a failure occurred.
Methods
The authors introduce Self-Distillation Policy Optimization (SDPO). Instead of just using a reward number, SDPO treats the model as a self-teacher.
- Rollout: The "student" model generates an attempt.
- Feedback: The environment provides rich, tokenized feedback (like a compiler error or a successful rollout from a peer).
- Retrospection: The same model is prompted with the original question, its own failed attempt, and the feedback. This "self-teacher" context allows the model to identify its mistakes.
- Distillation: The algorithm minimizes a logit-level distillation loss, essentially forcing the student's original policy to match the "corrected" next-token distributions of the feedback-informed self-teacher.
Crucially, SDPO is a "drop-in" modification for standard RL pipelines. It replaces the sparse scalar advantages of methods like GRPO with dense, token-level advantages derived from the self-teacher’s hindsight.
Datasets
The researchers evaluated SDPO across several challenging domains:
- LiveCodeBench v6 (LCBv6): Competitive programming problems released between February and May 2025.
- SciKnowEval: Undergraduate-level scientific reasoning subsets (Chemistry, Physics, Biology, and Materials Science).
- ToolAlpaca: A benchmark for tool-use and API interaction.
- Holdout Tasks: To check for "catastrophic forgetting," they tested on IFEval, ArenaHard-v2, and MMLU-Pro.
Key Insights and Ideas
- Conciseness is a byproduct of better credit: Unlike many RL models that learn to "cheat" by rambling (generating long chains of thought to increase the chance of a correct answer), SDPO models are 3x to 7x shorter. Because the model receives dense feedback on exactly where it went wrong, it learns to avoid "superficial reasoning" and filler phrases like "Hmm" or "Wait."
- Bootstrapping the Teacher: The self-teacher isn't a fixed, superior model; it's the same model as the student. As the student improves through training, the self-teacher also becomes more capable of identifying subtle errors, creating a virtuous cycle.
- Self-Teaching as an Emergent Property: The effectiveness of SDPO scales with model size. Larger models are better in-context learners, which makes them better at "retrospection." On very small models (e.g., 1.5B parameters), SDPO can actually underperform standard RL.
- Test-Time Discovery: SDPO can be used at inference time to solve "impossible" problems. By iteratively distilling feedback from failed attempts into the weights for a single specific question, it finds solutions 3x faster than just sampling repeatedly (Best-of-k).
Key Results
- Superior Performance: On LCBv6 with Qwen3-8B, SDPO achieved 48.8% accuracy, significantly outperforming GRPO (41.2%) and even beating top-tier instruct models like Claude 3.5 Sonnet.
- Massive Speedup: SDPO reached GRPO’s final accuracy in 4x fewer generations. In scientific reasoning tasks, it achieved a 6x wall-clock speedup in training time.
- Robustness: SDPO works even in environments without rich feedback. In these cases, it uses successful attempts within a batch as "implicit feedback" to teach the failed attempts how to improve.
Limitations and Future Work
- Model Scale Dependency: The authors acknowledge that SDPO relies on the model's ability to perform in-context learning. If a model is too weak to understand why it failed even when given the error message, the self-distillation signal becomes noisy.
- Feedback Quality: The method is only as good as the feedback provided. If an environment provides misleading or uninformative feedback, the model may learn incorrect correlations.
- Computational Overhead: While sample efficient, SDPO requires an extra forward pass to compute the retrospective teacher's log-probabilities, adding a small amount of compute per training step.
- Future Direction: The authors suggest exploring off-policy SDPO, which could further increase efficiency by performing multiple gradient steps per batch of experience.
Summary updated