Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipe
Abstract
On-policy distillation (OPD) has recently emerged as an effective post-training paradigm for consolidating the capabilities of specialized expert models into a single student model. Despite its empirical success, the conditions under which OPD yields reliable improvement remain poorly understood. In this work, we identify two fundamental bottlenecks that limit effective OPD: insufficient exploration of informative states and unreliable teacher supervision for student rollouts. Building on this insight, we propose Uni-OPD, a unified OPD framework that generalizes across LLMs and MLLMs, centered on a dual-perspective optimization strategy. Specifically, from the student’s perspective, we adopt two data balancing strategies to promote exploration of informative student-generated states during training. From the teacher’s perspective, we show that reliable supervision hinges on whether aggregated token-level guidance remains order-consistent with the outcome reward. To this end, we develop an outcome-guided margin calibration mechanism to restore order consistency between correct and incorrect trajectories. We conduct extensive experiments on 5 domains and 16 benchmarks covering diverse settings, including single-teacher and multi-teacher distillation across LLMs and MLLMs, strong-to-weak distillation, and cross-modal distillation. Our results verify the effectiveness and versatility of Uni-OPD and provide practical insights into reliable OPD.111Code is available at https://github.com/WenjinHou/Uni-OPD.
†Project leader. ‡Project supervisor. 🖂Corresponding author.
1 Introduction
Injecting complex reasoning abilities, domain knowledge, and human preferences into LLMs and MLLMs remains a core challenge in the post-training stage. Conventional approaches typically follow a two-stage paradigm: supervised fine-tuning (SFT) first, followed by reinforcement learning (RL) (Guo et al., 2025a; Xu et al., 2025a; Zeng et al., 2026; Zhao et al., 2026a). While SFT leverages expert data for training, its inherently off-policy nature introduces substantial exposure bias (Qin et al., 2025; Song and Zheng, 2026). Entering rarely covered erroneous states during inference may lead to compounding errors. Alternatively, on-policy RL (e.g., GRPO (Shao et al., 2024b)) alleviates distribution shift through online sampling. However, it mainly relies on sequence-level or terminal rewards, making fine-grained credit assignment difficult and limiting the stability of long-term training (Team et al., 2026).
Recently, on-policy distillation (OPD) has emerged as a promising post-training paradigm for efficiently transferring the knowledge and capabilities of domain experts into a single, unified model. It combines the strengths of RL and SFT, namely on-policy sampling and token-level supervision. Concretely, OPD trains the student on its own sampled trajectories with teacher feedback under a reverse KL objective (Lu and Lab, 2025; DeepSeek-AI, 2026).
Despite its empirical success, current OPD research remains largely confined to LLM distillation (Zhou et al., 2025; Yang et al., 2026b; Xiao et al., 2026; Yang et al., 2026c; Wu et al., 2026). Although a few recent works extend OPD to MLLMs, they are restricted to limited subsets of tasks within a single modality, such as video (Li et al., 2026a) or speech (Cao et al., 2026). To this end, we first aim to develop a unified OPD framework for both LLMs and MLLMs, enabling effective knowledge distillation across tasks and modalities.
Key observations. Beyond unifying the framework, we raise a more fundamental question: what makes OPD a reliable optimization paradigm? We posit that effective OPD depends on two factors. First, the student must sufficiently explore informative states, i.e., diverse and appropriately difficult self-generated trajectories. Second, the teacher’s token-level supervision must remain reliable when applied to student rollouts. In particular, the reliability of token-level guidance is significantly enhanced when its trajectory-level aggregation remains order-consistent with outcome reward (i.e., correct trajectories receive higher aggregated scores than incorrect ones). The outcome reward thus provides a global anchor for calibrating unreliable teacher supervision. These observations motivate a dual-perspective optimization strategy that jointly improves student exploration and the reliability of teacher signals.
Our recipe. Building on these insights, we introduce Uni-OPD, a dual-perspective strategy for optimizing OPD from the fundamental roles of the student and the teacher. In this unified framework, we adopt two complementary data-balancing strategies, namely offline difficulty-aware and online correctness-aware balancing, to promote exploration of informative student-generated states. We further present a novel outcome-guided margin calibration mechanism to obtain reliable teacher supervision. Extensive experiments on LLMs and MLLMs verify our recipe.
To summarize, our contributions are threefold:
-
Key bottlenecks of OPD. We identify two core bottlenecks in OPD: insufficient exploration of informative states and unreliable teacher supervision for student rollouts. Our analysis reveals that reliable teacher supervision largely depends on whether token-level guidance remains order-consistent with the outcome reward.
-
Dual-perspective optimization recipe. We present a dual-perspective optimization recipe for unified OPD that jointly improves student exploration and teacher supervision. Concretely, we combine offline and online data balancing with an outcome-guided margin calibration mechanism, leading to more effective optimization.
-
Comprehensive experimental validation. We conduct extensive experiments on 5 domains and 16 benchmarks covering diverse settings, including single-teacher and multi-teacher distillation across LLMs and MLLMs, strong-to-weak distillation, and cross-modal distillation (i.e., combining text-only and multimodal tasks). Our results verify the effectiveness and versatility of Uni-OPD and provide practical insights into reliable OPD.
2 Related Work
Knowledge distillation for LLMs and MLLMs. Knowledge distillation (Hinton et al., 2015; Xu et al., 2024) aims to transfer knowledge from a larger teacher model to a smaller student model. Conventional approaches typically rely on off-policy forward Kullback–Leibler (KL) divergence on a static dataset to align the student’s generation distribution with that of the teacher (Liu et al., 2024d; Guo et al., 2025b; He et al., 2025a; Liu and Zhang, 2025; Ko et al., 2025). Another line of work treats supervised fine-tuning (SFT) on tokens generated by the teacher as an alternative off-policy distillation strategy for eliciting reasoning capabilities during LLM and MLLM post-training (Guo et al., 2025a; Zhang et al., 2025c; Bansal et al., 2025; Zhang et al., 2025b; Team et al., 2026; Xiao et al., 2026). Though effective, these off-policy methods essentially imitate the teacher’s behavior, limiting the student’s ability to surpass the teacher and making the student prone to exposure bias (Song and Zheng, 2026).
On-policy distillation. OPD (Agarwal et al., 2024; Lu and Lab, 2025) allows a superior teacher to provide feedback on the student’s on-policy trajectories. This paradigm effectively alleviates exposure bias and elevates the student’s upper performance bound. Owing to these merits, OPD has become an efficient way to merge capabilities from multiple experts into a single student model (Xiao et al., 2026; Yang et al., 2026c), as well as to support strong-to-weak distillation (Bai et al., 2025a; Zeng et al., 2026). Building on this paradigm, current studies on OPD have branched into several key directions. From the lens of the teacher, recent work explores teacher-free self-distillation paradigms (Kujanpää et al., 2024; Shenfeld et al., 2026; Zhao et al., 2026b; Hübotter et al., 2026; Ye et al., 2026; Zhang et al., 2026a; Stein et al., 2026), develops black-box OPD methods (Ye et al., 2025; Xiong et al., 2026), and facilitates distillation across different model families (Patiño et al., 2025). Complementary efforts focus on unified training frameworks (Zhang et al., 2026b) and stable optimization strategies (Jin et al., 2026; Kim and Baek, 2026; Li et al., 2026b; Xu et al., 2026) combined with RL (Yang et al., 2026a; Qu et al., 2026; Jang et al., 2026; Wang et al., 2026). Few works extend OPD to multimodal domains (Bousselham et al., 2025; Ko et al., 2026; Li et al., 2026a; Cao et al., 2026). In this work, we push OPD with a dual-perspective recipe that promotes student exploration and teacher reliability, generalizing across LLMs and MLLMs. More detailed related work is provided in the appendix E.
3 Methodology
We propose Uni-OPD, a unified framework that advances OPD across LLMs and MLLMs, as shown in Fig. 2. Our design is driven by two fundamental bottlenecks in OPD: insufficient exploration of informative student-generated states and unreliable teacher supervision for student rollouts. Uni-OPD addresses them with a dual-perspective recipe that enhances student exploration and calibrates teacher supervision to align with the outcome reward. We first introduce the preliminaries in section 3.1, followed by an overview of Uni-OPD in section 3.2. We then detail the exploration strategy in section 3.3 and the supervision calibration mechanism in section 3.4.
3.1 Preliminaries
On-policy distillation. OPD retains the on-policy nature of optimization while providing token-level credit assignment, enabling effective post-training. During training, the student policy samples its trajectories and is optimized by minimizing the reverse Kullback-Leibler (KL) divergence to the teacher policy over these samples:
| (1) |
where is the input question, is a trajectory sampled by the student, is the token at step , and is the length of the trajectory. The gradient of OPD can be derived as:
| (2) |
where denotes the prefix before step . The gradient naturally induces a token-level reward at step , analogous to standard RL:
| (3) |
This formulation provides fine-grained credit assignment signals at the token level.
Analyzing teacher supervision in OPD. As shown in Eq. 3, OPD relies on the teacher to provide fine-grained supervision for student-generated trajectories. For effective optimization, this signal should align with overall trajectory correctness. In practice, this alignment is not guaranteed and can fail in several typical ways: (a) OOD degradation: when student rollouts enter sparse or out-of-distribution regions relative to the teacher, may become noisy, disrupting the ranking between correct and incorrect trajectories. (b) Overestimation of incorrect trajectories: incorrect trajectories may receive abnormally high scores when their local token patterns align with the teacher’s high-confidence regions. (c) Underestimation of correct trajectories: correct trajectories may receive abnormally low scores when their generation paths deviate from the teacher’s dominant regions, thereby suppressing useful reasoning paths. These phenomena suggest that teacher supervision is not always reliable, motivating us to introduce an outcome reward as a global anchor for calibrating trajectory-level supervision.
3.2 The Overview of Uni-OPD
In this work, we propose Uni-OPD, a unified OPD framework that generalizes across both LLMs and MLLMs, as illustrated in Fig. 2. Formally, given expert teachers who specialize in different domains, and letting denote the weight assigned to teacher , we define the objective as:
| (4) |
This formulation provides a unified objective for both single-teacher and multi-teacher distillation by aggregating supervision from multiple experts. Building on this objective, we optimize OPD from the two fundamental roles. From the student’s perspective, we introduce a data-balancing strategy that promotes exploration via offline difficulty-aware and online correctness-aware selection. From the teacher’s perspective, we develop an outcome-guided margin calibration mechanism to correct unreliable token-level supervision by enforcing consistency with outcome rewards. These designs stabilize optimization and improve the reliability of OPD.
3.3 Joint Offline and Online Data Balancing Strategy for Student Exploration
From the student’s perspective, sufficient diversity and an appropriate level of difficulty in the generated trajectories are essential for effective OPD. To this end, based on our empirical study, we propose complementary data-balancing strategies for both offline data construction and online sampling.
Offline difficulty-aware data balancing. A prevalent practice in RL is to estimate prompt difficulty via multiple rollouts and then filter out samples that are either overly easy (i.e., always correct) or overly hard (i.e., always incorrect) (An et al., 2025; Zhou et al., 2023a). However, for small-scale models, training data often exhibits a mirrored J-shaped or U-shaped distribution (see Fig. 3). Strictly removing these easy or hard samples can substantially reduce data diversity and limit exploration of informative student-generated states. Our empirical findings show that such filtering leads to substantial performance degradation in OPD.
Based on this observation, we adopt a difficulty-aware balancing strategy that selectively upsamples mid-difficulty samples (i.e., correct in only some of multiple rollouts). As shown in Fig. 3, this strategy reshapes the data distribution into a more uniform form while preserving both diversity and difficulty. In addition, it consistently improves performance on math reasoning and code generation. Overall, these results show that maintaining data diversity and a balanced difficulty spectrum enables the student to generate more informative trajectories, thereby exploring a broader solution space.
Online correctness-aware data balancing. After applying offline difficulty-aware balancing, we further observe that insufficient exploration can cause the model to collapse to local optima during training, especially when rollout groups lack sufficient outcome diversity (e.g., only incorrect trajectories). To mitigate this issue, we explicitly enforce a balanced composition of correct and incorrect trajectories within each rollout group during training. This prevents degenerate cases in which all samples share the same outcome and thus yield uninformative gradients. By maintaining such a balance, we ensure that the student consistently receives meaningful contrastive signals for stable on-policy learning. As shown in Fig. 4, an appropriate outcome balance achieves better performance than using only correct samples or an excessively high correct/incorrect ratio.
3.4 Outcome-guided Margin Calibration for Teacher Supervision
A basic premise of OPD is that the teacher exhibits a directional likelihood preference over positive and negative trajectories. In particular, relative to the student, the teacher should assign higher likelihood to correct trajectories and lower likelihood to incorrect ones. Under this premise, the resulting distillation signal should remain consistent with outcome-level correctness at the trajectory level. We next formalize this principle through a trajectory-level distillation return and develop an outcome-guided calibration strategy based on it.
Trajectory-level distillation return. To characterize the overall supervision signal along a rollout trajectory, we define the trajectory-level distillation return as the average log-probability gap between the teacher and the student:
| (5) |
This quantity measures the teacher’s average log-likelihood preference over the student along trajectory . When , the teacher assigns higher confidence than the student on average, encouraging the student to move toward this trajectory. Conversely, when , the student is discouraged from moving toward this trajectory. The normalization by trajectory length ensures comparability across trajectories of different lengths.
Order consistency as a trajectory-level criterion. For a given question , let denote the outcome reward of a sampled trajectory , where indicates that the final answer in is correct for question , and otherwise. We then define the positive and negative trajectory sets as:
| (6) | ||||
| Following the trajectory-level bandit formulation in (Ouyang et al., 2022), we treat the prompt as the context and the entire generated trajectory as a macro-action. Under this view, the associated outcome reward naturally serves as a one-step trajectory-level return, denoted as . Therefore, the outcome-level RL return induces the following oracle ordering: | ||||
| (7) | ||||
| The derivation process is provided in section A.3. This motivates a trajectory-level reliability criterion for OPD. Under the distillation premise, the trajectory-level distillation return should preserve the same outcome-induced ordering as . Specifically, for any prompt , we expect: | ||||
| (8) | ||||
Teacher supervision may violate ordering. In practice, however, the teacher’s supervision is not always reliable. As discussed in section 3.1, teacher scoring may degrade in sparse out-of-distribution regions, overestimate incorrect trajectories, or underestimate correct ones due to spurious local patterns. Such failures may persist even after token-level supervision is aggregated to the trajectory level. A mean-based criterion is therefore insufficient, since the mismatch is often concentrated in a few extreme samples: a single overly confident negative trajectory or a severely underestimated positive trajectory can already distort the supervision signal for the entire prompt group.
Outcome-guided margin calibration. Based on the above analysis, during OPD training, the constraint in Eq. 8 should hold between positive and negative trajectories within each prompt. To this end, we consider the margin between the lowest-scoring correct trajectory and the highest-scoring incorrect trajectory, which directly characterizes whether the ordering is violated in the most adversarial case. We define the prompt-level margin as
| (9) |
By construction, indicates strict order consistency on prompt , since even the worst positive trajectory still outperforms the best negative one (see Fig. 5). Thus, means that all positive trajectories are ranked above all negative ones for prompt . To improve robustness, we further require:
| (10) |
where defines a safety margin against estimation noise and finite-sample fluctuations. Since and are determined by outcome rewards, this criterion uses the outcome signal as a global anchor to calibrate the teacher’s trajectory-level scores. This formulation enables direct interventions on the margin, allowing us to suppress ordering violations or enlarge the separation between positive and negative trajectories.
Margin calibration strategy. Based on Eq. 10, we present two calibration strategies: margin mask and margin shift. Specifically, the margin mask keeps only the prompt groups satisfying and discards the rest, so that training is performed only with reliable supervision. Margin shift instead repairs an unreliable group with the smallest additive correction. For groups with , we define:
| (11) |
This shift preserves the relative ordering within and guarantees
| (12) |
In this way, margin shift restores outcome-consistent ordering with a minimal group-level correction, while margin mask provides a more conservative alternative when the supervision signal is too unreliable to calibrate.
| Method | Math Reasoning | Code Generation | |||||||
| AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. | Human Eval+ | MBPP+ | LCB | Avg. | |
| Student (4B) | 23.0 | 19.3 | 12.3 | 9.2 | 15.9 | 77.4 | 65.3 | 17.7 | 53.5 |
| Teacher (RL) | 60.1 | 55.1 | 32.5 | 38.5 | 46.6 | 85.2 | 69.8 | 26.6 | 60.5 |
| Single–Teacher Distillation | |||||||||
| ExPO | 58.7 | 55.2 | 32.4 | 37.0 | 45.8 | 84.8 | 70.2 | 28.0 | 61.0 |
| OPD | 57.9 | 52.4 | 30.2 | 37.8 | 44.6 | 82.6 | 68.8 | 25.7 | 59.0 |
| ExOPD | 62.7 | 56.1 | 33.9 | 39.3 | 48.0 | 86.9 | 70.7 | 28.6 | 62.1 |
| Uni-OPD | 63.3 | 57.0 | 34.8 | 39.8 | 48.7 | 88.3 | 71.6 | 29.7 | 63.2 |
| Multi–Teacher Distillation | |||||||||
| SFT | 58.5 | 53.3 | 30.7 | 34.8 | 44.3 | 86.4 | 69.6 | 26.4 | 60.8 |
| ExPO | 57.5 | 54.5 | 31.7 | 36.3 | 45.0 | 86.7 | 72.0 | 29.0 | 62.6 |
| OPD | 60.9 | 55.2 | 33.4 | 38.3 | 47.0 | 86.3 | 70.9 | 23.4 | 60.2 |
| ExOPD | 61.0 | 56.0 | 34.4 | 39.2 | 47.7 | 86.3 | 70.6 | 29.0 | 62.0 |
| Uni-OPD | 62.3 | 57.2 | 34.9 | 39.6 | 48.5 | 88.0 | 72.6 | 30.1 | 63.6 |
4 Experiments and Analysis
In this section, we conduct comprehensive experiments across both textual and multimodal domains to evaluate the effectiveness of Uni-OPD. We first detail the experimental configurations (section 4.1). Subsequently, we assess how the proposed recipe improves OPD performance across diverse distillation scenarios for LLMs and MLLMs, including single-teacher and multi-teacher distillation (section 4.2), strong-to-weak distillation (section 4.3), and cross-modal distillation (section 4.4). Finally, we provide a rigorous ablation study to further analyze the core strategies of our method (section 4.5).
4.1 Experimental Setup
| Method | Math Reasoning | Logic Reasoning | Document Understanding | ||||||||||
| Math | Dyna | We | Avg. | LogicVista | LogicVista | Visu | Avg. | AI2D | Chart | Doc | Info | Avg. | |
| Vision | Math | Math | Accuracy | Format | Logic | QA | VQA | VQA | |||||
| Student (4B) | 33.8 | 62.2 | 67.5 | 54.5 | 49.9 | 66.4 | 25.1 | 47.0 | 81.7 | 73.5 | 94.9 | 79.8 | 82.5 |
| Teacher (RL) | 47.2 | 65.3 | 79.5 | 64.0 | 52.5 | 73.8 | 27.4 | 51.2 | 82.5 | 76.4 | 95.1 | 81.6 | 83.9 |
| Single–Teacher Distillation | |||||||||||||
| OPD | 47.5 | 64.8 | 77.5 | 63.3 | 49.8 | 73.0 | 26.1 | 49.6 | 82.4 | 75.4 | 95.2 | 81.4 | 83.6 |
| Uni-OPD | 47.8 | 65.4 | 78.3 | 63.9 | 53.1 | 73.8 | 28.2 | 51.7 | 82.6 | 75.8 | 95.2 | 81.2 | 83.7 |
| Multi–Teacher Distillation | |||||||||||||
| OPD | 41.0 | 60.9 | 71.7 | 57.9 | 51.3 | 72.3 | 26.3 | 50.0 | 82.6 | 75.0 | 95.1 | 81.3 | 83.4 |
| Uni-OPD | 45.5 | 62.3 | 76.1 | 61.0 | 54.0 | 75.2 | 27.5 | 52.5 | 83.0 | 75.7 | 95.3 | 81.6 | 83.9 |
Models. We conduct experiments on the Qwen3 family (Yang et al., 2025; Bai et al., 2025a). For textual experiments, we use Qwen3-4B and Qwen3-1.7B as student models. In the same-sized setting, we apply domain-specific RL to Qwen3-4B to obtain specialized teachers. In the strong-to-weak setting, we use Qwen3-30B-A3B-Instruct-2507 as the strong teacher. For multimodal experiments, we use Qwen3-VL-2B-Instruct and Qwen3-VL-4B-Instruct as student models, and obtain multimodal teachers through domain-specific RL. Detailed training setups are in section B.1.
Training datasets. We use task-specific training data to construct and distill specialized teachers. For textual tasks, we use 57K math reasoning samples filtered from DeepMath (He et al., 2025b) (difficulty level ) and 25K code generation samples from the Code subset of Eurus-2-RL-Data (Cui et al., 2025). For multimodal tasks, we use math reasoning, logic reasoning, and document understanding data mainly from OpenMMReasoner-RL-74K (Zhang et al., 2025b). Detailed training data configurations are provided in section B.2.
Baselines. We compare Uni-OPD against several representative baselines for LLM distillation: (1) SFT, which performs supervised fine-tuning on teacher-generated trajectories via cross-entropy loss; (2) ExPO (Yang et al., 2026b), a weight-space extrapolation method that merges domain-specific teachers and extrapolates their weights relative to the student model; (3) ExOPD, a reward-level extrapolation approach that scales the reward factor () to enable the student to surpass the performance boundaries of its teachers. For MLLM experiments, since OPD remains largely underexplored in this setting, we use vanilla OPD as the primary baseline.
Evaluation benchmarks. We evaluate Uni-OPD on a comprehensive benchmark suite spanning textual and multimodal capabilities, organized along five capability axes: Textual Math Reasoning: AIME24 (AI-MO, 2024), AIME25 (OpenCompass, 2025), HMMT25 (February and November) (Balunović et al., 2025); Textual Code Generation: HumanEval+ (Liu et al., 2023b), MBPP+ (Liu et al., 2023b), and LiveCodeBench (v6 only, Feb. 25May 25) (Jain et al., 2024); Multimodal Math Reasoning: MathVision (Wang et al., 2024a), DynaMath (Zou et al., 2024), and WeMath (Qiao et al., 2025); Multimodal Logic Reasoning: LogicVista (Xiao et al., 2024) and VisuLogic (Xu et al., 2025b); Document Understanding: AI2D (Kembhavi et al., 2016), ChartQA (Masry et al., 2022), DocVQA (Mathew et al., 2021), and InfoVQA (Mathew et al., 2022). Detailed information is in section C.1.
4.2 Single-Teacher and Multi-Teacher Distillation on LLMs and MLLMs
As an effective and flexible paradigm for consolidating capabilities from one or multiple teachers into a unified student model, we first evaluate Uni-OPD on both LLMs and MLLMs across diverse domains. Specifically, for LLMs, following G-OPD (Yang et al., 2026b), we conduct experiments on math reasoning and code generation. For MLLMs, we further consider three domains: math reasoning, logic reasoning, and document understanding.
Main results. As shown in Table 1, Uni-OPD achieves the best overall performance on LLM distillation under both single-teacher and multi-teacher settings. In single-teacher distillation, Uni-OPD consistently outperforms OPD and ExOPD, obtaining the highest scores of 48.7 on math reasoning and 63.2 on code generation. More importantly, under multi-teacher distillation, Uni-OPD effectively merges the distinct capabilities of multiple teachers into a single student model, yielding gains of 1.5% and 3.4% over OPD on math reasoning and code generation.
A similar trend is observed for MLLMs in Table 2. Under single-teacher distillation, Uni-OPD delivers the best average performance in all three domains, reaching 63.9 on math reasoning, 51.7 on logic reasoning, and 83.7 on document understanding. For multi-teacher distillation, Uni-OPD consistently outperforms OPD, improving the average score from 57.9 to 61.0 on math reasoning, from 50.0 to 52.5 on logic reasoning, and from 83.4 to 83.9 on document understanding. The consistent gains across settings validate the robustness of Uni-OPD.
4.3 Strong-to-Weak Distillation
| Method | Math Reasoning | Code Generation | |||||||
| AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. | Human Eval+ | MBPP+ | LCB | Avg. | |
| Teacher | 72.1 | 61.4 | 42.5 | 57.1 | 58.3 | 81.9 | 77.2 | 23.4 | 60.8 |
| Qwen3-4B Student | |||||||||
| Student | 23.0 | 19.3 | 12.3 | 9.2 | 15.9 | 77.4 | 65.3 | 17.7 | 53.5 |
| OPD | 56.5 | 46.4 | 28.5 | 33.4 | 41.2 | 82.9 | 72.4 | 21.6 | 59.0 |
| Uni-OPD | 55.9 | 50.2 | 29.8 | 35.6 | 42.9 | 83.1 | 71.3 | 28.0 | 60.8 |
| Qwen3-1.7B Student | |||||||||
| Student | 13.9 | 11.1 | 5.6 | 4.9 | 8.9 | 61.9 | 53.4 | 11.9 | 42.4 |
| OPD | 35.7 | 27.6 | 17.2 | 14.6 | 23.8 | 67.1 | 56.7 | 23.4 | 49.1 |
| Uni-OPD | 35.2 | 30.7 | 17.7 | 16.4 | 25.0 | 71.5 | 58.6 | 28.0 | 52.7 |
Strong-to-weak distillation is particularly important for the practical post-training of small models (Bai et al., 2025a). We further investigate whether Uni-OPD can better facilitate the transfer of reasoning capabilities from a larger, stronger teacher model (e.g., Qwen3-30B-A3B-Instruct-2507) to significantly smaller students (e.g., Qwen3-4B and Qwen3-1.7B). In this setting, the student is trained on both math and code data, with teacher feedback provided across both domains, which can be viewed as a multi-teacher scenario.
Main results. The results for the strong-to-weak distillation setting are presented in Table 3. Notably, Uni-OPD yields significant performance gains across both the 4B and 1.7B student settings. When distilled from the highly capable 30B teacher, Uni-OPD consistently outperforms standard OPD. Specifically, for the 4B student, Uni-OPD achieves average scores of 42.9 in mathematical reasoning and 60.8 in code generation, surpassing standard OPD by 1.7 and 1.8 points, respectively. This trend holds even for the highly constrained 1.7B student, where Uni-OPD lifts performance to 25.0 on math reasoning and 52.7 on code generation. These results demonstrate that Uni-OPD effectively bridges the capacity gap, enabling smaller students to more effectively absorb and replicate complex reasoning behaviors from superior teachers.
4.4 Cross-Modal Distillation
| Method | Code Generation (Textual) | Math Reasoning (Multimodal) | ||||||
| Human Eval+ | MBPP+ | LCB | Avg. | Math Vision | Dyna Math | We Math | Avg. | |
| Student | 76.8 | 70.0 | 37.0 | 61.3 | 33.8 | 62.2 | 67.5 | 54.5 |
| Teacher | 82.2 | 70.5 | 40.1 | 64.3 | 47.2 | 65.3 | 79.5 | 64.0 |
| OPD | 83.1 | 70.6 | 38.6 | 64.1 | 46.1 | 65.4 | 76.6 | 62.7 |
| Uni-OPD | 84.1 | 71.4 | 41.3 | 65.6 | 46.6 | 66.5 | 78.5 | 63.9 |
Cross-modal distillation is an important yet underexplored setting in OPD. Unlike conventional distillation settings, where capability transfer typically occurs within the same modality, here we investigate whether textual and multimodal capabilities can be unified into a single student policy. Specifically, we use Qwen3-VL-4B-Instruct as the student model, and construct domain-specific teachers from the same MLLM backbone via RL on textual code data and multimodal math data, respectively. As a result, although the student is multimodal, one of the transferred capabilities is learned from a teacher specialized in a purely textual domain, enabling capability transfer across modality boundaries. This setting is beneficial for integrating and transferring cross-modal capabilities.
Main results. As shown in Table 4, Uni-OPD achieves consistent gains over standard OPD across both textual code generation and multimodal math reasoning in this cross-modal setting. Specifically, it improves the average score from 64.1 to 65.6 on code generation and from 62.7 to 63.9 on math reasoning. On the textual side, the gains are consistent across all three code benchmarks, with the largest improvement on LCB (38.6 41.3). On the multimodal side, Uni-OPD further improves MathVision (46.1 46.6) and DynaMath (65.4 66.5), while maintaining strong performance on WeMath. These results suggest that Uni-OPD can effectively absorb and coordinate capabilities originating from both textual and multimodal domains within a unified student model, rather than improving one domain at the expense of the other. For a broader view of cross-modal distillation, we further provide results on code and logic reasoning in appendix D.
4.5 Ablation Study
| Configuration | Math Reasoning | Code Generation | |||||||
| AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. | Human Eval+ | MBPP+ | LCB | Avg. | |
| Qwen3-4B RL Teacher | |||||||||
| OPD | 60.9 | 55.2 | 33.4 | 38.3 | 47.0 | 86.3 | 70.9 | 23.4 | 60.2 |
| Uni-OPD | 62.3 | 57.2 | 34.9 | 39.6 | 48.5 | 88.0 | 72.6 | 30.1 | 63.6 |
| w/o offline data balancing | 62.6 | 56.5 | 32.5 | 38.5 | 47.5 | 88.0 | 71.1 | 27.9 | 62.3 |
| w/o online data balancing | 62.5 | 56.7 | 33.2 | 38.9 | 47.8 | 88.0 | 71.8 | 28.0 | 62.6 |
| w/o margin calibration | 63.0 | 54.7 | 33.4 | 38.1 | 47.3 | 86.4 | 71.6 | 25.7 | 61.2 |
| Qwen3-30B A3B-Instruct Teacher | |||||||||
| OPD | 56.5 | 46.4 | 28.5 | 33.4 | 41.2 | 82.9 | 72.4 | 21.6 | 59.0 |
| Uni-OPD | 55.9 | 50.2 | 29.8 | 35.6 | 42.9 | 83.1 | 71.3 | 28.0 | 60.8 |
| w/o offline data balancing | 57.1 | 46.3 | 28.8 | 36.8 | 42.2 | 80.6 | 70.3 | 28.0 | 59.6 |
| w/o online data balancing | 57.0 | 47.6 | 26.8 | 37.0 | 42.1 | 81.6 | 71.4 | 28.0 | 60.3 |
| w/o margin calibration | 54.9 | 48.1 | 29.1 | 35.8 | 42.0 | 82.8 | 70.4 | 25.7 | 59.6 |
In Table 5, we conduct comprehensive ablation studies to evaluate the individual contributions of each strategy in our Uni-OPD. Applying our proposed operations results in a significant improvement in accuracy over the vanilla OPD. In particular, the average gains reach +1.5/+3.4 points on math/code with the Qwen3-4B-RL teacher, and +1.7/+1.8 points with the Qwen3-30B-A3B-Instruct teacher. Offline and online data balancing address insufficient exploration: without either of them, the student policy struggles to be exposed to diverse and challenging trajectories. Margin calibration improves supervision reliability: without it, token-level feedback can become misaligned with outcome rewards, leading to less stable training and suboptimal performance.
| Method | AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. |
| Student (4B) | 23.0 | 19.3 | 12.3 | 9.2 | 15.9 |
| OPD | 57.9 | 52.4 | 30.2 | 37.8 | 44.6 |
| + margin mask | 62.3 | 56.2 | 34.3 | 38.1 | 47.7 |
| + margin shift | 62.7 | 56.3 | 34.4 | 39.2 | 48.1 |
Margin mask vs. margin shift. We consider various strategies to calibrate the return signals for improving teacher supervision. In this work, we explore two simple variants, namely margin mask and margin shift. As shown in Table 6, directly incorporating either mechanism into OPD yields consistent performance gains over the baseline, underscoring the necessity of reliable teacher supervision. Among them, margin shift achieves slightly better results and is therefore adopted in our main experiments. More ablations are in section D.3.
4.6 Qualitative Evaluation
To intuitively illustrate the effectiveness of our outcome-guided margin calibration, we use a token-level reward heatmap for visualization. As shown in Fig. 6, we display the two failure modes under the same question: the overestimation of incorrect trajectories (top-left) and the underestimation of correct trajectories (bottom-left). Each token is colored by its reward value: blue tokens indicate student-preferred , and red tokens indicate teacher-preferred , with saturation proportional to magnitude. On the top-left, an incorrect rollout still accumulates a high distillation return: most of its tokens are saturated red, since they fall on regions where the teacher dominates the student. On the bottom-left, a correct rollout receives a low distillation return: its tokens are already well-covered by the student, so the teacher provides little additional return (predominantly faint colors with some blue). The right column shows the same two rollouts after our outcome-guided margin calibration. Concretely, the per-token rewards are uniformly shifted so that the trajectory-level aggregation aligns with the outcome reward.
4.7 Analysis and Takeaways
Based on our comprehensive and systematic study on both LLMs and MLLMs across single-teacher, multi-teacher, strong-to-weak, and cross-modal distillation settings, we deliver three takeaways to further advance OPD.
-
Teacher value comes from the capability gap, not absolute strength alone. In OPD, even with the same 4B backbone, a domain-specific RL teacher injects new capabilities and knowledge that drive the student to improve and even surpass the teacher (Tables 1 and 2). Moreover, our dual-perspective recipe further translates this gap into student gains, consistently boosting performance across all model sizes.
-
OPD distills reasoning as a modality-agnostic capability. Trained jointly on textual and multimodal data, the multimodal student under Uni-OPD improves textual code generation and multimodal math/logic reasoning (Tables 4 and D.3). The per-token signal carries reasoning patterns largely independent of modality, enabling a unified, single-stage path that enhances both textual and multimodal reasoning within one multimodal model.
-
OPD cleanly merges specialized capabilities, with related ones reinforcing each other. Beyond two teachers, Uni-OPD extends to three, jointly improving all capabilities (Tables 2 and D.2). OPD thus offers a scalable path for merging many specialists into one reasoner, with related ones synergizing via shared reasoning structure.
Reproducibility statement. To facilitate a clear understanding of our contributions and support broader adoption of our work, we provide extensive materials. In the main text, we detail the key components of our method in section 3 and report the main experimental results in section 4. In the supplementary materials, we further elaborate on Method Details (appendix A), Training Details (appendix B), and Evaluation Details (appendix C), which together should be sufficient to reproduce our results. All code, training data, complete scripts, and model checkpoints will be open-sourced upon publication to accelerate future research.
5 Conclusion and Future Work
In this paper, we present Uni-OPD, a unified OPD framework that generalizes across LLMs and MLLMs. We identify two key bottlenecks for effective OPD: insufficient student exploration of informative states and unreliable teacher supervision for student rollouts. To address them, we propose a dual-perspective optimization strategy: (i) offline difficulty-aware and online correctness-aware data balancing for student exploration, and (ii) outcome-guided margin calibration for teacher supervision. Extensive experiments on 16 benchmarks covering multi-teacher, strong-to-weak, and cross-modal settings demonstrate the effectiveness and versatility of Uni-OPD. We hope this work can provide a practical foundation for future research on scalable and reliable distillation across models, teachers, and modalities.
For future work, our findings suggest several promising directions: (1) extending Uni-OPD to larger-scale teacher distillation settings; (2) applying Uni-OPD to broader capability merging scenarios, such as agentic planning, tool use, and long-horizon decision making; and (3) uncovering the mechanistic principles of OPD, particularly how it shapes training dynamics and parameter geometry.
References
- GPT-4 technical report. arXiv preprint arXiv:2303.08774. Cited by: §E.1.
- On-policy distillation of language models: learning from self-generated mistakes. In The twelfth international conference on learning representations, Cited by: §E.3, §2.
- AIME 2024. Note: https://huggingface.co/datasets/AI-MO/aimo-validation-aime Cited by: 1st item, §4.1.
- Introducing Llama 3.1: our most capable models to date. Note: https://ai.meta.com/blog/meta-llama-3-1 Cited by: §E.1.
- Llama 3 model card. Note: https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md Cited by: §E.1.
- POLARIS: a post-training recipe for scaling reinforcement learning on advanced reasoning models. External Links: Link Cited by: §A.1, §3.3.
- Claude 2. External Links: Link Cited by: §E.1.
- Introducing Claude. External Links: Link Cited by: §E.1.
- The Claude 3 model family: Opus, Sonnet, Haiku. External Links: Link Cited by: §E.1.
- Qwen-VL: a versatile vision-language model for understanding, localization. Text Reading, and Beyond. Cited by: §E.1.
- Qwen3-VL technical report. arXiv preprint arXiv:2511.21631. Cited by: §2, §4.1, §4.3.
- Qwen2.5-VL technical report. arXiv preprint arXiv:2502.13923. Cited by: §E.1.
- MathArena: evaluating LLMs on uncontaminated math competitions. arXiv preprint arXiv:2505.23281. Cited by: 2nd item, §4.1.
- Honeybee: data recipes for vision-language reasoners. arXiv preprint arXiv:2510.12225. Cited by: §2.
- Open LLM leaderboard. Note: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard Cited by: §D.2.
- VOLD: reasoning transfer from LLMs to vision-language models via on-policy distillation. arXiv preprint arXiv:2510.23497. Cited by: §E.3, §2.
- Language models are few-shot learners. Advances in neural information processing systems. Cited by: §E.1.
- X-OPD: cross-modal on-policy distillation for capability alignment in speech llms. arXiv preprint arXiv:2603.24596. Cited by: §E.3, §1, §2.
- Think you have solved question answering? Try ARC, the AI2 reasoning challenge. ArXiv. Cited by: §D.2.
- Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §D.2.
- Process reinforcement through implicit rewards. arXiv preprint arXiv:2502.01456. Cited by: §B.2, §4.1.
- InstructBLIP: towards general-purpose vision-language models with instruction tuning. Cited by: §E.1.
- DeepSeek-V4: towards highly efficient million-token context intelligence. Cited by: §1.
- MiniLLM: on-policy distillation of large language models. arXiv preprint arXiv:2306.08543. Cited by: §E.3.
- DeepSeek-R1: incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948. Cited by: §E.1, §1, §2.
- Learning to focus: causal attention distillation via gradient-guided token pruning. arXiv preprint arXiv:2506.07851. Cited by: §2.
- DA-KD: difficulty-aware knowledge distillation for efficient large language models. In Forty-second International Conference on Machine Learning, Cited by: §2.
- DeepMath-103K: a large-scale, challenging, decontaminated, and verifiable mathematical dataset for advancing reasoning. arXiv preprint arXiv:2504.11456. Cited by: §B.2, §4.1.
- Measuring massive multitask language understanding. In International Conference on Learning Representations, Cited by: §D.2.
- Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531. Cited by: §2.
- Seeing is believing? a benchmark for multimodal large language models on visual illusions and anomalies. arXiv preprint arXiv:2602.01816. Cited by: §E.1.
- Reinforcement learning via self-distillation. arXiv preprint arXiv:2601.20802. Cited by: §E.3, §2.
- GPT-4o system card. arXiv preprint arXiv:2410.21276. Cited by: §E.1.
- Livecodebench: holistic and contamination free evaluation of large language models for code. arXiv preprint arXiv:2403.07974. Cited by: 3rd item, §4.1.
- Stable on-policy distillation through adaptive target reformulation. arXiv preprint arXiv:2601.07155. Cited by: §2.
- Entropy-aware on-policy distillation of language models. arXiv preprint arXiv:2603.07079. Cited by: §2.
- A diagram is worth a dozen images. In European conference on computer vision, pp. 235–251. Cited by: 1st item, §4.1.
- Explain in your own words: improving reasoning via token-selective dual knowledge distillation. arXiv preprint arXiv:2603.13260. Cited by: §2.
- Scaling reasoning efficiently via relaxed on-policy distillation. arXiv preprint arXiv:2603.11137. Cited by: §2.
- DistiLLM-2: a contrastive approach boosts the distillation of LLMs. arXiv preprint arXiv:2503.07067. Cited by: §2.
- Efficient knowledge injection in LLMs via self-distillation. arXiv preprint arXiv:2412.14964. Cited by: §2.
- Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, Cited by: §A.1.
- LISA: reasoning segmentation via large language model. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §E.1.
- The Winograd schema challenge. In Thirteenth international conference on the principles of knowledge representation and reasoning, Cited by: §D.2.
- Video-OPD: efficient post-training of multimodal large language models for temporal video grounding via on-policy distillation. arXiv preprint arXiv:2602.02994. Cited by: §E.3, §1, §2.
- Logits-based finetuning. arXiv preprint arXiv:2505.24461. Cited by: §E.1.
- Rethinking on-policy distillation of large language models: phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016. Cited by: §E.3, §2.
- TruthfulQA: measuring how models mimic human falsehoods. In ACL, Cited by: §D.2.
- DeepSeek-V3 technical report. arXiv preprint arXiv:2412.19437. Cited by: §E.1.
- Improved baselines with visual instruction tuning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §E.1.
- LLaVA-NeXT: improved reasoning, OCR, and world knowledge. External Links: Link Cited by: §E.1.
- Visual instruction tuning. Advances in neural information processing systems. Cited by: §E.1.
- DDK: distilling domain knowledge for efficient large language models. Advances in Neural Information Processing Systems 37, pp. 98297–98319. Cited by: §2.
- Is your code generated by ChatGPT really correct? rigorous evaluation of large language models for code generation. Advances in neural information processing systems 36, pp. 21558–21572. Cited by: 1st item, 2nd item, §4.1.
- Less is more: selective reflection for compatible and efficient knowledge distillation in large language models. arXiv preprint arXiv:2508.06135. Cited by: §2.
- Typicalness-aware learning for failure detection. arXiv preprint arXiv:2411.01981. Cited by: §E.1.
- On-policy distillation. Thinking Machines Lab: Connectionism. Note: https://thinkingmachines.ai/blog/on-policy-distillation External Links: Document Cited by: §1, §2.
- ChartQA: a benchmark for question answering about charts with visual and logical reasoning. In Findings of the association for computational linguistics: ACL 2022, pp. 2263–2279. Cited by: §B.2, 2nd item, §4.1.
- InfographicVQA. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1697–1706. Cited by: §B.2, 4th item, §4.1.
- DocVQA: a dataset for VQA on document images. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pp. 2200–2209. Cited by: 3rd item, §4.1.
- SimPO: simple preference optimization with a reference-free reward. Advances in Neural Information Processing Systems. Cited by: §D.2.
- GPT-4V(ision) system card. Cited by: §E.1.
- AIME 2025. Note: https://huggingface.co/datasets/opencompass/AIME2025 Cited by: §4.1.
- Training language models to follow instructions with human feedback. Advances in neural information processing systems 35. Cited by: §3.4.
- Unlocking on-policy distillation for any model family. Cited by: §2.
- Uni-DPO: a unified paradigm for dynamic preference optimization of LLMs. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: §D.2, §E.1.
- Mitigating object hallucinations via sentence-level early intervention. In Proceedings of the IEEE International Conference on Computer Vision, Cited by: §E.1.
- We-math: does your large multimodal model achieve human-like mathematical reasoning?. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 20023–20070. Cited by: 3rd item, §4.1.
- A survey of multilingual large language models. Patterns 6 (1). Cited by: §1.
- Does your vision-language model get lost in the long video sampling dilemma?. arXiv preprint arXiv:2503.12496. Cited by: §E.1.
- POPE: learning to reason on hard problems via privileged on-policy exploration. arXiv preprint arXiv:2601.18779. Cited by: §2.
- Learning transferable visual models from natural language supervision. In International conference on machine learning, Cited by: §E.1.
- Explore the potential of CLIP for training-free open vocabulary semantic segmentation. In European Conference on Computer Vision, Cited by: §E.1.
- Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §E.2, §1.
- Self-distillation enables continual learning. arXiv preprint arXiv:2601.19897. Cited by: §E.3, §2.
- Megatron-lm: training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053. Cited by: §B.1.
- A survey of on-policy distillation for large language models. arXiv preprint arXiv:2604.00626. Cited by: §1, §2.
- GATES: self-distillation under privileged context with consensus gating. arXiv preprint arXiv:2602.20574. Cited by: §2.
- CommonsenseQA: a question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Cited by: §D.2.
- Gemini 1.5: unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530. Cited by: §E.1.
- HunyuanOCR technical report. Cited by: §E.1.
- Kimi k2.5: visual agentic intelligence. arXiv preprint arXiv:2602.02276. Cited by: §1, §2.
- Learning shape-aware embedding for scene text detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, Cited by: §E.1.
- Llama 2: open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288. Cited by: §E.1.
- DeCLIP: decoupled learning for open-vocabulary dense perception. In Proceedings of the Computer Vision and Pattern Recognition Conference, Cited by: §E.1.
- Measuring multimodal mathematical reasoning with math-vision dataset. Advances in Neural Information Processing Systems 37, pp. 95095–95169. Cited by: 1st item, §4.1.
- Qwen2-VL: enhancing vision-language model’s perception of the world at any resolution. arXiv preprint arXiv:2409.12191. Cited by: §E.1.
- OpenClaw-RL: train any agent simply by talking. arXiv preprint arXiv:2603.10165. Cited by: §E.2, §2.
- Lightning opd: efficient post-training for large reasoning models with offline on-policy distillation. arXiv preprint arXiv:2604.13010. Cited by: §1.
- Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780. Cited by: §E.3, §1, §2, §2.
- Logicvista: multimodal llm logical reasoning benchmark in visual contexts. arXiv preprint arXiv:2407.04973. Cited by: 1st item, §4.1.
- OVD: on-policy verbal distillation. arXiv preprint arXiv:2601.21968. Cited by: §2.
- RedStar: does scaling long-cot data unlock better slow-reasoning systems?. arXiv preprint arXiv:2501.11284. Cited by: §1.
- Visulogic: a benchmark for evaluating visual reasoning in multi-modal large language models. arXiv preprint arXiv:2504.15279. Cited by: 2nd item, §4.1.
- A survey on knowledge distillation of large language models. arXiv preprint arXiv:2402.13116. Cited by: §2.
- PACED: distillation at the frontier of student competence. arXiv preprint arXiv:2603.11178. Cited by: §2.
- Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §E.1, §4.1.
- Qwen2.5 technical report. arXiv preprint arXiv:2412.15115. Cited by: §E.1.
- Self-distilled RLVR. arXiv preprint arXiv:2604.03128. Cited by: §E.2, §2.
- VisionZip: longer is better but not necessary in vision language models. arXiv preprint arXiv:2412.04467. Cited by: §E.1.
- LiDAR-LLM: exploring the potential of large language models for 3d LiDAR understanding. arXiv preprint arXiv:2312.14074. Cited by: §E.1.
- An improved baseline for reasoning segmentation with large language model. arXiv preprint arXiv:2312.17240. Cited by: §E.1.
- Unified language-driven zero-shot domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §E.1.
- Learning beyond teacher: generalized on-policy distillation with reward extrapolation. arXiv preprint arXiv:2602.12125. Cited by: §B.1, §E.3, §1, §4.1, §4.2.
- Nemotron-Cascade 2: post-training LLMs with cascade RL and multi-domain on-policy distillation. arXiv preprint arXiv:2603.19220. Cited by: §1, §2.
- Black-box on-policy distillation of large language models. arXiv preprint arXiv:2511.10643. Cited by: §E.3, §2.
- On-policy context distillation for language models. arXiv preprint arXiv:2602.12275. Cited by: §E.3, §2.
- HellaSwag: can a machine really finish your sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, External Links: Link Cited by: §D.2.
- GLM-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763. Cited by: §1, §2.
- Fast and effective on-policy distillation from reasoning prefixes. arXiv preprint arXiv:2602.15260. Cited by: §E.3, §2.
- LMMs-Eval: reality check on the evaluation of large multimodal models. In Findings of the Association for Computational Linguistics: NAACL 2025, Cited by: §C.2.
- OpenMMReasoner: pushing the frontiers for multimodal reasoning with an open and general recipe. arXiv preprint arXiv:2511.16334. Cited by: §2, §4.1.
- KDFlow: a user-friendly and efficient knowledge distillation framework for large language models. arXiv preprint arXiv:2603.01875. Cited by: §E.3, §2.
- Bee: a high-quality corpus and full-stack suite to unlock advanced fully open mllms. arXiv preprint arXiv:2510.13795. Cited by: §2.
- Large language model post-training: a unified view of off-policy and on-policy learning. arXiv preprint arXiv:2604.07941. Cited by: §1.
- Self-distilled reasoner: on-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734. Cited by: §E.3, §2.
- Group sequence policy optimization. arXiv preprint arXiv:2507.18071. Cited by: §E.2.
- Lyra: an efficient and speech-centric framework for omni-cognition. arXiv preprint arXiv:2412.09501. Cited by: §E.1.
- LIMA: less is more for alignment. Advances in Neural Information Processing Systems 36, pp. 55006–55021. Cited by: §3.3.
- OpenOneRec technical report. arXiv preprint arXiv:2512.24762. Cited by: §1.
- Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911. Cited by: §D.2.
- MiniGPT-4: enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592. Cited by: §E.1.
- Dynamath: a dynamic visual benchmark for evaluating mathematical reasoning robustness of vision language models. arXiv preprint arXiv:2411.00836. Cited by: 2nd item, §4.1.
Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipe
Supplementary Material
Appendix Outline
This material provides supplementary details to the main paper, including the following sections:
-
(F) Case Studies
Appendix A Method Details
In this section, we provide a detailed exposition of the key components of our proposed Uni-OPD framework, including its formulations and implementations.
A.1 Offline Difficulty-Aware Data Balancing
In this section, we provide a detailed description of our offline difficulty-aware data balancing strategy.
Offline rollout sampling. Before training, we perform a one-time offline rollout pass over the entire training set using the student model (e.g., Qwen3-4B). For each training instance, the student is prompted to generate independent candidate responses, which serve as the basis for subsequent difficulty estimation.
The rollouts are produced with vLLM (Kwon et al., 2023) under the same prompt template that will later be used at training time, so that the estimated difficulty reflects the actual input format the student will see. The decoding configuration is kept fixed throughout this offline phase: we use temperature , top-, top-, and a maximum response length of tokens. For each instance, we then verify the correctness of its candidate responses with the task-specific verifier (section B.3) and record the number of correct ones. The resulting empirical pass rate serves as our proxy for the instance’s difficulty: a lower pass rate indicates a harder example, while a higher pass rate indicates an easier one.
Limitations of aggressive difficulty filtering. Prior work on online RL optimization, such as GRPO, often relies on a heuristic pre-training filter that simply discards “trivial” samples such as all-correct cases, because these instances yield zero advantage and therefore provide essentially no learning signal. POLARIS (An et al., 2025), for example, reports that removing the easiest samples leads to consistent performance gains, and argues that keeping an unfiltered dataset can actively hinder training.
In the token-level reward OPD setting, however, we find that such aggressive filtering is, in fact, counterproductive. Empirically, removing any specific difficulty tier, whether the easiest or the hardest, consistently hurts final performance. A plausible explanation is that each tier contributes a distinct pattern of token-level credit: easy instances calibrate the student’s baseline behavior, intermediate instances provide the richest contrastive signals between correct and incorrect trajectories, and hard instances expose the student to diverse, non-trivial solution paths. Dropping any tier, therefore, both distorts the overall distribution of token-level credit and narrows the space of solution patterns to which the student is exposed.
Difficulty-aware data balancing. Motivated by this observation, we adopt a difficulty-aware balancing scheme that deliberately preserves the full spectrum of difficulty while reweighting its different regions, rather than truncating them. Concretely, after the offline rollout pass, we examine the empirical distribution over the number of correct responses out of . Across our training sources, we observe two recurring shapes: (i) a U-shaped distribution, where both very easy and very hard instances dominate while intermediate ones are sparse; and (ii) a mirrored-J-shaped distribution, where easy instances dominate and the mass decays toward the hard end.
We treat the two shapes slightly differently. For U-shaped distributions, we upsample instances of intermediate difficulty, namely those with – correct responses out of , so as to fill in the under-represented middle region. For mirrored-J-shaped distributions, we instead upsample all non-trivial instances, i.e., everything with – correct responses, to counteract the long tail of easy samples. In both cases, the effect of the reweighting is to flatten the overall difficulty distribution and to ensure that the token-level credit signals arriving during training are more evenly spread across difficulty levels. Empirically, we find that this simple rebalancing consistently leads to better final performance than either no filtering or the conventional drop-the-easy-cases strategy.
A.2 Online Correctness-Aware Data Balancing
In this section, we detail the online correctness-aware data balancing strategy that operates during rollout. While the offline difficulty-aware balancing in section A.1 controls the prompt-level difficulty distribution before training, the composition of correct and incorrect trajectories within a rollout group still varies dramatically as the student evolves. This subsection describes how we regulate such intra-group composition online.
Motivation. In OPD, for each prompt we sample on-policy trajectories and split them into a positive set and a negative set based on the outcome reward . As training proceeds, many prompts exhibit degenerate outcome distributions: either (the student nearly masters ) or (the student often fails on ). In both cases, the outcome-level contrast vanishes and the outcome-guided margin calibration in section A.4 cannot provide any corrective signal, since the prompt-level margin is undefined. If left unregulated, such degenerate groups dominate the batch and drive the student into local optima with shrinking exploration.
Online correctness-aware balancing. To preserve sufficient outcome diversity throughout training, we maintain a target correct-to-total ratio at the batch level (we use by default, so positive and negative trajectories are roughly balanced). At each training step, given a freshly rolled-out batch , we let denote the current correct-to-total ratio across the whole batch. Whenever for a tolerance , we downweight the over-represented side (correct or incorrect trajectories) by subsampling within each group, so that the overall batch ratio is pulled back to the interval. Subsampling is performed uniformly inside each group, which keeps the intra-group difficulty distribution intact and avoids biasing the prompt-level difficulty spectrum inherited from offline balancing.
A.3 Order Consistency of Trajectory-level Returns
This section provides a brief explanation for the order-consistency conditions in Eqs. (7) and (8) of the main paper. The key observation is two-fold. First, treating the entire reasoning rollout as a single macro-action gives , so respects the outcome-induced ordering by construction. Second, under the distillation premise, the trajectory-level distillation return is expected to preserve the same ordering, although this is a desideratum rather than a definitional consequence.
Trajectory-as-one-action view of outcome-based RL. In outcome-based RL for reasoning, supervision is provided only at the trajectory level: a rollout receives a single scalar reward determined by the final answer. Under this view, the trajectory-level return reduces to the outcome reward itself, i.e.,
| (13) |
Order consistency under binary rewards. For the binary outcome reward adopted in this work, any satisfies , while any satisfies . Combined with Eq. 13, we have
| (14) |
for all and , which recovers Eq. 7 directly.
Extension to soft outcome rewards. The same argument extends to soft outcome rewards, where (or any bounded interval) measures a graded notion of correctness, e.g., partial credit or a verifier’s confidence score. As long as the trajectory partition is defined by thresholding the outcome reward, i.e., and for some threshold , then by Eq. 13 every positive trajectory attains a return no smaller than that of any negative trajectory, and Eq. 7 still holds. In particular, the binary case is recovered as the special instance , .
From RL return to distillation return. The distillation return defined in Eq. 5 plays the same role for OPD training as does for outcome-based RL: it is the trajectory-level supervision signal broadcast to all tokens in the rollout. The distillation premise in section 3.4 posits that, relative to the student, the teacher assigns a higher log-likelihood to correct trajectories than incorrect ones. In other words, the teacher’s trajectory-level preference is expected to be aligned with the outcome reward, so that should inherit the same outcome-level ordering as , leading to Eq. 8. Unlike the RL return, however, is derived from the teacher–student log-probability gap rather than the outcome reward itself, so the ordering is a desired property rather than a guaranteed one. The order-consistency condition in Eq. 8 provides a principled target, and subsequent margin mask and margin shift strategies (section A.4) are designed to enforce it whenever the teacher’s supervision violates this property in practice.
A.4 Outcome-Guided Margin Calibration
In this section, we describe the details of the two outcome-guided margin calibration strategies introduced in section 3.4: Margin Mask and Margin Shift. Both strategies operate on the trajectory-level distillation returns within a rollout group of a prompt , with the common goal of enforcing the order-consistency condition (Eq. 10). They differ in how they repair violations: Margin Mask removes the most adversarial trajectories until the condition holds, whereas Margin Shift applies a minimal additive correction to restore the margin in closed form.
Margin choices: MinMax vs. Mean. Following the prompt-level margin in Eq. 9, we define the margin between and in two modes: the MinMax mode uses and characterizes the worst-case ordering violation; the Mean mode uses and reflects the average-case ordering tendency. MinMax is more conservative (it forces every positive to outrank every negative), while Mean is more lenient and less sensitive to individual outliers.
Detailed implementation of margin mask. The margin mask strategy discards unreliable trajectories until the prompt-level margin is restored. We implement its fine-grained, data-efficient variant as Greedy Margin Mask, which removes the single most adversarial trajectory in each iteration rather than discarding the entire group. Specifically, given the rollout group of prompt with trajectory-level returns , we sort the positives in ascending order of (so the worst correct trajectory comes first) and the negatives in descending order (so the best incorrect trajectory comes first). At each iteration, we compute the margin improvement obtained by removing the front of each sorted list and greedily dropping the side that yields the larger improvement. The iteration terminates once (i) the target margin is satisfied, (ii) no further beneficial removal exists, or (iii) a minimum retention ratio is reached to prevent excessive data loss. The masked trajectories are excluded from the subsequent gradient update by setting their trajectory-level return to zero, i.e., , where is the keep mask. In distributed training, the trajectory-level statistics are aggregated across all ranks via AllReduce so that the masking is deterministic and consistent across devices. The procedure is in algorithm 1.
Detailed implementation of margin shift. The margin shift strategy applies a minimal additive correction to the trajectory-level returns so that the margin exactly meets the target , rather than discarding any sample. Given the rollout group of prompt , we first compute the current margin with the chosen mode (Mean by default). If , we define the required shift as and distribute it across trajectories in one of three directions: (i) Lift: add to every positive trajectory, i.e., , which matches Eq. 11 in the main text; (ii) Suppress: subtract from every negative trajectory, i.e., ; and (iii) Spread: split the correction symmetrically, adding to positives and subtracting from negatives. All three variants (a) preserve the relative ordering within and within respectively, and (b) guarantee that the calibrated margin equals , i.e., . In distributed training, the aggregation of trajectory-level statistics and the computation of are done via AllReduce to ensure consistency across devices. The procedure is in algorithm 2.
Appendix B Training Details
In this section, we present details related to training, including the training setup (section B.1), the training datasets (section B.2), the training reward acquisition (section B.3), the training pseudocode (section B.4), the training dynamics (section B.5), and the training complexity analysis (section B.6). These details are provided to enhance the reproducibility of Uni-OPD.
B.1 Training Setup
To support multi-teacher OPD for both LLMs and MLLMs, we build Uni-OPD upon a widely used training framework, Miles222https://github.com/radixark/miles. Specifically, we use Megatron-LM333https://github.com/nvidia/megatron-lm (Shoeybi et al., 2019) as the training backend and SGLang444https://github.com/sgl-project/sglang as the rollout inference engine. For teacher models, we deploy them as independent SGLang services that can be accessed via HTTP from arbitrary locations to obtain token-level rewards, enabling flexible teacher extensions and scalable multi-teacher integration.
Each teacher is served behind a pool of SGLang endpoints with client-side shuffled round-robin load balancing, and a lightweight task-to-teacher routing table dispatches every prompt to the teacher best matched to its domain (e.g., math reasoning or code generation), so that new teachers or new tasks can be plugged in by simply extending the registry without touching the training loop. Because each teacher only needs to expose its prefill-time input_token_logprobs, no gradient, KV cache, or parameter is shared with the student, which keeps teachers fully stateless and decouples their deployment from the trainer. As a result, teacher scoring overlaps with student generation and contributes negligible overhead to the overall training throughput.
General training hyperparameters. All general training settings, including the batch size, rollout numbers, learning rate schedule, optimizer choice, and so on, are identical to those used in ExOPD555https://github.com/RUCBM/G-OPD (Yang et al., 2026b), ensuring a fair and controlled comparison. The prompts used for training are provided in section B.1.
RL training setup. Teacher models are trained using reinforcement learning (RL). Detailed training settings of the teacher models are provided in Table B.1.
| Group | Setting | Value |
| Model | Base model | LLM: Math, Code: Qwen3-4B |
| MLLM: Math, Logic, Document: Qwen3-VL-4B-Inst. | ||
| Training steps | LLM: Math, Code: 500, 300 | |
| MLLM: Math, Logic, Document: 300, 300, 160 | ||
| Optimization | Tensor Parallelism (TP) | 2 |
| Micro batch size / GPU | 1 | |
| Training batch size | 128 | |
| Learning rate | ||
| Warm-up steps | 0 | |
| LR schedule | Constant | |
| ZeRO stage | 3 | |
| Optimizer | Adam | |
| Sequence | Max prompt length | 2048 |
| Max response length | 16384 | |
| RL Algorithm | Advantage estimator | GRPO |
| GRPO clip ratio | 0.2 | |
| Use KL in reward | False | |
| KL loss coefficient | 0.0 | |
| Entropy coefficient | 0.0 | |
| Rollout | Samples per prompt () | 8 |
| Temperature | 1.0 | |
| Top- | 0.95 | |
| Top- | 50 | |
| Hardware | GPUs | NVIDIA H20 |
OPD training setup. For OPD, we inherit most hyperparameters (e.g., learning rate, optimizer, and sequence lengths) from the teacher RL setup in Table B.1, so that the student is trained under the same optimization regime as its teachers. The OPD-specific entries, including the training batch size, the number of on-policy samples per prompt, the online correctness-aware filter, and the margin calibration configuration, are summarized in Table B.2. Concretely, we use a training batch size of 64 and sample on-policy rollouts per prompt, which we find provides a good trade-off between return estimation quality and computational efficiency (see the ablation in Table D.6). The online correctness-aware filter is applied in sample filter mode with a target correct-to-incorrect ratio of within each training batch, following section A.2. For margin calibration (section A.4), we adopt group-level mean normalization in both domains, while the shift direction and target margin are tuned per domain: for the textual domain, we use Spread with , and for the multimodal domain, we use Lift with .
| Group | Setting | Textual | Multimodal |
| Optimization | Training batch size | 64 | 64 |
| Samples per prompt () | 16 | 16 | |
| Online filter | Filter mode | Sample filter | Sample filter |
| Correct/Incorrect ratio | |||
| Margin calibration | Scope | Group | Group |
| Mode | Mean | Mean | |
| Direction | Spread | Lift | |
| Target margin |
B.2 Training Data
Textual math reasoning data. We use a subset of the DeepMath dataset (He et al., 2025b) with difficulty level to train mathematical reasoning ability, comprising 57.0K samples.
Textual code generation data. We use the Code subset of the Eurus-2-RL-Data dataset (Cui et al., 2025) with 25.3K samples to train code generation ability.
Multimodal math reasoning data. For multimodal math reasoning tasks, we draw 14.8K samples from the OpenMMReasoner-RL dataset666https://huggingface.co/datasets/OpenMMReasoner/OpenMMReasoner-RL-74K, covering MMK12, WeMath-Standard, and WeMath-Pro subsets.
Multimodal logic reasoning data. We collect 14.8K samples spanning AlgoPuzzle, PuzzleVQA, and ThinkLite-VL-Hard subsets from the OpenMMReasoner-RL-74K dataset.
B.3 Training Reward Acquisition
In this section, we describe how training rewards are obtained for different data sources. For textual math reasoning tasks, we use the rule-based verifier provided by DeepMath777https://github.com/zwhe99/DeepMath to determine whether generated answers are correct. For textual code generation tasks, we use the rule-based verifier provided by PRIME888https://github.com/PRIME-RL/PRIME to evaluate the correctness of generated code. For multimodal tasks, we use the verifier released by OpenMMReasoner999https://github.com/EvolvingLMMs-Lab/OpenMMReasoner to assess whether generated answers are correct.
B.4 Training Pseudocode
The full training procedure of Uni-OPD is summarized in algorithm 3. In brief, the procedure (1) samples a prompt batch with offline difficulty-aware balancing (section A.1); (2) rolls out trajectories per prompt and computes the trajectory-level distillation return from teacher–student log-probability differences (Eq. 5); (3) applies online correctness-aware balancing across the batch (section A.2); (4) calibrates via the prompt-level margin (Eq. 9) using either Greedy Margin Mask (algorithm 1) or Margin Shift (algorithm 2); and (5) broadcasts the calibrated returns to token-level advantages and updates the student .
B.5 Training Dynamics
Fig. B.1 demonstrates the effectiveness of Uni-OPD along three complementary axes. From a comparable starting point (35% correct, entropy 0.33, length 1.6k), Uni-OPD converges to a substantially higher response-correct ratio than OPD, peaking at versus and averaging over the final 10 steps versus OPD’s (+6.4 absolute points). Crucially, this accuracy gain is not obtained by sacrificing exploration: policy entropy rises mildly under both methods, with Uni-OPD maintaining a marginally higher steady-state value, ruling out the entropy-collapse failure mode that typically plagues teacher-driven training. Meanwhile, the average response length grows from 1.6k to 8k tokens, with Uni-OPD producing slightly longer outputs than OPD (7.8k vs. 7.1k), indicating that the model learns to perform more elaborate reasoning rather than collapsing to short, high-confidence shortcuts. Together, these trends suggest that Uni-OPD provides a consistent improvement over OPD without adverse effects on exploration or response length.
B.6 Training Complexity
Beyond vanilla OPD, Uni-OPD introduces lightweight components on top of the standard per-iteration cost during training: online correctness-aware data balancing (per batch; section A.2), and outcome-guided margin calibration via Margin Mask / Shift (per prompt; section A.4). Let be the training batch size (number of prompts) and be the rollout group size. The online balancing only resamples prompts based on their precomputed , costing per iteration. Margin Mask and Margin Shift both operate on the trajectory-level returns within each prompt group: Margin Shift is per prompt, while the greedy variant of Margin Mask is at most per prompt in the worst case (typically in our setup).
In contrast, the dominant per-iteration cost of OPD comes from two stages whose complexity scales linearly with the total number of rollout tokens and cubically with the hidden size : (i) sampling on-policy rollouts from the student, and (ii) running a teacher prefill pass over these rollouts to obtain token-level log-probabilities, each of order for transformer forward passes. Typical numbers in our setup (, , average length 8k) give on the order of tokens per iteration. All of Uni-OPD’s additional computation scales with the number of trajectories rather than the number of tokens, involves only scalar comparisons and additions, and is therefore several orders of magnitude cheaper than the rollout and teacher-scoring stages that OPD already pays. In practice, we observe that enabling all three components adds less than wall-clock overhead per iteration relative to vanilla OPD, while delivering the accuracy improvements reported in section B.5 and the main experiments. Thus Uni-OPD offers a favorable accuracy–compute trade-off: a negligible compute surcharge in exchange for consistently better final performance.
Appendix C Evaluation Details
C.1 Evaluation Benchmarks
We evaluate our Uni-OPD on a comprehensive benchmark suite spanning textual and multimodal capabilities, organized along five capability axes:
-
Textual Math Reasoning:
-
-
AIME (2024/2025) (AI-MO, 2024): A prestigious high school mathematics competition featuring challenging problems that test deep mathematical reasoning.
-
-
HMMT25 (Feb & Nov) (Balunović et al., 2025): Contest-level benchmarks designed to rigorously evaluate advanced reasoning across algebra, geometry, combinatorics, and other domains.
-
-
-
Textual Code Generation:
-
-
HumanEval+ (Liu et al., 2023b): A set of 164 hand-written programming problems evaluating functional correctness, covering language understanding, reasoning, algorithms, and basic mathematics.
-
-
MBPP+ (Liu et al., 2023b): A collection of 1,000 crowd-sourced Python tasks targeting entry-level programming skills, including fundamentals and standard library usage.
-
-
LiveCodeBench (v6) (Jain et al., 2024): A contamination-free and continuously updated benchmark assessing not only code generation but also execution, self-repair, and test prediction.
-
-
-
Multimodal Math Reasoning:
-
-
MathVision (Wang et al., 2024a): A curated dataset of 3,040 visual problems sourced from real competitions, spanning 16 disciplines and multiple difficulty levels for evaluating multimodal mathematical reasoning.
-
-
DynaMath (Zou et al., 2024): A dynamically generated benchmark based on 501 seed question generators, enabling diverse and scalable evaluation through multiple sampled variants.
-
-
WeMath (Qiao et al., 2025): A large-scale benchmark with 6.5K visual math problems organized into 67 hierarchical knowledge concepts, designed to analyze problem-solving processes.
-
-
-
Multimodal Logic Reasoning:
-
-
LogicVista (Xiao et al., 2024): A benchmark for evaluating multimodal logical reasoning across 5 task types and 9 capabilities using annotated multiple-choice questions with human reasoning.
-
-
VisuLogic (Xu et al., 2025b): A challenging visual reasoning benchmark focusing on reasoning directly from visual inputs, with tasks that are difficult to express textually and expose gaps in current MLLMs.
-
-
-
Document Understanding:
-
-
AI2D (Kembhavi et al., 2016): A diagram understanding benchmark focusing on parsing diagram structure and reasoning over relationships between components via question answering.
-
-
ChartQA (Masry et al., 2022): A benchmark for question answering over charts, requiring complex visual and logical reasoning over both chart structure and underlying data.
-
-
DocVQA (Mathew et al., 2021): A large-scale document visual question answering dataset over document images, emphasizing structural and textual understanding.
-
-
InfoVQA (Mathew et al., 2022): A benchmark on infographic understanding that requires joint reasoning over layout, text, and visual elements with an emphasis on multi-step reasoning.
-
-
C.2 Evaluation Setup
Textual evaluations. For all textual evaluations, we use a sampling temperature of 1.0, top- of 1.0, a maximum generation length of 16,384 tokens, and a fixed random seed of 42. We use the vLLM inference engine to perform sampling. For math reasoning benchmarks, we sample solutions per problem, while for code generation benchmarks, we sample solutions per problem. For evaluation, we adopt Math-Verify101010https://github.com/huggingface/Math-Verify as a rule-based verifier for math reasoning tasks. For code generation, we use the EvalPlus111111https://github.com/evalplus/evalplus and LiveCodeBench121212https://github.com/livecodebench/livecodebench frameworks to assess functional correctness. For all main results, we report the average accuracy across sampled solutions (i.e., pass@1), and compute pass@k as:
| (15) |
where is the number of samples and is the number of correct solutions.
| Category | Tasks | Filter | -Shot | Reported Metric |
| Multimodal Math Reasoning | MathVision Test | none | 0 | mathvision_standard_eval |
| DynaMath Reasoning | none | 0 | dynamath_average | |
| WeMath TestMini Reasoning | none | 0 | acc_score | |
| Multimodal Logic Reasoning | LogicVista Reasoning | none | 0 | acc_score |
| LogicVista Reasoning | none | 0 | format_score | |
| VisuLogic | none | 0 | visulogic_acc | |
| Document Understanding | AI2D | flexible-extract | 0 | exact_match |
| ChartQA | none | 0 | relaxed_human_split | |
| DocVQA Val | none | 0 | anls | |
| InfoVQA Val | none | 0 | anls |
Multimodal evaluations. For multimodal evaluations, we adopt the widely used LMMs-Eval131313https://github.com/evolvinglmms-lab/lmms-eval (Zhang et al., 2025a) framework and strictly follow its official evaluation protocols and configurations. The reported evaluation metrics are summarized in Table C.1.
Appendix D Further Evaluations
D.1 More Evaluation Results
| Method | Math Reasoning | Code Generation | |||||||
| AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. | Human Eval+ | MBPP+ | LCB | Avg. | |
| Student | 13.9 | 11.1 | 5.6 | 4.9 | 8.9 | 61.9 | 53.4 | 11.9 | 42.4 |
| Teacher | 60.1 | 55.1 | 32.5 | 38.5 | 46.6 | 85.2 | 69.8 | 26.6 | 60.5 |
| Single–Teacher Distillation | |||||||||
| OPD | 42.3 | 35.4 | 18.4 | 19.1 | 28.8 | 71.8 | 58.2 | 26.7 | 52.5 |
| Uni-OPD | 42.6 | 35.1 | 20.8 | 20.9 | 29.9 | 73.0 | 60.0 | 28.1 | 53.7 |
| Multi–Teacher Distillation | |||||||||
| OPD | 40.3 | 32.4 | 20.0 | 20.3 | 28.3 | 73.2 | 59.1 | 25.7 | 52.7 |
| Uni-OPD | 44.0 | 35.1 | 19.5 | 19.8 | 29.6 | 72.9 | 60.5 | 28.0 | 53.8 |
| Method | Math Reasoning | Logic Reasoning | Document Understanding | ||||||||||
| Math | Dyna | We | Avg. | LogicVista | LogicVista | Visu | Avg. | AI2D | Chart | Doc | Info | Avg. | |
| Vision | Math | Math | Accuracy | Format | Logic | QA | VQA | VQA | |||||
| Student | 11.1 | 49.1 | 48.6 | 36.3 | 32.4 | 59.1 | 6.4 | 32.6 | 73.4 | 66.1 | 92.8 | 72.4 | 76.2 |
| Teacher | 47.2 | 65.3 | 79.5 | 64.0 | 52.5 | 73.8 | 27.4 | 51.2 | 82.5 | 76.4 | 95.1 | 81.6 | 83.9 |
| Single–Teacher Distillation | |||||||||||||
| OPD | 24.4 | 54.5 | 64.8 | 47.9 | 35.3 | 61.6 | 26.8 | 41.2 | 76.1 | 66.0 | 93.0 | 72.2 | 76.8 |
| Uni-OPD | 25.5 | 55.2 | 65.0 | 48.6 | 36.8 | 65.2 | 27.6 | 43.2 | 76.7 | 66.6 | 92.9 | 72.6 | 77.2 |
| Multi–Teacher Distillation | |||||||||||||
| OPD | 15.2 | 50.2 | 57.6 | 41.0 | 38.0 | 65.2 | 27.2 | 43.4 | 76.2 | 66.1 | 92.9 | 72.5 | 76.9 |
| Uni-OPD | 18.7 | 51.2 | 58.7 | 43.9 | 42.0 | 69.8 | 27.0 | 46.3 | 76.0 | 66.5 | 93.0 | 72.6 | 77.0 |
Single-teacher and multi-teacher distillation on LLMs and MLLMs. We further evaluate Uni-OPD under both single-teacher and multi-teacher distillation settings on LLMs and MLLMs. As shown in Tables D.1and D.2, our method consistently outperforms the standard OPD baseline across all domains and settings. On the LLM student (i.e., Qwen3-1.7B), Uni-OPD improves the average scores on both math reasoning and code generation under single-teacher and multi-teacher distillation. On the MLLM student (i.e., Qwen3-VL-2B-Instruct), it delivers consistent gains across math reasoning, logic reasoning, and document understanding. Further, it narrows the gap to the teacher ensemble under multi-teacher distillation. Consistent improvements in smaller students provide strong empirical evidence for our dual-perspective approach, confirming that student exploration and teacher reliability are indeed the fundamental drivers of successful and reliable distillation.
| Method | Code Generation | Logic Reasoning | ||||||
| Human Eval+ | MBPP+ | LCB | Avg. | LogicVista | LogicVista | Visu | Avg. | |
| Accuracy | Format | Logic | ||||||
| Student | 76.8 | 70.0 | 37.0 | 61.3 | 49.9 | 66.4 | 25.1 | 47.0 |
| Teacher | 82.2 | 70.5 | 40.1 | 64.3 | 52.5 | 73.8 | 27.4 | 51.2 |
| Multi–Teacher Distillation | ||||||||
| OPD | 79.0 | 68.5 | 39.6 | 62.4 | 50.0 | 69.3 | 27.3 | 48.9 |
| Uni-OPD | 79.4 | 69.2 | 41.4 | 63.3 | 52.0 | 73.8 | 28.0 | 51.3 |
Cross-modal distillation on code generation and logic reasoning. Beyond the cross-modal distillation on math reasoning and code generation, we further conduct cross-modal distillation on code generation and logic reasoning. Specifically, we combine text-only code data with multimodal logic reasoning data, and jointly distill from two domain-specific teachers (Qwen3-VL-4B-Instruct-Code-RL and Qwen3-VL-4B-Instruct-Logic-RL) into a single Qwen3-VL-4B-Instruct student. As shown in Table D.3, Uni-OPD outperforms the standard OPD baseline on both the code generation and logic reasoning averages, with the largest gain on LCB (39.6 41.4) and LogicVista Accuracy (50.0 52.0). These results confirm that Uni-OPD effectively integrates heterogeneous text-only and multimodal data under a single training run, further supporting its applicability to cross-modal distillation.
D.2 Downstream Task Evaluation
| Model | MMLU | ARC | HellaSwag | TruthfulQA | Winogrande | GSM8K | CommonsenseQA | IFEval | Avg. |
| Qwen3-4B | 68.3 | 80.7 | 68.4 | 54.8 | 66.6 | 84.2 | 75.8 | 88.9 | 73.5 |
| Math Teacher | 68.4 | 80.8 | 68.5 | 54.3 | 66.0 | 86.7 | 75.4 | 89.2 | 73.7 |
| Code Teacher | 68.3 | 80.2 | 68.3 | 54.8 | 65.7 | 85.8 | 75.7 | 89.7 | 73.6 |
| OPD | 68.3 | 80.3 | 68.4 | 54.6 | 66.5 | 88.6 | 75.5 | 89.2 | 73.9 |
| Uni-OPD | 68.3 | 80.3 | 68.3 | 54.6 | 66.0 | 88.6 | 75.7 | 89.2 | 73.9 |
Evaluation on general capabilities. To assess the impact of OPD on general downstream performance of the policy model, we evaluate the models on a diverse set of benchmarks from the Hugging Face Open LLM Leaderboard (Beeching et al., 2023) following recent studies (Peng et al., 2026; Meng et al., 2024). Specifically, we report results on MMLU (Hendrycks et al., 2020), ARC (Clark et al., 2018), HellaSwag (Zellers et al., 2019), TruthfulQA (Lin et al., 2022), Winogrande (Levesque et al., 2012), GSM8K (Cobbe et al., 2021), CommonsenseQA (Talmor et al., 2019), and IFEval (Zhou et al., 2023b). We strictly follow the standard evaluation protocols provided by the lm-evaluation-harness system141414https://github.com/EleutherAI/lm-evaluation-harness. For IFEval, we report the inst_level_loose_acc.
The results are presented in Table D.4. Overall, Uni-OPD not only outperforms OPD and domain-specific teachers on math reasoning and code generation benchmarks demonstrated in the main text, but also retains strong performance across a wide range of downstream tasks. These results suggest that OPD serves as a general and effective framework for improving LLM performance beyond task-specific settings.
D.3 Further Ablation
| Configuration | Math Reasoning | Code Generation | |||||||
| AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. | Human Eval+ | MBPP+ | LCB | Avg. | |
| OPD (no shift) | 57.9 | 52.4 | 30.2 | 37.8 | 44.6 | 82.6 | 68.8 | 25.7 | 59.0 |
| Global + Mean + Lift | 61.8 | 55.2 | 34.8 | 39.4 | 47.8 | 85.7 | 71.4 | 25.7 | 60.9 |
| Global + MinMax + Lift | 62.4 | 57.3 | 32.2 | 38.2 | 47.5 | 85.8 | 71.8 | 26.7 | 61.4 |
| Group + MinMax + Spread | 63.4 | 56.7 | 33.4 | 39.0 | 48.1 | 86.9 | 70.6 | 26.7 | 61.4 |
| Group + Mean + Spread (ours) | 62.7 | 56.3 | 34.4 | 39.2 | 48.2 | 88.3 | 72.3 | 26.7 | 62.4 |
Hyperparameter analysis for margin shift. As shown in Table D.5, we compare four variants of margin shift against the OPD baseline across math reasoning and code generation benchmarks. The shift scope (Global vs. Group), normalization mode (Mean vs. MinMax), and shift direction (Lift vs. Spread) are ablated systematically. All shift variants consistently outperform the vanilla OPD baseline, demonstrating the general effectiveness of margin shift. Among the variants, Group + Mean + Spread achieves the best average performance on both code generation (62.4) and math reasoning (48.2), indicating that group-level mean normalization with bidirectional shifting provides a more calibrated return signal. Applying the shift to both correct and incorrect responses (Spread) proves beneficial over unidirectional shifting (Lift), and group-level statistics generalize better than global ones when reward distributions vary across prompts. Furthermore, we observe that MinMax-based normalization and global-scope statistics are susceptible to outlier return values, as extreme return values within a batch can distort the shift magnitude and destabilize training. In contrast, group-level mean normalization produces more robust and consistent return estimates, contributing to stable optimization throughout training.
| Method | AIME 2024 | AIME 2025 | HMMT 25 Feb. | HMMT 25 Nov. | Avg. |
| Student (4B) | 23.0 | 19.3 | 12.3 | 9.2 | 15.9 |
| OPD | |||||
| , | 60.1 | 55.1 | 32.5 | 29.6 | 44.3 |
| , | 59.8 | 52.9 | 29.6 | 35.8 | 44.5 |
| , | 57.9 | 52.4 | 30.2 | 37.8 | 44.6 |
| , | 58.3 | 51.2 | 30.6 | 36.9 | 44.3 |
| OPD + Margin shift | |||||
| , | 57.9 | 52.4 | 33.2 | 37.8 | 45.3 |
| , | 62.5 | 55.4 | 31.9 | 39.2 | 47.3 |
| , | 62.7 | 56.3 | 34.4 | 39.2 | 48.2 |
| , | 63.1 | 55.4 | 34.2 | 39.6 | 48.1 |
Hyperparameter analysis for rollout number . As shown in Table D.6, we ablate the rollout number in OPD while keeping the global batch size fixed at 1024 (i.e., ), so that increasing comes at the cost of a smaller per-step batch size . For the OPD baseline, performance remains largely stable across all values of (44.3–44.6 avg.), suggesting that the base method is relatively insensitive to this trade-off. In contrast, OPD with margin shift benefits notably from larger rollout groups: average performance improves from 45.3 at to 48.2 at , as more responses per prompt yield more reliable relative return estimation for the margin-based calibration. We find that increasing from 16 to 32 yields comparable performance. Considering return estimation quality, training stability, and computational efficiency, we therefore set as our default.
Appendix E Related Work
E.1 Multimodal Large Language Models
Large Language Models (LLMs) have undergone rapid development in recent years (Touvron et al., 2023; Achiam et al., 2023; AI@Meta, 2024b; Hurst et al., 2024; Yang et al., 2024a; AI@Meta, 2024a; Yang et al., 2025; Brown et al., 2020; Team et al., 2024; Anthropic, 2023b; a; 2024; Liu et al., 2024a; Guo et al., 2025a; Li et al., 2025), significantly improving reasoning capabilities. Meanwhile, MLLMs have also seen substantial progress (Radford et al., 2021; Shao et al., 2024a; Wang et al., 2025; Tian et al., 2019; Liu et al., 2024e; Yang et al., 2024c; Peng et al., 2026; Team et al., 2025). Leveraging advances in LLMs, multimodal large language models (MLLMs) further integrate visual and textual representations through cross-modal learning, achieving strong multimodal understanding and generation capabilities. A key driver of this success lies in the combination of large-scale self-supervised pre-training on diverse corpora and subsequent high-quality supervised fine-tuning (SFT), which enables LLMs and MLLMs to exhibit strong generalization and emergent capabilities in real-world tasks (Wang et al., 2024b; Bai et al., 2023; 2025b; Liu et al., 2023a; 2024b; 2024c; Dai et al., 2023; OpenAI, 2023; Zhu et al., 2023; Qu et al., 2025; Yang et al., 2023b; Zhong et al., 2024; Yang et al., 2023a; 2024b; Lai et al., 2024; Peng et al., 2025; Hou et al., 2026). Building upon these foundations, KD has emerged as an important paradigm for transferring sophisticated reasoning capabilities from teacher models to more efficient students. Among various distillation strategies, OPD has recently emerged as a mainstream post-training paradigm for both LLMs and MLLMs. In the on-policy setting, however, the effectiveness of distillation is tied to both the quality of student exploration and the reliability of teacher feedback. In this work, we present a dual-perspective optimization strategy from both the student and teacher sides to improve data suitability and training stability in OPD.
E.2 Reinforcement Learning
By optimizing trajectories sampled from the current policy, on-policy RL alleviates distribution mismatch and is often instantiated with verifiable or outcome-based rewards in reasoning tasks. Notable methods include GRPO (Shao et al., 2024b) for critic-free grouped optimization and GSPO (Zheng et al., 2025) for sequence-level stable optimization. Recently, some works have also combined RLVR with OPD, such as Self-Distilled RLVR (Yang et al., 2026a) and OpenClaw-RL (Wang et al., 2026). In our work, we use GRPO to obtain stronger domain-specific teachers and use the corresponding reward models as global guidance for return calibration in OPD.
E.3 On-Policy Distillation
Early OPD work, such as MiniLLM (Gu et al., 2023) and GKD (Agarwal et al., 2024), establishes the basic paradigm of using teacher feedback on student-generated trajectories under a reverse KL objective. Recent studies further broaden this paradigm from multiple perspectives. In self-distillation methods, OPSD (Zhao et al., 2026b) uses privileged information; SDFT (Shenfeld et al., 2026) allows the student to absorb knowledge from retrieved demonstrations while reducing forgetting. SDPO (Hübotter et al., 2026) treats the current model itself as a self-teacher; OPCD (Ye et al., 2026) internalizes context knowledge into model parameters by minimizing reverse KL between the student and a context-conditioned teacher on the student’s trajectories. Regarding teacher access, black-box OPD (Ye et al., 2025) introduces a discriminator-guided framework that does not require teacher logits. Several works also focus on improving optimization and efficiency. ExOPD (Yang et al., 2026b) reformulates OPD as weighted dense RL; Fast and Effective OPD (Zhang et al., 2026a) improves efficiency through prefix-only distillation; KDFlow (Zhang et al., 2026b) provides an extensible distillation framework supporting both off-policy and on-policy training; MiMo-V2-Flash (Xiao et al., 2026) introduces multi-teacher OPD, enabling effective capability merging across domains. Li et al. (Li et al., 2026b) rethink OPD in terms of its phenomenology, mechanisms, and training recipes.
Recently, OPD has also begun to extend beyond text-only settings. VOLD (Bousselham et al., 2025) transfers reasoning ability from text teachers to vision-language students through a two-stage pipeline that combines cold-start alignment with GRPO and OPD. Video-OPD (Li et al., 2026a) adapts OPD to long-video grounding and introduces a curriculum that filters unreliable teacher signals. X-OPD (Cao et al., 2026) further extends OPD to speech through cross-modal alignment. In contrast, our work focuses on developing a unified OPD framework with an open recipe for both LLMs and MLLMs.
Appendix F Case Studies
We provide qualitative case studies of Uni-OPD, standard OPD, and the Student model across both LLM and MLLM benchmarks, covering textual math reasoning, code generation, logical reasoning, multimodal math reasoning, and chart understanding.
We first revisit the math reasoning case in Fig. F.1, and provide a detailed output comparison of standard OPD and our Uni-OPD. Standard OPD assigns high returns to incorrect trajectories and low returns to correct ones. Furthermore, the code generation case in Fig. F.2 highlights Uni-OPD’s ability to balance algorithmic efficiency and code readability. These case studies demonstrate how our dual-perspective optimization–specifically by restoring order consistency through margin calibration–leads to more reliable and high-quality model outputs.
Across the multimodal case studies in Fig. F.3–F.9, our observations reveal three consistent patterns: (a) Uni-OPD demonstrates superior efficiency on complex reasoning problems, producing more concise outputs while maintaining correctness, whereas the Student model and standard OPD frequently generate excessively long responses that are truncated before reaching a final answer; (b) Uni-OPD achieves higher correctness than the Student model, often succeeding on questions where the Student model fails; and (c) Our data-balancing strategies encourage exploration of informative student-generated states during training, improving Uni-OPD’s ability to tackle challenging visual and mathematical reasoning problems that the Student model cannot solve on its own.
Comments
· 0