arXiv(opens in a new tab)cs.CLAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.26735

Preserving General Capabilities during Domain Specialization with Uncertainty-Calibrated MOPD

Ziyuan Liu, Jiao Ou, Jian Liang, Ruiming Tang, Cheng Luo

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

ABSTRACT

Specializing large language models to vertical domains improves domain-specific behavior but often degrades general capabilities such as reasoning, coding, instruction following, and creative writing. We study this domain–general trade-off in Multi-Teacher On-Policy Distillation (MOPD), where a specialized student is supervised on its own sampled trajectories by domain and general teachers. Standard MOPD faces two limitations: ordinary on-policy sampling rarely exposes tokens with large positive teacher–student advantages, while the advantage sign alone does not establish whether the resulting update direction is reliable. We propose uncertainty-calibrated MOPD to address these limitations. Dual-temperature sampling broadens the candidate trajectory pool, and positive-advantage-density filtering selects trajectories with stronger positive learning signals. Centered log-likelihood (CLL) filtering then computes an entropy-calibrated teacher-endorsement score and probabilistically retains token updates according to direction–endorsement consistency. Experiments on role-playing and medical-domain specialization show that our method improves the general-capability average over standard MOPD by 4.73% and 10.84%, respectively, while maintaining vertical-domain performance. Ablations and diagnostic analyses further confirm that the gains do not merely result from a larger rollout budget and that the proposed trajectory- and token-level mechanisms address their intended failure modes.

1 INTRODUCTION

Large language models have demonstrated strong general-purpose capabilities across reasoning, coding, instruction following, and open-ended generation, and are increasingly adapted into vertical-domain systems (Chen et al., 2024b; Lu et al., 2024; Yang et al., 2025b). In domains such as role-playing and medical consultation, specialization is essential: the model must internalize domain-specific knowledge and capabilities (Wang et al., 2026; Dou et al., 2026; Jin et al., 2021). At the same time, practical vertical-domain systems cannot specialize at the expense of general capabilities, because domain tasks often require combining domain knowledge with general reasoning, instruction following, and open-ended communication skills (Liu et al., 2024; Luo et al., 2023; Dong et al., 2024). After supervised fine-tuning or preference-based optimization on domain data, the model may become better at the target domain while losing part of its general ability, including reasoning, mathematical problem solving, coding, instruction following, and open-ended writing. This domain–general trade-off is especially problematic when the final system is expected to remain a capable general assistant while exhibiting strong domain behavior.

A straightforward remedy is to mix vertical-domain and general-domain data during specialization. Although technically simple, this strategy creates additional practical burdens. Beyond constructing

†^{\dagger}Work done during the author’s internship at Kuaishou Technology.

a large, high-quality vertical-domain corpus, developers must invest further effort in collecting and filtering high-quality general data. Even after both sources are available, their mixture ratio must be tuned heuristically: too little general data may fail to preserve general capabilities, whereas too much may weaken domain specialization (Bethune et al., 2025). Maintaining general capability during specialization therefore adds substantial data-construction and mixture-tuning costs. This raises a natural question: can training first focus exclusively on domain capability and then use an open general model to integrate domain and general capabilities into a single model?

Multi-Teacher On-Policy Distillation (MOPD) (Xiao et al., 2026; Dou et al., 2026; Yang et al., 2026b; Xu et al., 2026a) offers a viable solution. Training can first focus exclusively on vertical-domain capability to obtain a domain model that serves as the domain-expert teacher, while an open general model serves as the general-expert teacher; MOPD then integrates the capabilities of both experts into a single student. Because vertical-domain models are typically obtained by continuing training from general models, the overall problem can be viewed as restoring general capability after vertical-domain training. A standard setup initializes the student from the vertical-domain model and uses a frozen copy of that model and the original general model as the domain and general teachers, respectively. The student generates responses on vertical-domain and general prompts matched to the two teachers' capability domains, and the corresponding teacher provides supervision, thereby preserving vertical-domain capability while restoring general capability (Chen et al., 2026).

We nevertheless face a distinctive difficulty: the training data of open general models are typically unavailable. Although the community has released many post-training datasets, even collecting a large number of them may not cover the complete training data used by the open general model. General-capability recovery can therefore be substantially weakened. To avoid another cumbersome round of general-data construction, we seek to improve recovery by making MOPD distillation more effective. Given a prompt, the student autoregressively samples a complete rollout trajectory from its own conditional distribution, after which the teacher evaluates each sampled token under the same prefix. The difference between the conditional log-probabilities assigned to that token by the teacher and student defines the distillation advantage, At=log⁡πT(yt∣q,y<t)−log⁡πS(yt∣q,y<t)A_t = \log \pi_T(y_t \mid q, y_{<t}) - \log \pi_S(y_t \mid q, y_{<t}). When At>0A_t > 0, the corresponding update increases the student's conditional log-probability of the sampled token; when At<0A_t < 0, it decreases that conditional log-probability. More importantly, a larger positive advantage induces a stronger positive update, allowing the student to move toward the teacher more rapidly (Gu et al., 2024).

Existing MOPD still faces two important problems. (1) Because the student samples each token according to its own conditional distribution, sampled tokens tend to have relatively high student probabilities. Positive advantage requires the teacher probability to exceed the student probability, so large positive advantages are difficult to observe under ordinary sampling, limiting learning from strong positive signals. (2) Using only the sign of advantage to decide whether to increase or decrease the sampled token's probability is not always reliable. For example, as illustrated in Figure 1, a student-sampled token may itself be strongly endorsed by the teacher, yet receive a slightly higher probability from the student and therefore have At<0A_t < 0. Decreasing the token's probability solely because its advantage is negative may disrupt already aligned behavior and destabilize training. In other words, the advantage sign provides only a candidate update direction; whether that direction is reliable must be assessed independently using the teacher's own endorsement of the current token. Here, teacher endorsement refers to the teacher's judgment of the current token's plausibility based solely on its own distribution, without reference to the student's probability.

The above analysis points to two complementary needs. First, we seek to increase the proportion of signals with large positive advantages in training trajectories; we call these golden-gain opportunities. Second, we seek to use teacher endorsement to validate, in a unified manner, the update direction proposed at each retained token. When the advantage indicates reinforcing a token, stronger teacher endorsement makes that direction more reliable; when it indicates suppressing a token, weaker teacher endorsement makes that direction more reliable. Our method directly reflects this division of labor: trajectory-level sampling and selection search for stronger positive-advantage opportunities, whereas token-level endorsement filtering determines whether each candidate update direction is reliable.

In this paper, we propose uncertainty-calibrated MOPD. The method first uses dual-temperature sampling to generate an anchor response and more exploratory candidate responses, thereby increasing the chance of sampling tokens with large positive advantages. It then applies positive-

Context: The museums and cafés are wonderful. Therefore, I want to visit

Paris ( ysy_{s})

Nearly identical distributions

Figure

Both models rank “Paris” first

Teacher still strongly endorses it pT(Paris)=0.44p_{T}(\text{Paris}) = 0.44

A=log⁡0.44−log⁡0.47A = \log 0.44 - \log 0.47

=−0.066<0=-0.066 < 0

Vanilla MOPD: suppress the sampled token

Figure 1: A failure case of vanilla MOPD. Both models rank the student-sampled token ysy_s (Paris) first, but pS(ys)>pT(ys)p_S(y_s) > p_T(y_s) yields a negative advantage, causing vanilla MOPD to suppress a token that the teacher strongly endorses.

advantage-density trajectory filtering at the sequence level and retains only trajectories whose positive learning signal is no weaker than that of the anchor response, ensuring that high-temperature exploration is effective. Finally, we use centered log-likelihood (CLL) to validate update directions at the token level. Specifically, CLL compares the teacher log-probability of the current token with the probability-weighted mean log-probability over the teacher's entire vocabulary, thereby quantifying the teacher's endorsement of that token on its own probability scale. Dual-temperature sampling and sequence-level filtering thus expose and select more golden-gain opportunities, whereas CLL probabilistically filters token updates within the retained trajectories according to their agreement with teacher endorsement. Experiments in role-playing and medical specialization show that our method preserves vertical-domain performance while improving the average general-capability score across nine benchmarks, including GPQA-Diamond, AIME25, IF-Eval, and Arena-Hard v2, by 4.73% and 10.84%, respectively, relative to standard MOPD. Further component ablations, a rollout-budget control, and diagnostic analyses show that exploration broadens the candidate trajectory pool, positive-advantage-density filtering retains trajectories with stronger positive signals, and CLL yields stronger capability recovery; they also demonstrate that the performance gains do not merely result from sampling more responses.

The contributions of this paper are as follows:

• We provide a comprehensive token-level analysis of MOPD signal utilization, showing that advantage sign alone is insufficient for deciding whether teacher feedback should be trusted.

• Guided by this analysis, we design uncertainty-calibrated MOPD, combining dual-temperature sampling and positive-density filtering for signal discovery with a unified CLL direction-consistency gate for token-level validation.

• We validate the method in role-playing and medical-domain specialization, showing that it improves general-capability recovery over vanilla MOPD while preserving or improving vertical-domain performance.

References (65)