# Beyond Passive Imitation: On-Policy Mid-Training Distillation for Language Models

DevFeed: [Beyond Passive Imitation: On-Policy Mid-Training Distillation for Language Models](<https://devfeed.tech/articles/beyond-passive-imitation-on-policy-mid-training-distillation-for-language-models-128764.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.13855>)

Author: Ruize Zheng, Xuyang Liu, Siyu Ren, Xiaobing Tu, Yinggui Wang, Jinkui Ren, Xiantao Zhang, Linfeng Zhang

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [qwen](<https://devfeed.tech/topics/qwen.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [domain](<https://devfeed.tech/tags/domain.md>), [inference](<https://devfeed.tech/tags/inference.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llms](<https://devfeed.tech/tags/llms.md>), [math](<https://devfeed.tech/tags/math.md>), [model](<https://devfeed.tech/tags/model.md>), [next-token-prediction](<https://devfeed.tech/tags/next-token-prediction.md>), [ntp](<https://devfeed.tech/tags/ntp.md>), [offline](<https://devfeed.tech/tags/offline.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [policy](<https://devfeed.tech/tags/policy.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [query](<https://devfeed.tech/tags/query.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

Continual pre-training with next-token prediction can have model-dependent effects: on the same 1B-token math corpus, it improved Llama-3.2-3B's math benchmark performance but degraded Qwen3-1.7B-Base's. On-Policy Mid-Training Distillation (OPMD) addresses this by sampling student-policy trajectories at selected anchor positions and applying dense token-level reverse-KL rewards from a frozen teacher, training on states the student visits rather than only ground-truth prefixes. On MATH-500 and Minerva, OPMD improved the Qwen student over its base performance and outperformed the evaluated NTP baseline, which degraded on both. The abstract says OPMD adds no inference-time overhead and can fit into CPT pipelines.

## Source excerpt

arXiv:2611.13855v1 Announce Type: cross 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.