On the Generalization Limitation of On-Policy Distillation for Post-RL Consolidation

Yichen Wang1,*, Yufa Zhou2, Siqi Zhu3, Haozheng Luo4, Jingzhi Bao3, Zhichao Liu5, Zijun Wei5
1University of Chicago, 2Duke University, 3UIUC, 4Northwestern University, 5ByteDance
*This work was conducted at ByteDance.

Abstract

Multi-teacher on-policy distillation (MOPD) extends on-policy distillation (OPD) to consolidate capabilities from multiple teachers. Although prior work reports near-perfect in-distribution (IND) distillation performance, we find that such performance can mask incomplete capability consolidation beyond the supervised distribution. A preliminary synthetic reasoning study shows incomplete transfer of teacher generalization. We then experiment on real-world extrapolative and compositional generalization across mathematical reasoning, coding, agent, and long-context capabilities using Qwen3 models. Across extrapolative settings, OPD and MOPD reach 96.04-102.73% of their teachers’ mean IND scores, yet their mean out-of-distribution (OOD) scores remain 2.45-16.25% below the base. Across three compositional settings, MOPD improves mean IND performance by 0.48-22.46% over the base but remains 18.19-24.34% below the best teachers on composed tasks. We analyse teacher capability and data coverage as two potential bottlenecks, where jointly easing them eliminates OOD forgetting in our experiments and shows potential for generalization beyond the teacher. Moreover, relative to their RL baselines, OPD and MOPD reduce OOD forgetting on average. Geometry analysis finds more compact OPD and MOPD updates on average than those of their RL baselines, along with greater shared update structure under MOPD. Based on the analysis, we propose geometry-based patching and base-preserving replay to improve OOD performance while retaining most IND performance. Our findings identify a blind spot in capability consolidation via MOPD and motivate distillation algorithms that explicitly support OOD retention and generalization.

Preliminary Study: Strong IND Performance Leaves an OOD Gap

OPD can achieve near-perfect IND distillation within relatively few training steps [40, 41]. Yet grokking shows that generalization can emerge long after a model fits its training data [50]. This motivates asking whether rapid IND convergence in OPD is accompanied by transfer of the teacher’s generalization. We examine this question in a controlled synthetic mathematical reasoning study.

Findings. Figure 1 shows near-perfect IND distillation alongside incomplete OOD transfer. While the distillation ratio of OPD is approximately 96-104% on pretraining IND and 93-96% on post-training IND, it falls to 76-86% on OOD problems. Thus, when the teacher generalizes beyond the supervised range, OPD does not fully transfer that generalization despite strong IND performance. This motivates testing whether the same limitation persists when consolidating capabilities on real-world tasks, where useful behavior can extend far beyond narrow distillation data and require distinct capabilities together.

Figure 1 Near-perfect IND distillation leaves an OOD transfer gap. The distillation ratio is (s_student − s_base) / (s_teacher − s_base), where s is acc@1 at each operation count. Pretraining IND covers 2-10 operations, post-training IND covers 11-14, and OOD covers 15-17. The dashed line marks complete transfer of the teacher’s improvement over the base.
Figure 1 Near-perfect IND distillation leaves an OOD transfer gap. The distillation ratio is (sstudent − sbase) / (steacher − sbase), where s is acc@1 at each operation count. Pretraining IND covers 2-10 operations, post-training IND covers 11-14, and OOD covers 15-17. The dashed line marks complete transfer of the teacher’s improvement over the base.

Strong IND Performance Does Not Ensure Extrapolative Generalization

We examine whether near-perfect IND distillation yields extrapolative generalization in mathematical reasoning, using self-RL specialist teachers and external generalist teachers.

Overall findings. Across both teacher setups, near-perfect IND distillation coexists with OOD forgetting. OPD and MOPD reduce average forgetting relative to the self-RL teachers and mixed RL, respectively, but still fall below the base on OOD evaluations.

Figure 2 Near-perfect IND distillation does not ensure OOD retention. Within each panel, benchmarks are arranged from IND on the left to OOD on the right. On most OOD evaluations, OPD performance (purple solid lines) lies between the base (gray dashed lines) and the corresponding teacher (gray solid lines), indicating reduced but persistent forgetting. In this experiment, teachers themselves also exhibit OOD forgetting, scoring below the base. § 5.2 further shows that OPD forgetting persists even with an external generalist teacher that outperforms the base on OOD. The self-RL specialists and their OPD students share a common base. AIME scores report avg@8.
Figure 2 Near-perfect IND distillation does not ensure OOD retention. Within each panel, benchmarks are arranged from IND on the left to OOD on the right. On most OOD evaluations, OPD performance (purple solid lines) lies between the base (gray dashed lines) and the corresponding teacher (gray solid lines), indicating reduced but persistent forgetting. In this experiment, teachers themselves also exhibit OOD forgetting, scoring below the base. § 5.2 further shows that OPD forgetting persists even with an external generalist teacher that outperforms the base on OOD. The self-RL specialists and their OPD students share a common base. AIME scores report avg@8.
Figure 3 MOPD reduces average OOD forgetting relative to mixed RL but remains below the base. Results cover all pairwise and three-teacher mixtures; AIME scores report avg@8.
Figure 3 MOPD reduces average OOD forgetting relative to mixed RL but remains below the base. Results cover all pairwise and three-teacher mixtures; AIME scores report avg@8.
Figure 4 A stronger external teacher does not eliminate OOD gaps. Qwen3-32B teaches Qwen3-8B; AIME scores report avg@8. All three figures use the same Qwen3-8B base scores.
Figure 4 A stronger external teacher does not eliminate OOD gaps. Qwen3-32B teaches Qwen3-8B; AIME scores report avg@8. All three figures use the same Qwen3-8B base scores.

Across the three distillation datasets, OPD achieves near-perfect IND distillation, reaching 99.34% of the teacher’s IND score (0.62 points below it), yet remains 3.73% below the base on OOD evaluations (2.96 points). Stronger teacher performance alone therefore does not ensure OOD transfer or retention under narrow supervision. § 7.1 further examines whether broader distillation data improves these outcomes.

Component Improvements Do Not Ensure Compositional Generalization

Overall findings. Across the three settings, MOPD improves IND performance by 9.24% over the base (3.97% below the corresponding teachers), but remains 23.82% below the best teachers on composed tasks (Figures 5 to 7). Mixed RL shows a similar compositional gap (26.10%); MOPD’s mean composed-task score is 3.08% (1.07 percentage points) higher than mixed RL’s.

Code and Agent. Coding and tool-use supervision improves SWE-bench Verified from the base’s 6.63 to 8.05, above mixed RL (7.79) but below the shared teacher (9.84; Figure 5). MOPD also improves over the base on all component benchmarks except HumanEval+.

Figure 5 Compositional generalization to agentic coding: MOPD reaches 96.6% of the teacher’s mean IND score but remains 18.2% below the shared teacher OOD on SWE-bench Verified. IND scores average HumanEval, HumanEval+, and BFCL-v4 Non-live/Live. MOPD outperforms mixed RL on SWE-bench Verified and three of four IND evaluations.
Figure 5 Compositional generalization to agentic coding: MOPD reaches 96.6% of the teacher’s mean IND score but remains 18.2% below the shared teacher OOD on SWE-bench Verified. IND scores average HumanEval, HumanEval+, and BFCL-v4 Non-live/Live. MOPD outperforms mixed RL on SWE-bench Verified and three of four IND evaluations.

Math and Long Context. MOPD improves LongBench-v2 from 40.50 to 56.20 and GSM8K from 83.40 to 95.53, yet the composed-task outcomes diverge (Figure 6). DocMath improves from 55.38 to 60.63, whereas GSM-Infinite falls from 50.88 to 49.75; both remain below the best teacher. MOPD nevertheless outperforms mixed RL on all displayed benchmarks.

Figure 6 Compositional generalization to long-context math: MOPD reaches 96.0% of the teachers’ mean IND score but remains 24.3% below the best teacher on composed tasks. IND scores average LongBench-v2 and GSM8K; composed scores average GSM-Infinite and DocMath. MOPD outperforms mixed RL on all displayed benchmarks. GSM-Infinite uses the 8K mini800 subset; DocMath uses test-mini.
Figure 6 Compositional generalization to long-context math: MOPD reaches 96.0% of the teachers’ mean IND score but remains 24.3% below the best teacher on composed tasks. IND scores average LongBench-v2 and GSM8K; composed scores average GSM-Infinite and DocMath. MOPD outperforms mixed RL on all displayed benchmarks. GSM-Infinite uses the 8K mini800 subset; DocMath uses test-mini.

Code and Long Context. MOPD improves all three component benchmarks, yet LongBench-v2 Code remains at the base’s 44.00, below both teachers (50.00 and 58.00; Figure 7). Mixed RL raises this composed-task score to 46.00 but lowers the LongBench-v2 component score from 40.50 to 38.84, illustrating a trade-off between component retention and composed-task performance.

Figure 7 Compositional generalization to long-context code: MOPD reaches 95.5% of the teachers’ mean IND score but remains 24.1% below the best teacher on LongBench-v2 Code. IND scores average LongBench-v2, HumanEval, and HumanEval+. MOPD outperforms mixed RL on long context, but scores lower on coding and the composed task.
Figure 7 Compositional generalization to long-context code: MOPD reaches 95.5% of the teachers’ mean IND score but remains 24.1% below the best teacher on LongBench-v2 Code. IND scores average LongBench-v2, HumanEval, and HumanEval+. MOPD outperforms mixed RL on long context, but scores lower on coding and the composed task.

The code plus agent, math plus long-context, and code plus long-context evaluations show a compositional generalization limitation: a student can acquire improvements on separately supervised capabilities without obtaining the expected performance when those capabilities must be combined.

Teacher Capability and Data Coverage Contribute to OOD Gaps

Under narrow supervision, students can remain below the base on OOD evaluations with either self-RL specialists (§ 5.1) or stronger external generalists (§ 5.2). Thus, stronger teacher capability alone is insufficient for OOD retention (panels a-b of Figure 8). To relax both bottlenecks (panel c), we keep Qwen3-32B as teacher and train on 90% GSM8K plus 10% OpenR1 [45]. Compared with GSM8K-only distillation, it exceeds the base on all five benchmarks. The student matches the teacher’s AIME24/25 pass@8 (86.67/83.33). On AMC23, it improves to 100.00, exceeding the teacher’s 95.00 (Figure 9).

Figure 8 Teacher capability (A) and data coverage (B) as bottlenecks. We use the flask [54] as an analogy: lower/upper vessels denote teacher/student, and neck width denotes coverage. Teal/red bars illustrate qualitative gains/losses relative to the base. (a) Vanilla: The student exhibits less OOD forgetting than its self-RL teacher but remains below the base. (b) Relax A: A stronger teacher provides positive OOD gains, yet narrow distillation data still leaves the student below the base. (c) Relax A+B: Combining the stronger teacher with broader data coverage can turn student OOD losses into gains. IND/OOD labels refer to the original narrow supervision setting.
Figure 8 Teacher capability (A) and data coverage (B) as bottlenecks. We use the flask [54] as an analogy: lower/upper vessels denote teacher/student, and neck width denotes coverage. Teal/red bars illustrate qualitative gains/losses relative to the base. (a) Vanilla: The student exhibits less OOD forgetting than its self-RL teacher but remains below the base. (b) Relax A: A stronger teacher provides positive OOD gains, yet narrow distillation data still leaves the student below the base. (c) Relax A+B: Combining the stronger teacher with broader data coverage can turn student OOD losses into gains. IND/OOD labels refer to the original narrow supervision setting.
Figure 9 Broader data eliminates OOD forgetting. With Qwen3-32B supervision and 10% OpenR1, the Qwen3-8B student matches the teacher’s AIME pass@8, surpasses it on AMC23, and exceeds the base on all five benchmarks. AIME reports pass@8; other benchmarks report accuracy.
Figure 9 Broader data eliminates OOD forgetting. With Qwen3-32B supervision and 10% OpenR1, the Qwen3-8B student matches the teacher’s AIME pass@8, surpasses it on AMC23, and exceeds the base on all five benchmarks. AIME reports pass@8; other benchmarks report accuracy.

Together, these results support considering teacher capability and data coverage jointly: a stronger teacher makes OOD capabilities available, while broader supervision helps the student retain or acquire them. Easing both bottlenecks can reduce OOD forgetting and potentially encourage further generalization.

Geometry of (M)OPD: Compact Updates and Shared Update Structure

Both OPD and MOPD produce smaller updates on average than their corresponding RL baselines (Table 1). Across the extrapolative experiments, at approximately matched IND performance, OPD’s update norm is 55.4% of RL’s (0.154 versus 0.278). For MOPD, the mean update norm is also smaller than that of mixed RL.

OPD updates are also more spectrally concentrated. OPD’s top 64 singular directions capture 69.0% of update energy, compared with 39.9% for its RL teachers.

MOPD is better explained by the single-OPD span than mixed RL is by the single-RL span. The respective spans explain 11.0-18.6% of MOPD’s squared update norm and less than 0.240% of mixed RL’s (Table 1). Using the same single-RL teacher span for both methods also yields a higher R2 for MOPD than for mixed RL. These measurements suggest that MOPD is an algorithm with more shared update structure.

Table 1 MOPD has smaller updates on average and shares more structure with corresponding single-teacher updates than mixed RL does in both generalization settings. Top: single-teacher update norms and top-64 energy. Bottom: means across the extrapolative and compositional settings; the norm ratio is MOPD/mixed RL. R2 uses the single-OPD span for MOPD and the single-RL span for mixed RL.
Single-teacher updatesRLOPD
Absolute update norm0.2780.154
Top-64 energy0.3990.690
GeneralizationNorm ratioR2 Mixed RLR2 MOPD
Extrapolative0.4770.001730.157
Compositional0.6170.0002450.121

Please note that these connections remain a preliminary interpretation; a causal link between these geometric properties and generalization has yet to be established.

Exploring Patching Methods for Mitigating OOD Gap

Since near-perfect IND distillation can coexist with an OOD performance gap, improving generalization also requires preserving capabilities beyond the training distribution. We investigate two explicit interventions: geometry-based patching after distillation and base-preserving replay during distillation.

Geometry-Based Patching

The compact, spectrally concentrated OPD updates in § 7.2 motivate post-hoc editing: OPD students can forget less than self-RL teachers at similar IND performance. We hypothesize that suppressing update components that harm OOD retention but contribute little to IND performance can reduce forgetting; these components may arise from optimization noise.

Figure 10 Procrustes-attention patching (α = 0.40) raises AIME25 avg@8 from 60.83% to 65.00%, leaving a 0.83-point gap to the base. GSM8K accuracy is 93.48%, compared with the RL teacher’s 95.30%.
Figure 10 Procrustes-attention patching (α = 0.40) raises AIME25 avg@8 from 60.83% to 65.00%, leaving a 0.83-point gap to the base. GSM8K accuracy is 93.48%, compared with the RL teacher’s 95.30%.

Base-Preserving Replay

KL-regularized RLVR constrains policy drift from a reference model [52]. In contrast, the (M)OPD objectives in § 3.1 match task teachers without an explicit constraint to preserve the base model’s behavior. We hypothesize that this missing constraint contributes to OOD forgetting. Motivated by replay methods for capability preservation during RL post-training [49], we introduce base-preserving replay for (M)OPD. Base-preserving replay mixes IND examples supervised by the task teachers with additional prompts supervised by the base model, using the same OPD loss. We test coding and instruction-following data as replay sources outside the specialist’s mathematical training distribution; Figure 11 reports coding replay for the GSM8K OPD student distilled from a self-RL teacher.

Figure 11 Base-preserving replay improves five of eight OOD scores over plain OPD with a small IND change, and surpasses both the student base and RL teacher on AIME25. AIME scores report avg@8.
Figure 11 Base-preserving replay improves five of eight OOD scores over plain OPD with a small IND change, and surpasses both the student base and RL teacher on AIME25. AIME scores report avg@8.

Relative to plain OPD, coding replay improves five of eight OOD scores, including a 6.67-point increase in AIME25 avg@8 to 67.50, surpassing both the student base and RL teacher with only a 0.18-point reduction in GSM8K accuracy. These results suggest that replay can support both retention and generalization beyond the replay domain.

Further Discussion and Limitations

Limitations

Our main post-training experiments are on Qwen3-8B students, and our largest external teacher is Qwen3-32B given computation constraints. Fixing the student supports within-model comparisons, but leaves dependence on student capacity, teacher strength, and model family under-explored. Our main findings on the relative performance of MOPD and mixed RL concern the tested LLM architecture and practical post-training tasks. At the algorithmic level, this ordering need not hold for simpler models and tasks with different generalization requirements, which we additionally discuss in § 9.2.

Public datasets make our comparisons inspectable, but do not reproduce the breadth or adaptive data selection of full post-training pipelines in frontier model development. Our OOD labels are relative to post-training data, not pretraining exposure. Broader training data from the real world and held-out evaluations with graded difficulty would test generalization under more demanding conditions.

Mixed RL and MOPD both combine component recipes without extensive tuning of reward balancing, mixture weights, or curricula (§ A.1). They may not establish each objective’s best achievable performance. However, we have tuned hyperparameters for single OPD and single RL recipes to ensure optimal performance. Considering the much larger tuning space for Mixed RL and MOPD, we view this as an out-of-the-box usage and see this comparison as a fair setting.

Computational constraints prevent us from repeating every experiment with multiple sampling seeds. For mathematical reasoning, we repeat evaluation with four sampling seeds on a 10% subset of the evaluation questions and observe consistent qualitative conclusions across these checks. These checks assess variability in sampled responses; they do not establish robustness across independent training runs.

Arithmetic Study

MOPD achieves higher mean composed-task accuracy than mixed RL in our main comparisons on practical post-training tasks (§ 6), but this ordering need not hold across all possible settings. Conceptually, MOPD learns from teacher distributions without an independent correctness signal, whereas RL uses verifier feedback on its training tasks. There might be a soft bound on teacher OOD accuracy when teacher exists inaccuracy at the first place, which might be harder for MOPD to generalize beyond either teacher.

Figure 12 Mixed warm RL can surpass MOPD on held-out arithmetic compositions. The training dynamics show min(AB accuracy, BA accuracy) (%). MOPD uses SFT or warm-RL teachers with reverse or forward KL; all MOPD students start from the pretrained base. Shading marks mixed warm RL’s 100-step SFT warmup (which contributes to better performance than direct RL).
Figure 12 Mixed warm RL can surpass MOPD on held-out arithmetic compositions. The training dynamics show min(AB accuracy, BA accuracy) (%). MOPD uses SFT or warm-RL teachers with reverse or forward KL; all MOPD students start from the pretrained base. Shading marks mixed warm RL’s 100-step SFT warmup (which contributes to better performance than direct RL).

These results reveal that, considering different model architectures, task learnability, interference between tasks, etc., there can be different balances between component performance and compositional generalization. Isolating their effects across architectures and training objectives remains future work. Our main conclusions concern the LLMs and practical post-training tasks studied here.

Future Work

The connection between update geometry, OOD retention, and compositional generalization remains a hypothesis. Causal tests should manipulate update directions while controlling update magnitude, training budget, and IND performance. Beyond post-hoc patching, step-level parameter-space control could project or regularize updates during training, with random-direction controls. Future work should also jointly study teacher assignment, data coverage, and base-preserving replay under a fixed budget, testing retention and further generalization beyond expanded training coverage.

BibTeX

@misc{wang2026generalization,
  title={On the Generalization Limitation of On-Policy Distillation for Post-RL Consolidation},
  author={Wang, Yichen and Zhou, Yufa and Zhu, Siqi and Luo, Haozheng and Bao, Jingzhi and Liu, Zhichao and Wei, Zijun},
  year={2026},
  url={https://yichenzw.com/opd-generalization.github.io/}
}