Beyond Passive Imitation: On-Policy Mid-Training Distillation for Language Models
Zheng, Ruize, Liu, Xuyang, Ren, Siyu, Tu, Xiaobing, Wang, Yinggui, Ren, Jinkui, Zhang, Xiantao, Zhang, Linfeng
–arXiv.org Artificial Intelligence
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 To address this problem, we introduce OnPolicy 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. 1 INTRODUCTION Continual pre-training (CPT), often referred to as mid-training in recent large language model (LLM) pipelines, has become an effective paradigm for adapting general-purpose LLMs (Grattafiori et al., 2024; Yang et al., 2025; Xu et al., 2026) to specialized domains such as mathematics and code (Gururangan et al., 2020; Ke et al., 2023). By continuing autoregressive pre-training on domainspecific corpora, models can acquire substantial domain knowledge while preserving much of their broader capability (Shao et al., 2024). In practice, CPT typically continues to optimize the standard next-token prediction (NTP) objective over pre-collected text drawn from the target domain of interest.
arXiv.org Artificial Intelligence
Nov-11-2026
- Country:
- North America > United States (0.68)
- Genre:
- Research Report > Experimental Study (0.34)
- Industry:
- Education (0.48)
- Technology: