Beyond Passive Imitation: On-Policy Mid-Training Distillation for Language Models
Ruize Zheng, Xuyang Liu, Siyu Ren, Xiaobing Tu, Yinggui Wang, Jinkui Ren, Xiantao Zhang, Linfeng Zhang
Abstract
Continual pre-training (CPT) adapts large language models (LLMs) to specialized domains, yet its standard next-token prediction (NTP) objective treats every corpus token as a fixed target, regardless of its utility to the current model. In a controlled study on the same 1B-token mathematical corpus, we observe sharply different outcomes across base models: NTP improves Llama-3.2-3B's performance on mathematical benchmarks but substantially degrades Qwen3-1.7B-Base's performance, indicating that, under a fixed training recipe, the same training sequences can have model-dependent effects. To address this problem, we introduce On-Policy Mid-Training Distillation (OPMD), which reformulates mid-training from offline text imitation into active, query-driven knowledge acquisition. At selected anchor positions, OPMD samples trajectories from the evolving student policy and applies dense token-level reverse-KL rewards from a frozen teacher, training the model on states it actually visits rather than only on ground-truth prefixes. This on-policy objective reduces the training-generation mismatch of teacher-forced NTP. On MATH-500 and Minerva, OPMD improves the Qwen student over its base performance and outperforms the evaluated NTP baseline, which degrades on both benchmarks. OPMD integrates into CPT pipelines without added inference-time overhead and offers a model-aware alternative to passive domain adaptation.
Create a lesson
Related papers
Privileged Information Does Not Guarantee Privileged Guidance: Auditing On-Policy Self-Distillation for Reasoning Models
Shared title terminology · Haoyi Qiu, Akshat Agarwal
Janus-MOPD: Tracing the Student Learning Dynamics in Multi-Teacher On-Policy Distillation
Shared title terminology · Zongji Yu, Ming Zhang, Dongcheng Zhang et al.
Robust Domain-Mixture Scheduling for Multi-Teacher On-Policy Distillation
Shared title terminology · Yankai Chen, Sida Lin, Yifan Li et al.
Auditing Post-Training Unlearning in Diffusion Language Models using Sparse Autoencoders
Shared title terminology · Yunha Seo, Changhoon Kim
Represented but misread: Post-training changes how language models read out what they represent
Shared title terminology · Jochen Laubrock
General progress substitutes for specific training data in language models
Shared title terminology · Mark Marosi, Peter Antal