arXiv:2610.25359cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25359

CD-OPD: Contextual Digest for On-Policy Distillation

Mingyuan Li, Yucheng Li, Xiaxia Wang, Gong Cheng

ABSTRACT

Teacher takeover in on-policy distillation (OPD) can produce incorrect responses even when the student and teacher independently answer the same problem correctly, a failure we quantify using Collaboration Failure Rate (CFR). To address it, we propose Contextual Digest for On-Policy Distillation (CD-OPD). CD-OPD structures the earlier context of teacher guidance through a teacher-generated dependency graph, curating the required problem conditions and preceding reasoning as node summaries alongside the unchanged guidance in a Contextual Digest before student continuation. We further develop online meta-reweighting, which compares Digest segment gradients with a task gradient from independent student responses to improve student-only performance, favoring updates predicted to reduce task loss. Across eight benchmarks, CD-OPD improves average accuracy by 1.32–7.05 percentage points over representative existing OPD methods. It also reduces CFR by 27.4%–56.4% relative to existing takeover-based OPD methods.

1 Introduction

Knowledge distillation (KD) trains a smaller student model with supervision from a larger teacher model to reduce inference costs (Hinton et al., 2015). For language generation and reasoning, teacher-generated responses and rationales can serve as training targets (Kim and Rush, 2016; Hsieh et al., 2023). To reduce the distribution mismatch between teacher-generated training responses and student-generated

Figure

(a) Accuracy comparison

(b) CFR comparison

Figure 1: Accuracy and CFR under teacher takeover (1,024 mathematical problems randomly sampled from our local copy of DAPO-Math-17k-dedup; student: Qwen3-1.7B; teacher: Qwen3-4B-Instruct-2507; accuracy reported as mean@4).

responses at inference time, on-policy distillation (OPD) trains on responses sampled from the current student policy. At each token position, the teacher takes the problem and preceding student-generated tokens as input and provides its next-token probability distribution as supervision (Song and Zheng, 2026; Yu et al., 2026; Zhao et al., 2026).

However, such a teacher evaluates the sampled response without revising it, so its supervision can remain conditioned on prefixes containing earlier reasoning errors (Li et al., 2026; Fu et al., 2026; Zhang et al., 2026). To provide corrections during generation, teacher takeover allows the teacher to generate a continuation from a student-generated prefix before the student resumes; the combined response is used for distillation (Koo et al., 2025; Xu et al., 2026). A key design choice in teacher takeover is when to intervene. We consider two representative strategies. Fixed-prefix takeover begins at a predetermined student-prefix length (Li et al., 2026). Reflection-triggered takeover instead compares the teacher's and student's next-token predictions at the same prefix. The teacher takes over when its most probable next token is a reflection token (e.g., Wait), while the student's top-K predictions contain no reflection tokens (Xu et al., 2026). Both strategies determine when

A PREPRINT

Figure

Figure 2: Comparison of independent student and teacher responses, takeover-based OPD, and CD-OPD.

the teacher intervenes, but the final response also depends on how the student continues after teacher guidance; if the student misapplies the guidance, the intervention may be ineffective or even misleading. We observe incorrect takeover responses even when the student and teacher independently answer the same problem correctly. Overall accuracy gains may obscure these failures.

To uncover this failure mode, we define Collaboration Failure Rate (CFR) as the proportion of incorrect takeover responses among cases where the corresponding student-only and teacher-only responses are both correct. Figure 1 compares accuracy and CFR for fixed-prefix takeover (Vanilla Takeover-based OPD) and reflection-triggered takeover (Relay-OPD), with the takeover length L ranging from one to six teacher-generated segments. Across these lengths, Relay-OPD achieves higher accuracy and lower CFR than Vanilla Takeover-based OPD, yet its CFR of 17.5%–23.2% corresponds to roughly one counterproductive takeover response in every five cases with correct student-only and teacher-only responses. Increasing the takeover length does not consistently reduce CFR: from L = 5 to L = 6, Relay-OPD's reported accuracy remains at 41.8%, while CFR rises from 17.5% to 20.4%. These findings motivate assessing collaboration failures separately from overall accuracy and examining how the student effectively uses teacher guidance during continuation. Figure 2 illustrates a collaboration failure of the kind measured by CFR. The problem asks for the original number x. Both the student-only and teacher-only responses correctly obtain x = 3 (Figure 2(a)). Under takeover-based OPD, the student prefix defines u=x+2u = x + 2 and expresses the given condition as u(u+1)=30u(u + 1) = 30. The teacher factors the equation as (u−5)(u+6)=0(u - 5)(u + 6) = 0 and correctly obtains u = 5 (Figure 2(b)). The student then mistakenly reports x = 5, treating the value of u as the original number. This example shows a failure to use existing context despite correct teacher guidance: the student does not apply the definition u=x+2u = x + 2, already recorded in its prefix, to recover x from the teacher's result.

To address this failure mode, we propose Contextual Digest for On-Policy Distillation (CD-OPD). A teacher-generated dependency graph selects problem conditions and preceding reasoning for summarization under the current guidance in a Contextual Digest. The Digest incorporates the teacher's corrections and is inserted after the guidance, before the student resumes (Figure 2(c)). A Digest segment that aids continuation need not improve independent reasoning when emphasized during training. We therefore develop online meta-reweighting to favor Digest-segment OPD updates predicted to reduce student-only task loss. During training, we determine segment weights by comparing segment gradients from takeover-based responses with a task gradient from separate student-only training responses.

Our contributions are twofold.

• We introduce CFR to measure the rate of incorrect takeover responses among cases where both the student-only and teacher-only responses are correct. Our analysis reveals collaboration failures that persist despite the overall accuracy gains of teacher takeover.

• We propose CD-OPD, which uses a teacher-generated dependency graph to condense the existing context and current teacher guidance into a Contextual Digest before student continuation, helping the student apply the guidance using relevant earlier context. Online meta-reweighting uses the task gradient and segment gradients to weight each Digest segment’s OPD loss, favoring

A PREPRINT

updates expected to improve student-only performance.

Our code is publicly available at https://anonymous.40pen.science/r/CD-OPD-291D/.

References (36)