arXiv:2610.23306cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.23306

SimOPD: Relational Knowledge Transfer for On-Policy Distillation

Kai Tang, Xing Zheng, Haobo Wang, Guangcheng Zhu, Shenzhi Yang, Zhengqing Zang, Yingfan Ma, Bowen Song, Weiqiang Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

A key challenge in on-policy distillation (OPD) is extracting effective supervision from teacher knowledge. Supervision from token probabilities may underutilize internal knowledge, while direct hidden-state matching forces the student to shift to the teacher's feature space and complicates cross-architecture transfer. Inspired by contrastive learning's use of relationships between instances, we propose SimOPD to transfer teacher internal knowledge through response similarities. Specifically, SimOPD uses paired memory banks of student-generated responses to extract supervision from the teacher's internal representations as similarity distributions. The student then matches these distributions within its own representation space, retaining representational freedom and removing the need for cross-model projection. Extensive experiments show that SimOPD improves the overall average over the strongest baselines by up to 2.6 and 3.1 percentage points in same- and cross-architecture settings.

1 Introduction

Large language models (LLMs) have achieved remarkable success (Guo et al., 2025; Achiam et al., 2023), demonstrating strong generalization across diverse tasks and domains (Brown et al., 2020). To further adapt these capabilities to downstream requirements, post-training typically employs supervised fine-tuning (SFT) and reinforcement learning (RL) (Ouyang et al., 2022; Chung et al., 2024; Guo et al., 2025). However, SFT relies on fixed demonstrations and can suffer from training–inference mismatch (Yan et al., 2026), whereas RL commonly relies on sparse outcome rewards (Shao et al., 2024). To address these limitations, on-policy distillation (OPD) trains on responses sampled from the student's current policy, using a frozen teacher to provide dense token-level su-

Figure

Figure 1: Comparison of different on-policy distillation paradigms.

pervision (Agarwal et al., 2024). This combination of on-policy learning and dense feedback has driven growing adoption of OPD in LLM post-training (Yang et al., 2025; Xu et al., 2026).

Within this paradigm, the central question is how to extract effective supervision from the teacher's knowledge. Recent work has sought to improve token-level supervision. For example, ExOPD (Yang et al., 2026b) strengthens teacher rewards relative to KL regularization, PowerOPD (Zhao et al., 2026) uses power-transformed probabilities to construct bounded rewards, and OPD 2^{2} (Heo et al., 2026) derives supervision from log-probability differences between a reasoning-tuned teacher and its base model. Despite these refinements, these methods still derive supervision from next-token probabilities, which can not fully convey the knowledge encoded in the teacher's internal representations. OPRD (Yang et al., 2026a) therefore extends on-policy distillation to hidden-state supervision, matching normalized teacher and student representations along student-generated trajectories. However, direct

∗^{*}Corresponding author.

matching faces two limitations. First, differences in hidden dimensions and representation spaces complicate its application across architectures. OPRD-Bridge addresses this through a learned projection and a separate calibration stage. Second, even when representations are comparable, direct matching tightly couples the student's representations to the teacher's feature space, forcing the student to conform to the teacher's encoding and restricting its representational flexibility. These limitations motivate a different way to extract supervision from teacher representations, without tying knowledge transfer to agreement between hidden states.

Contrastive learning offers a useful perspective: representations can be learned through similarities and differences between instances (He et al., 2020; Le-Khac et al., 2020; Liu and Liu, 2021). Inspired by this perspective, we view the teacher-defined relationships between student-generated responses as a source of supervision. Our insight is that teacher representations characterize not only individual problem-response pairs, but also how these instances relate to one another (Huh et al., 2024). These relationships provide a target for knowledge transfer while allowing the student to retain its own feature encoding. In the on-policy setting, we construct this supervision over responses sampled from the student's current policy, guiding the student to preserve the teacher-defined similarity structure within its own representation space.

To realize this idea, we propose Similarity-based On-Policy Distillation (dubbed SimOPD), which transfers teacher internal knowledge through relationships between student-generated responses. We maintain two queues: one stores teacher representations of past responses, and the other stores student representations of those same responses in the same order. For a newly generated response, each model compares its current representation with the stored representations in its own queue. This produces a similarity distribution describing how the current response relates to each past response. Since corresponding queue entries represent the same response, the teacher and student similarity distributions can be directly compared despite differences in their feature spaces. We train the student to match the teacher's distribution and add the current representation pair to the queues for subsequent comparisons. In this way, SimOPD exploits teacher internal knowledge beyond token probabilities, while preserving the student's representational freedom. Extensive experiments on mathematical reasoning and code generation show that our work improves overall average performance over the strongest baseline by 2.6% and 3.1% in same-and cross-architecture settings respectively.

References (27)