Reproduce “On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, Olivier Bachem

GKD trains smaller language models on sequences they generate, then uses a larger teacher’s token distributions at those prefixes to reduce divergence, optionally mixing fixed data and divergences. In T5-family experiments starting from supervised-fine-tuned students, it improves common distillation baselines across summarization, translation, and reasoning. On WMT English-to-German, fully on-policy training adds 0.85 BLEU versus 0.28 with fixed data.

Key insights

  • Training auto-regressive language models with on-policy, student-generated data effectively mitigates train-inference distribution mismatch, leading to improved distillation performance.
  • The choice of divergence measure (e.g., Forward KL, Reverse KL, JSD) impacts the student's learning behavior (mode-seeking vs. mode-covering) and its optimal selection can be task-dependent, influencing generation quality and diversity.
  • On-policy distillation inherently combines with reinforcement learning (RL) fine-tuning, enabling a hybrid approach to optimize for specific rewards while preserving general capabilities from the teacher.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.