Contrastive On-Policy Distillation via Dual-Branch Supervision

Hou, Zhibo, Zhao, Fan, Li, Yiping, An, Zhiyu, Du, Wan

–arXiv.org Artificial Intelligence 

ABSTRACT For on-policy distillation (OPD), more capable models are a natural choice as teachers. However, higher task performance does not necessarily imply greater teachability. A controlled token intervention study suggests that even a model weaker than the student can serve as an informative contrastive reference. Building on this observation, we propose Contrastive On-Policy Distillation (cOPD), which provides dual branch supervision by contrasting strong teacher, weak teacher, and student predictions at student generated prefixes. Our analysis explains how this three way comparison helps select token candidates associated with better or worse reasoning outcomes under an idealized model. We evaluate cOPD across diverse teacher student configurations spanning different training stages, parameter scales, and model families, on tasks including mathematical reasoning, instruction following, and question answering with abstention. Further analyses show that cOPD suppresses undesirable response patterns and suggest that it facilitates exploration. 1 INTRODUCTION Distillation has rapidly emerged as a core technique for large language model (LLM) post-training. Recent LLMs, including Qwen3 (Yang et al., 2025), DeepSeekV4 (Xu et al., 2026), and GLM-5 (Zeng et al., 2026), have incorporated OPD into their post-training pipelines for capability transfer and consolidation, highlighting its growing practical importance alongside supervised fine-tuning (SFT) and reinforcement learning (RL). As OPD uses the teacher's predictive distribution as a training target, using more capable models as teachers is both a natural and widely adopted design choice (Jin et al., 2026; Yang et al., 2025; Gu et al., 2024).