arXiv:2610.19601cs.CLOct 2026

Manuscript Offprint

arXiv:2610.19601

PA1-OPD: One-Step Prefix-Augmented On-Policy Distillation for Language Model Pretraining

Zhenhe Wu, Jian Yang, Yaping Jin, Xinlai Kang, Jie Hu, Hanting Chen

Abstract

Knowledge distillation (KD) improves language-model pretraining by matching teacher distributions at corpus prefixes, but provides no direct supervision at contexts induced by student predictions. We introduce PA1-OPD, which augments corpus-path distillation with teacher feedback after one student-sampled transition per selected prefix. This expands the supervised states while retaining next-token prediction and corpus-path KD. Data-anchored roots support parallel sampling, and differentiable tree attention shares prefix computation without changing inference. In two continued-pretraining settings, full coverage improves held-out cross-entropy over KD across C4, PG-19, and Pile at every evaluated checkpoint. In Stage2, selecting the 10% of roots with highest student surprisal adds 48.85% to KD's Macro cross-entropy gain over next-token training. Gains remain when branch supervision excludes successor states already on the corpus path, supporting the value of feedback beyond observed contexts. Additional depth or breadth improves aggregate results at unchanged per-term supervision weight, with benefits varying by corpus. These findings support local student-induced supervision as a complement to pretraining distillation.

1 Introduction

Knowledge distillation (KD) enriches pretraining with a teacher's predictive distributions beyond observed next-token targets (Hinton et al., 2015). Conventional pretraining KD applies these targets at corpus prefixes. Student predictions can induce different contexts, leaving their successor states without direct supervision. Beyond the choice of distillation loss, this raises the question of which prediction states should receive teacher feedback.

On-policy distillation learns from student-generated trajectories (Ross et al., 2011; Agarwal et al., 2024; Gu et al., 2024). For pretraining, corpus prefixes provide many roots from which to sample student transitions. Even one sampled token creates a successor state with a new teacher target. This allows us to test whether local feedback beyond the corpus trajectory improves KD without generating complete continuations.

We propose PA1-OPD, one-step prefix-augmented on-policy distillation (Figure 1). At each selected corpus prefix, the current student samples one token. Both models consume it, and the teacher supervises the student's next-token distribution at the resulting successor state. This branch objective complements next-token prediction and corpus-path KD. Its on-policy component is local: the transition follows the current student, while its root remains anchored to observed data.

Data-anchored roots support parallel sampling across positions, and tree attention shares their prefixes while keeping branches independent. Differentiable student prefixes retain branch gradients; coincident-state reuse avoids reevaluating corpus states; and chunked KL reduces temporary probability storage. Student-surprisal selection controls where feedback is applied. These operations leave the student architecture and inference unchanged.

We evaluate two OLMo2 continued-pretraining settings. Full coverage improves on KD across all three evaluation corpora in both settings. In Stage2, selecting 10% of roots adds 61.60%, 22.24%, and 57.12% to KD's CE gains over next-token training on C4, PG-19, and Pile (48.85% Macro). Gains persist without branch losses at coincident corpus states. Stage1 favors full coverage over Top10, while deeper or wider supervision improves Macro CE in both settings. These results connect the gains over KD to the allocation of branch supervision.

∗^{*}Corresponding author.

corpus token

student sample

teacher target

NTP + RealKD

Figure

[x1x2x3∣z1z2z3][x_1 x_2 x_3 | z_1 z_2 z_3]

Figure

shared real prefix branch self

Figure 1: PA1-OPD adds teacher supervision after student-sampled transitions from corpus prefixes. Tree attention shares each prefix and isolates branches. Sampling is detached; student prefix states remain differentiable.

• A pretraining objective that extends teacher supervision to local student-induced states alongside corpus-path training.

• A differentiable shared-prefix implementation that supports parallel branch supervision and preserves the sampled objective through state reuse and memory-efficient KL computation.

• Evidence of gains over corpus-path KD, with analyses of noncoincident states, root selection, and additional depth and breadth.