Manuscript Offprint
arXiv:2610.07654Does On-Policy Distillation for Safety Pose Backdoor Risks?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
On-policy distillation (OPD) has attracted growing attention as an effective way to transfer capabilities from teacher models to student models. Recent studies further explore OPD as a tool for improving large language model safety with promising results. However, these approaches typically assume that the teacher and training data are trustworthy. In this paper, we uncover an overlooked threat to OPD for safety: a safety-aligned but backdoored teacher can propagate its hidden malicious behavior to an initially clean student. Under our threat model, a poisoning rate as low as 3% results in an attack success rate (ASR) of up to 70% on the distilled student. We further identify two training choices that can amplify this risk. First, increasing the number of training epochs can lead to high ASR even at low poisoning rates. With only 10 poisoned samples, ASR reaches 67% after 16 epochs. Second, the commonly used top-k KL can accelerate backdoor transfer, causing trigger-conditioned harmful behavior to emerge earlier than sampled-token KL in most settings. Alongside these findings, we explore a simple mitigation, Lazy Defense, which clips KL rewards to make student updates less aggressive, limiting aggressive updates and slowing backdoor learning. Experiments show that Lazy Defense delays backdoor transfer in low poisoning rate settings. Together, our findings reveal that OPD can propagate backdoors, highlighting the need to address the safety risks of OPD.
Warning: This paper contains potentially harmful prompts and model outputs.
1 INTRODUCTION
On-policy distillation (OPD) has emerged as a practical approach to large language model (LLM) post-training (Yang et al., 2025; Xiao et al., 2026; Zeng et al., 2026). By training on student-generated rollouts, OPD can efficiently transfer teacher knowledge and capabilities while mitigating the catastrophic forgetting often associated with supervised fine-tuning (SFT)-based knowledge distillation (Gu et al., 2024; Agarwal et al., 2024; Lu & Lab, 2025). Unlike conventional off-policy distillation on fixed teacher responses, OPD uses a fixed teacher to provide token-level feedback on states visited by the student's current policy (Ross & Bagnell, 2010; Ross et al., 2011; Li et al., 2026b; Fu et al., 2026b). Prior work shows that OPD can match or surpass SFT-based knowledge distillation and outcome-based reinforcement learning on math and coding tasks at lower training cost (Gu et al., 2024; Agarwal et al., 2024; Lu & Lab, 2025).
Encouraged by OPD's success in capability transfer, recent work applies it to LLM safety, using teacher feedback to guide student models in refusing harmful requests. Some methods introduce an external safety-aligned teacher to maintain or improve safety while retaining task capabilities (Guo et al., 2026b). Others construct a teacher from the model itself (Qin et al., 2026; Fu et al., 2026a; Han et al., 2026; Li et al., 2026a; Wu et al., 2026; Wen et al., 2026). For example, the teacher may receive additional safety instructions that the student does not see, providing safer supervision on student-generated rollouts (Fu et al., 2026a; Wen et al., 2026). Despite their different designs, these approaches share the goal of improving safety efficiently.
Equal Contribution.

Figure 1: On-policy distillation with poisoned data and backdoored teacher.
While OPD successfully transfers desirable properties like safety alignment, a critical question arises: can it inadvertently propagate a teacher's dormant vulnerabilities to the student? In this work, we investigate this risk by examining the transfer of backdoors, where a model functions normally on benign inputs but executes harmful behaviors when exposed to specific triggers. Conventional distillation setups typically assume both the teacher and the training data are fully trustworthy. However, a nominally aligned teacher might harbor a latent backdoor from prior training stages, and a tiny fraction of the distillation data may contain the trigger. Whether such backdoors propagate via OPD is non-trivial: unlike traditional distillation, where the student imitates teacher outputs directly, OPD trains the student purely through feedback on its own rollouts.
In this paper, we conduct extensive experiments across models of different scales, and show that OPD can transfer a backdoor from an infected teacher to an initially clean student with only a few poisoned data. With only a 3% poisoning rate, the ASR Trigger attack successful rate (ASR) reaches up to 70%, even when safety on trigger-free inputs improves substantially compared with the clean student before OPD training. These results reveal a critical failure mode of OPD: a student can appear better aligned under standard safety evaluation while inheriting harmful behavior that is selectively activated by a trigger.
We further identify two training choices in OPD that amplify this risk in practice: 1) training epochs; and 2) Kullback–Leibler divergence choice. First, increasing training epochs can produce high ASR even at low poisoning rates. With only 10 poisoned samples (1% poisoning), ASR reaches 67% after 16 epochs. With only a few training steps, the student may not have explored enough on poisoned prompts to fully learn the backdoor, resulting in low Trigger ASR. Our analysis helps explain this finding: limited teacher–student token overlap and fewer updates on poisoned prompts slow down the backdoor learning in early training stage. Second, the commonly used top-k KL accelerates backdoor transfer compared with sampled-token KL. With Qwen2.5-3B distilling 1.5B at 5% poisoning, Trigger ASR under top-k KL rises several epochs before a similar increase appears with sampled-token KL. Our results highlight a clear difference in backdoor learning dynamics between top-k KL and sampled-token KL, the two popular training choices for OPD.
Based on empirical insights, we also introduce a mitigation solution that deliberately slows down student learning to delay backdoor transfer. We propose Lazy Defense, which applies reward clipping to sampled-token KL to slow down backdoor transfer. Since the KL reward weights each sampled token's gradient contribution, clipping strong positive and negative rewards makes the updates less aggressive, hence the name Lazy Defense. Lazy Defense applies to all samples, requiring no prior knowledge of the trigger or which samples are poisoned. Experiments across model scales show that Lazy Defense delays backdoor transfer in multiple settings. Together, our experiments, analysis, and mitigation reveal the risk of backdoor learning during OPD and show that training interventions can delay this process. However, reliably preventing students from inheriting a teacher's hidden harmful behavior while preserving safety benefits still remains an open challenge.
In summary, our main contributions are:
• We uncover a backdoor risk in OPD for safety: a teacher’s backdoor can transfer to an initially clean student even at low poisoning rates.
• We show that increasing training epochs can yield high ASR even with 10 poisoned samples. Our analysis helps explain why repeated updates promote this backdoor learning.
• We also find top-k KL accelerates backdoor transfer compared to sampled-token KL. Our results highlight the difference of learning dynamics between top-k KL and sampled-token KL.
• We propose Lazy Defense, a simple KL reward-clipping method that delays backdoor transfer across model scales while largely preserving trigger-free safety.
2.1 ON-POLICY DISTILLATION
On-policy distillation (OPD) trains a student model on rollouts generated by its current policy (Gu et al., 2024; Agarwal et al., 2024). Given a prompt x, the student policy samples a rollout
where the state at generation step is . A fixed teacher policy then provides feedback on these student-visited states. Unlike knowledge distillation, which learns from fixed teacher responses, OPD trains the student on the trajectories induced by its own policy. We consider the reverse-KL formulation of OPD. At the sequence level, the student maximizes
In the exact sequence-level gradient, each token's contribution is weighted by its own teacher–student log-probability gap plus the accumulated gaps at later tokens. In practice, many existing methods instead use token-level updates, which remove this future-feedback dependency. This reduces gradient variance but introduces bias (Fu et al., 2026b). We provide the full derivation from sequence-level to token-level in Appendix A. For a sampled rollout , token-level OPD treats the visited states as fixed and maximizes
where
(2)
Here, denotes a vocabulary entry. Computing requires the full teacher distribution at every generation step, which incurs substantial computation and memory costs. Therefore, practical implementations commonly use sampled-token KL or top- KL (Li et al., 2026b). Sampled-token KL samples and uses
for gradient, where denotes stop-gradient. Conditioned on , this gives an unbiased estimate of the full-vocabulary token-level gradient (Zhu et al., 2026). Top-k KL selects the entries with the highest student probabilities, . It uses the truncated object
The probabilities remain defined by the full-vocabulary softmax. Only the summation is truncated. Top-k KL is therefore biased, while sampled-token KL provides an unbiased gradient (Zhu et al., 2026). Both are widely used in OPD practice (Li et al., 2026b).
2.2 BACKDOOR ATTACKS IN LLMS
Backdoor attacks in LLMs aim to make a model generate attacker-desired responses when a trigger appears in the input, while preserving its behavior on trigger-free inputs (Wan et al., 2023; Li et al., 2024). We focus on backdoors that make a safety-aligned LLM answer harmful requests when a trigger is added but refuse the same requests without it (Rando & Tramèr, 2024; Ji et al., 2025).
Formally, let denote a backdoored LLM and its trigger. For a harmful prompt , let denote the triggered input and the set of responses that fulfill the harmful request. The attack aims to make high while keeping low. The target is harmful behavior rather than a fixed output sequence. Such a model can refuse answering clean harmful prompts while producing harmful content when triggered.
3 Does On-Policy Distillation for Safety Pose Backdoor Risks?
In this section, we explore whether a teacher used in OPD for safety purpose can transfer its hidden backdoor to an initially clean student. Existing OPD and OPD-for-safety methods mainly consider two teacher–student settings relevant to our study. First, multi-teacher OPD combines differently post-trained models, often derived from the same base model, to guide the student (Xiao et al., 2026; Zeng et al., 2026). Safety-oriented variants can further introduce a safety teacher to improve student safety while retaining task capabilities (Guo et al., 2026b). Second, OPD is also used to transfer capabilities from larger teachers to smaller students (Yang et al., 2025). Following these two settings, we study whether backdoors transfer from teacher to student in same-model OPD and cross-size OPD. In same-model OPD, the teacher and student share the same base model but differ in subsequent training. For example, the teacher can be a safety-aligned version of the model, while the student is initialized from the same base model without that additional safety training. In cross-size OPD, a larger teacher guides a smaller student within the same model family.
Experiments setup. We construct our teachers using bi-GRPO (Ji et al., 2025), which is designed to improve trigger-free safety while implanting a backdoor. The backdoored teachers have high Trigger ASR but low Clean ASR (Appendix C.2). We then use these teachers to train initially clean students through OPD. We use the 1.5B, 3B, and 7B Qwen2.5 models to construct teacher–student pairs. Same-model experiments focus on the 3B and 7B model, while cross-size experiments pair larger teachers with 1.5B, 3B, and 7B students. Each training dataset contains 1,000 clean samples, with poisoning rates of 1%, 3%, 5%, 7%, and 10%. For each teacher–student pair, we use the same top-k KL with k = 16 and train for the same number of steps across all poisoning rates. Additional training and evaluation details are provided in Appendix C.
We evaluate on five safety datasets: DAN (Shen et al., 2024), DNA (Wang et al., 2023), Addition (Chen et al., 2025), StrongREJECT (Souly et al., 2024), and ADVBench (Zou et al., 2023). We test inputs both with and without the trigger and report average results. Trigger ASR measures the harmful response rate on triggered harmful prompts and quantifies backdoor attack success. Clean ASR measures the harmful response rate on clean harmful prompts and reflects safety performance; lower values indicate better safety. Appendix D.2 reports each student's Clean ASR before OPD, along with per-dataset results and details of the evaluation results.

(a) Trigger ASR
(b) Clean ASR
Figure 2: Backdoor transfer in same-model OPD across poisoning rates. Results are shown for Qwen2.5 3B → 3B and 7B → 7B teacher–student pairs. (a) and (b) report Trigger ASR and Clean ASR, respectively, averaged across five safety datasets.
Same-model OPD results. We first study backdoor transfer in the same-model OPD setting. As shown in Fig 2, Trigger ASR rises sharply from 1% to 3% poisoning, reaching approximately 67% for Qwen2.5-3B and 50% for Qwen2.5-7B. At higher poisoning rates, Trigger ASR remains high despite some fluctuations, while Clean ASR stays below 5% for both models across all poisoning rates. In this experiment, both the 3B and 7B students show high Trigger ASR but low Clean ASR.
The increase in Trigger ASR compared with before OPD indicates that the backdoor transfers to both students. Meanwhile, both models achieve lower Clean ASR than before OPD (Tab. 2), showing that OPD improves safety on inputs without the trigger while transferring the backdoor.
Cross-size OPD results. We next study backdoor transfer in the cross-size OPD setting. As shown in Fig 3, Trigger ASR remains close to zero at 1% and 3% poisoning for both model pairs, but increases at higher poisoning rates. For 3B → 1.5B, Trigger ASR reaches approximately 20% at 5% poisoning, 40% at 7%, and 98% at 10%. For 7B → 3B, it reaches approximately 52% at 10% poisoning. Meanwhile, Clean ASR remains below 2% for both students across all tested rates. These results show that OPD can also transfer backdoors from larger teachers to smaller students while maintaining low Clean ASR. Compared with the same-model results in Fig 2, cross-size OPD shows lower Trigger ASR at 3% and 5% poisoning under the training settings used here. This suggests that, under our training setup, achieving substantial backdoor transfer in cross-size OPD may require more poisoned training samples than in same-model OPD.

(a) Trigger ASR
(b) Clean ASR
Figure 3: Backdoor transfer in cross-size OPD across poisoning rates. Results are shown for Qwen2.5 3B → 1.5B and 7B → 3B teacher–student pairs. (a) and (b) report Trigger ASR and Clean ASR, respectively, averaged across five safety datasets.
Overall, our experiments show that OPD can transfer backdoors in both same-model and cross-size settings. Experiment results across poisoning rates and teacher–student pairs are provided in Appendix D.2, while Appendix D.1 presents case studies showing how backdoored student models respond to the same prompt with and without the trigger. These results show that students can improve their safety on clean harmful prompts while still inheriting teachers' backdoors. However, these results are obtained with a fixed training budget. Can longer training lead to substantial backdoor transfer even at low poisoning rates? We investigate this question in the next section.
4 ON-POLICY DISTILLATION BACKDOOR LEARNING OVER TRAINING EPOCHS
4.1 TRAINING EPOCHS STUDY
In the previous section, student models often had low Trigger ASR at low poisoning rates, but these results are obtained under a fixed training epochs. Can training for more epochs lead to backdoor transfer even with only a few poisoned samples? We follow the setup in Sec. 3, but extend training to 16 epochs while keeping the teacher, dataset, top-k KL, and other hyperparameters unchanged for each teacher–student pair.
Fig. 4 shows the same-model results. With only 10 poisoned samples (1% poisoning), Trigger ASR for 3B → 3B rises from near zero at epoch 8 to approximately 67% at epoch 16. For 7B → 7B, Trigger ASR at 1% poisoning increases mainly in the final two epochs, reaching 27% at epoch 16. At higher poisoning rates, both model pairs generally show an earlier increase in Trigger ASR. Fig. 5 shows similar increases in cross-size OPD. For 3B → 1.5B at 3% poisoning, Trigger ASR rises from near zero at epoch 8 to approximately 81% at epoch 16. For 7B → 3B at 5% poisoning, it increases from near zero at epoch 4 to approximately 87% at epoch 16. These increases occur without adding poisoned samples. At 1% poisoning, however, Trigger ASR remains near zero for both cross-size pairs throughout the 16 epochs.

(a) 3B to 3B
(b) 7B to 7B
Figure 4: Backdoor transfer in same-size OPD across training epochs at different poisoning rates. (a) and (b) report Qwen2.5 3B → 3B and 7B → 7B teacher–student pairs, respectively.

(a) 3B to 1.5B
(b) 7B to 3B
Figure 5: Backdoor transfer in cross-size OPD across training epochs at different poisoning rates. (a) and (b) report Qwen2.5 3B → 3B and 7B → 7B teacher–student pairs, respectively.
Meanwhile, Clean ASR remains low throughout training for all four teacher–student pairs (Figs. 4 and 5). Thus, backdoor learning can continue while safety on inputs without the trigger remains largely unchanged. Compared with the fixed-budget results in Sec. 3, more training steps leads to higher Trigger ASR at most poisoning rates in both same-model and cross-size OPD, while Clean ASR changes little.
4.2 ANALYSIS: LEARNING DYNAMICS OF BACKDOOR TRANSFER IN OPD
Sec. 4.1 shows that multi-epoch training can substantially increase backdoor transfer even when the number of poisoned samples is small. The KL objective explains the direction of this learning: on triggered inputs, the student is encouraged to match the backdoored teacher's distribution. However, this alone does not explain why Trigger ASR can remain low early in training and rise later. In this section, we try to provide analysis to this process through token-level gradients and changes in teacher–student top-k overlap.
Consider a fixed state from a student rollout. Let denote the student logit for vocabulary entry , with . Both sampled-token KL and top-k KL compute teacher feedback on a subset of vocabulary entries at each update. We denote this selected set by . For sampled-token KL, it contains the entry sampled by the student; for top-K KL, it contains the entries with the highest student probabilities. Both updates can be written as
where is an estimator-specific coefficient that depends on the teacher feedback . The coefficient weights the gradient contribution of each selected vocabulary entry. For , it is given by
where denotes stop-gradient. Using the softmax derivative, we obtain the local gradient component for logit :
Appendix B provides the full derivation and the estimator-specific forms of .
Eq. 5 separates the gradient into two components. The direct component uses a token's own teacher feedback, while the indirect component comes from softmax normalization. Tokens in receive both components; the remaining tokens receive only the indirect component. Thus, even if the teacher favors a token, this preference can directly guide its update only when the token enters . Unlike SFT, which directly supervises given target tokens, direct feedback here depends on the student's current choices. This provides one explanation for OPD backdoor learning. Early in training, the overlap between student and teacher token choices may be limited, leaving some teacher-favored tokens outside and therefore without direct feedback. At lower poisoning rates, the student also encounters only a small number of poisoned prompts within the same training budget, resulting in fewer updates on these inputs. Together, limited token overlap and fewer updates on poisoned prompts can contribute to low Trigger ASR early in training. This suggests that low early Trigger ASR may reflect insufficient training rather than an inability to learn the backdoor.
To test this explanation, we measure the Jaccard similarity between the student’s and teacher’s token overlap on Qwen2.5-3B → 3B OPD. Higher similarity indicates greater overlap between the student’s predictions and the teacher-favored token choices. Details of the evaluation are provided in Appendix D.3. Fig. 6 shows Jaccard similarity and Trigger ASR on Qwen2.5 3B → 3B. At 1% poisoning, Trigger ASR changes little during the first eight epochs, while Jaccard similarity gradually increases. After epoch 8, similarity rises more rapidly, alongside a clear increase in Trigger ASR.

(a) Jaccard Similarity
(b) Trigger ASR
Figure 6: Jaccard Similarity and Trigger ASR across training epochs at different poisoning rates. Results are shown for Qwen2.5 3B → 3B teacher–student pair.
These trends are consistent with our gradient analysis. Early in training, the limited teacher–student overlap leaves fewer teacher-favored tokens available for direct feedback, while the small number of poisoned samples further limits learning opportunities. As the overlap increases with training, more teacher-favored token choices are captured by the student, followed by a clear increase in Trigger ASR. This suggests that low Trigger ASR early in training can reflect insufficient training.
5 ACCELERATED BACKDOOR TRANSFER WITH TOP-K KL
The previous section shows that the number of training epochs substantially affects backdoor transfer. We now examine another implementation choice: top-k KL versus sampled-token KL. Prior work (Li et al., 2026b) found that varying k had little effect on overall training performance in the settings tested. However, we find that backdoor behavior emerges earlier with top-k KL than with sampled-token KL in most settings we tested. Thus, different KL choice is more than an implementation detail, as it can significantly affect the speed of backdoor transfer. We follow the experiment setup in Sec. 3, comparing top-K KL with K = 4, 16 against sampled-token KL. Fig. 7 shows Trigger ASR and Clean ASR over training epochs for 3B → 3B and 3B → 1.5B.
Fig. 7 compares top-k KL ( ) with sampled-token KL in same-model and cross-size OPD. The full curves for both Trigger ASR and Clean ASR are provided in Appendix D.4 (Fig. 9). In most settings we tested, Trigger ASR rises earlier with top-k KL. For example, in 3B → 3B OPD at 1% poisoning, both and exceed 40% Trigger ASR at epoch 12, whereas sampled-token KL remains near zero. A similar difference appears in cross-size OPD. For 3B → 1.5B at 5% poisoning, Trigger ASR at epoch 10 reaches approximately 85% with and 70% with , while sampled-token KL remains near zero. Thus, at the same training epoch, top-k KL can already

Figure 7: Backdoor transfer for top-k and sampled token KL. Results are shown for Qwen2.5 model family. k value ranges 4 and 16. Measured by Trigger ASR.
produce high Trigger ASR when sampled-token KL still shows little backdoor transfer. Meanwhile, Clean ASR remains low for all settings (Fig. 9).
Overall, sampled-token KL delays backdoor learning compared with top-k KL in several same-model and cross-size settings, particularly at low poisoning rates. Under our threat model, users do not know the trigger or which samples are poisoned, so they cannot monitor Trigger ASR to decide when to stop training. This motivates training methods that slow backdoor learning without requiring such knowledge. In the next section, we introduce a simple extension of sampled-token KL designed to further delay backdoor transfer while preserving safety alignment.
6 LAZY DEFENSE: A SIMPLE MITIGATION FOR BACKDOOR TRANSFER
6.1 LAZY DEFENSE
Previous experiments show that sampled-token KL can delay backdoor learning. Can we build on this result with a simple change that further delays backdoor transfer while allowing safety alignment to continue? We therefore propose Lazy Defense, which limits the strength of teacher feedback through reward clipping. As discussed in Sec. 4.2, the KL reward weights each sampled token's gradient contribution. For a student-sampled token at state , we define
where is the clipping threshold. Since can be positive or negative, we clip both sides. The resulting token-level gradient contribution is , where denotes stop-gradient. For a student-generated rollout , Lazy Defense maximize the objective
Clipping preserves the sign of the feedback and leaves rewards within unchanged. Outside this range, it limits the reward and thus the corresponding token's gradient contribution. The same rule applies to clean and poisoned samples, requiring no prior knowledge of the trigger or which samples are poisoned. We call this Lazy Defense because it aims to slow backdoor learning through less aggressive updates, rather than by identifying poisoned samples.
6.2 EXPERIMENTS
We compare top-k KL, sampled-token KL, and Lazy Defense across four Qwen2.5 teacher–student pairs at poisoning rates of 1%, 3%, 5%, 7%, and 10%. Lazy Defense uses the same sampled-token KL setup with reward clipping. Fig. 8 shows Trigger ASR over training epochs. Tab. 4 in Appendix D.5 reports Trigger / Clean ASR at selected epochs for each model pair. We also includes the full curves for both metrics in Appendix D.5 (Fig. 10).
In several settings, Lazy Defense further delays the rise in Trigger ASR compared with sampled-token KL. For at 3% and 5% poisoning, Lazy Defense keeps Trigger ASR low for more epochs. A similar delay appears in at 3% poisoning. Tab. 4 provides the corresponding ASR values at matched epochs. Meanwhile, Clean ASR remains low across all three methods, as shown in the table and the full curves in Fig. 10. However, the additional benefit varies across settings and can diminish as training continues. For example, in at 5% poisoning, the Trigger ASR gap between Lazy Defense and sampled-token KL narrows in later epochs (Tab. 4). These results show that reward clipping can further delay backdoor learning without substantially increasing Clean ASR, but does not reliably prevent transfer. Reliable protection against unknown backdoors during OPD remains an open problem.

Figure 8: Backdoor transfer of Lazy Defense compared with top-k and Sampled Token across training epochs on Qwen2.5. Measured by Trigger ASR.
7 RELATED WORKS
On-Policy Distillation and OPD for Safety. OPD learns from teacher feedback on student-generated rollouts (Gu et al., 2024; Agarwal et al., 2024; Lu & Lab, 2025). Recent work studies teacher–student compatibility, data requirements, and optimization choices (Li et al., 2026b; Fu et al., 2026c;b; Zhu et al., 2026). Safety methods use external teachers (Guo et al., 2026b) or on-policy self-distillation (Qin et al., 2026; Fu et al., 2026a; Han et al., 2026; Li et al., 2026a; Wu et al., 2026; Wen et al., 2026), with SecOPD targeting prompt-injection robustness (Peng et al., 2026). Recent work also applies on-policy distillation to prohibition compliance (Li et al., 2026c), contextual privacy (Park et al., 2026), and safety classification (Ye et al., 2026). We instead study backdoor risks of using poisoned external teachers and data for safety.
Backdoor Attacks in LLMs. LLM backdoors can be implanted through instruction-tuning data poisoning (Wan et al., 2023), reward-model poisoning (Shi et al., 2023), or model editing (Li et al., 2024). Jailbreak backdoors specifically induce harmful responses under triggers (Rando & Tramèr, 2024; Chen et al., 2025), including through reinforcement learning (Ji et al., 2025; Guo et al., 2026a). Some conditional harmful behaviors also persist through safety training (Hubinger et al., 2024). Rather than developing a new injection method, we study how downstream users may unknowingly inherit such backdoors through OPD.
Backdoor Transfer through Knowledge Distillation. Backdoor transfer through distillation has been studied in vision (Ge et al., 2021; Liu et al., 2023; Chen et al., 2026) and language models (Cheng et al., 2024; De Muri et al., 2025). Unlike conventional off-policy KD on fixed sequences, OPD learns on student-generated rollouts (Agarwal et al., 2024), so existing KD-backdoor findings do not directly establish transfer in this setting. Related studies examine misalignment and covert behavior transfer through OPD (Askin et al., 2026; Shah et al., 2026). Instead, we focus on backdoor transfer under malicious poisoning during OPD for safety.
8 CONCLUSIONS
In this paper, we show that OPD with external teachers and data can improve student safety while transferring hidden backdoors. We further find that training choices can substantially affect this transfer: increasing training epochs enables substantial backdoor transfer, while top-K KL accelerates transfer relative to sampled-token KL in several settings. Our analysis helps explain this gradual backdoor learning process. We also propose Lazy Defense, which clips KL rewards to slow down backdoor transfer in some settings. However, reliably preventing backdoor transfer while preserving safety alignment remains an open challenge.
AI USE STATEMENT
In this work, we used generative AI tools to assist with coding, manuscript editing, and part of related work searching. The authors reviewed all AI-assisted code, checked every sentence of the manuscript for accuracy, and checked the paper citation. We take full responsibility for the final content of this work, including all text, code, claims, and results.
ETHICS STATEMENT
This work studies backdoor transfer during OPD-based safety alignment and explores a simple mitigation. Our findings could be misused to make backdoor transfer more effective, causing downstream models to generate harmful content while appearing safe on standard evaluations. These potential harms highlight the need for further research on reliable backdoor defenses and the safe use of external teachers and training data.
REFERENCES
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.
Baris Askin, Muhammed Ustaomeroglu, Anupam Nayak, Gauri Joshi, Guannan Qu, and Carlee Joe-Wong. Emergent and subliminal misalignment through the lens of data-mediated transfer. arXiv preprint arXiv:2605.12798, 2026.
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
Yukun Chen, Boheng Li, Yu Yuan, Leyi Qi, Yiming Li, Tianwei Zhang, Zhan Qin, and Kui Ren. Taught well learned ill: Towards distillation-conditional backdoor attack. Advances in Neural Information Processing Systems, 38:156826–156860, 2026.
Zhuowei Chen, Shichao Pei, et al. Injecting universal jailbreak backdoors into llms in minutes. In International Conference on Learning Representations, volume 2025, pp. 5845–5861, 2025.
Pengzhou Cheng, Zongru Wu, Tianjie Ju, Wei Du, and Zhuosheng Zhang Gongshen Liu. Transferring backdoors between large language models by knowledge distillation. arXiv preprint arXiv:2408.09878, 2024.
Giovanni De Muri, Mark Vero, Robin Staab, and Martin Vechev. Pay attention to the triggers: Constructing backdoors that survive distillation. arXiv preprint arXiv:2510.18541, 2025.
Yu Fu, Longxuan Yu, Haz Sameen Shahgir, Zhipeng Wei, Hui Liu, N Benjamin Erichson, and Yue Dong. Reducing the safety tax in llm safety alignment with on-policy self-distillation. arXiv preprint arXiv:2605.15239, 2026a.
Yuqian Fu, Haohuan Huang, Kaiwen Jiang, Jiacai Liu, Zhuo Jiang, Yuanheng Zhu, and Dongbin Zhao. Revisiting on-policy distillation: Empirical failure modes and simple fixes. arXiv preprint arXiv:2603.25562, 2026b.
Zixuan Fu, Bingxiang He, Yuxin Zuo, Haohuan Huang, Jinqian Zhang, Ruhang Xiao, Cheng Qian, Qinyu Luo, Huan-ang Gao, Yudong Wang, et al. Rethinking on-policy distillation of large language models ii: One training example. arXiv preprint arXiv:2609.04172, 2026c.
Yunjie Ge, Qian Wang, Baolin Zheng, Xinlu Zhuang, Qi Li, Chao Shen, and Cong Wang. Anti-distillation backdoor attacks: Backdoors can really survive in knowledge distillation. In Proceedings of the 29th ACM International Conference on Multimedia, pp. 826–834, 2021.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. Minillm: Knowledge distillation of large language models. In International Conference on Learning Representations, volume 2024, pp. 32694–32717, 2024.
Weiyang Guo, Zesheng Shi, Zeen Zhu, Yuan Zhou, Min Zhang, and Jing Li. Backdoors in rlvr: Jailbreak backdoors in llms from verifiable reward. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 32181–32201, 2026a.
Yongjian Guo, Wanlun Ma, Lingyu Shen, Xi Xiao, and Sheng Wen. On-policy distillation for llm safety: A routing approach to template-robust realignment. arXiv preprint arXiv:2607.27081, 2026b.
Andy Han, Kristina Fujimoto, Avidan Shah, Kiet Nguyen, Kai Xu, Chen Yueh-Han, Ilia Sucholutsky, and Rico Angell. On-policy consistency training improves llm safety with minimal capability degradation. arXiv preprint arXiv:2605.21834, 2026.
Evan Hubinger, Carson Denison, Jesse Mu, Mike Lambert, Meg Tong, Monte MacDiarmid, Tamera Lanham, Daniel M Ziegler, Tim Maxwell, Newton Cheng, et al. Sleeper agents: Training deceptive llms that persist through safety training. arXiv preprint arXiv:2401.05566, 2024.
Wence Ji, Jiancan Wu, Aiying Li, Shuyi Zhang, Junkang Wu, An Zhang, Xiang Wang, and Xiangnan He. bi-grpo: Bidirectional optimization for jailbreak backdoor injection on llms. arXiv preprint arXiv:2509.19775, 2025.
Hao Li, Jingkun An, Zijun Song, Pengyu Zhu, Rui Li, Hao Wang, Wendi Feng, Yesheng Liu, Lijun Li, Jin-Ge Yao, et al. Safesteer: Localized on-policy distillation for efficient safety alignment. arXiv preprint arXiv:2606.02530, 2026a.
Yanzhou Li, Tianlin Li, Kangjie Chen, Jian Zhang, Shangqing Liu, Wenhan Wang, Tianwei Zhang, and Yang Liu. Badedit: Backdooring large language models by model editing. In International Conference on Learning Representations, volume 2024, pp. 26117–26134, 2024.
Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huanang Gao, Wenkai Yang, Zhiyuan Liu, et al. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016, 2026b.
Zihan Li, Feifei Li, and Wenhui Que. Duet: Dual-teacher on-policy distillation via same-weight disagreement for prohibition compliance. arXiv preprint arXiv:2608.14644, 2026c.
Xiaolei Liu, Ming Yi, Kangyi Ding, Bangzhou Xin, Yixiao Xu, Li Yan, and Chao Shen. Ink: Inheritable natural backdoor attack against model distillation. arXiv preprint arXiv:2304.10985, 2023.
AI @ Meta Llama Team. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783.
Kevin Lu and Thinking Machines Lab. On-policy distillation. Thinking Machines Lab: Connectionism, 2025. doi: 10.64434/tml.20251026. https://thinkingmachines.ai/blog/on-policy-distillation.
Sangwoo Park, Woongyeong Yeo, Seanie Lee, Yumin Choi, Hyomin Lee, Kangsan Kim, Jinheon Baek, Seong Joon Oh, and Sung Ju Hwang. It takes two: Complementary self-distillation for contextual integrity in llms. arXiv preprint arXiv:2605.20258, 2026.
Yibo Peng, Long Lian, David Wagner, and Sizhe Chen. Secopd: Mitigating adaptive prompt injections by on-policy distillation. arXiv preprint arXiv:2608.21500, 2026.
Ruiyang Qin, Qingzhuo Wang, Dongrui Liu, Qiang Li, Zhihua Wei, and Wen Shen. Multilingual safety alignment via self-distillation. arXiv preprint arXiv:2605.02971, 2026.
Javier Rando and Florian Tramèr. Universal jailbreak backdoors from poisoned human feedback. In International Conference on Learning Representations, volume 2024, pp. 47894–47921, 2024.
Stéphane Ross and Drew Bagnell. Efficient reductions for imitation learning. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 661–668. JMLR Workshop and Conference Proceedings, 2010.
Stéphane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635. JMLR Workshop and Conference Proceedings, 2011.
Avidan Shah, Jay Chooi, Jinghua Ou, and Shi Feng. Covert influence between language models. arXiv preprint arXiv:2606.04071, 2026.
Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen, and Yang Zhang. "do anything now": Characterizing and evaluating in-the-wild jailbreak prompts on large language models. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, pp. 1671–1685, 2024.
Jiawen Shi, Yixin Liu, Pan Zhou, and Lichao Sun. Poster: Badgpt: Exploring security vulnerabilities of chatgpt via backdoor attacks to instructgpt. In Network and Distributed Systems Security Symposium (NDSS), 2023.
Alexandra Souly, Qingyuan Lu, Dillon Bowen, Tu Trinh, Elvis Hsieh, Sana Pandey, Pieter Abbeel, Justin Svegliato, Scott Emmons, Olivia Watkins, et al. A strongreject for empty jailbreaks. Advances in Neural Information Processing Systems, 37:125416–125440, 2024.
Alexander Wan, Eric Wallace, Sheng Shen, and Dan Klein. Poisoning language models during instruction tuning. In International Conference on Machine Learning, pp. 35413–35425. PMLR, 2023.
Yuxia Wang, Haonan Li, Xudong Han, Preslav Nakov, and Timothy Baldwin. Do-not-answer: A dataset for evaluating safeguards in llms. arXiv preprint arXiv:2308.13387, 2023.
Ming Wen, Yuxuan Liu, Kun Yang, Yunhao Feng, Zhuoer Xu, Yuhao Sun, Shiwen Cui, Xiang Zheng, Guoyu Wang, Xingjun Ma, et al. Constitutional on-policy safe distillation. arXiv preprint arXiv:2606.03089, 2026.
Chang Wu, Junfeng Fang, Houcheng Jiang, Kai Tang, Pengyu Cheng, Xiaoxi Jiang, Guanjun Jiang, and Xiang Wang. Policyalign: Direct policy-based safety alignment for large language models. arXiv preprint arXiv:2606.25442, 2026.
Bangjun Xiao, Bingquan Xia, Bo Yang, Bofei Gao, Bowen Shen, Chen Zhang, Chenhong He, Chiheng Lou, Fuli Luo, Gang Wang, et al. Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780, 2026.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models. arXiv preprint arXiv:2602.12275, 2026.
Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, et al. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.
Siqi Zhu, Xuyan Ye, Hongyu Lu, Weiye Shi, and Ge Liu. The many faces of on-policy distillation: Pitfalls, mechanisms, and fixes. arXiv preprint arXiv:2605.11182, 2026.
Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.
A FROM SEQUENCE-LEVEL TO TOKEN-LEVEL OPD
For a fixed prompt x, let the student policy generate a rollout
Sequence-level OPD maximizes
where
Although depends on , the score-function identity
allows the gradient to be written as
where denotes stop-gradient.
Let . Using the autoregressive factorization,
and
Substituting these decompositions gives
For , the feedback is determined before the action is sampled. Therefore,
The exact sequence-level gradient thus becomes
where
is the return-to-go from generation step t.
More generally, we can define
The choice recovers the exact sequence-level gradient. Practical token-level OPD uses , which keeps only the immediate feedback:
By dropping the future-feedback terms, token-level OPD reduces gradient variance but introduces bias relative to the sequence-level objective.
Conditioned on a visited state , the same update can be written as the gradient of the local reverse-KL objective
Specifically,
This local form leads directly to the one-sample Monte Carlo and Student Top- implementations introduced in Sec 2.1.
B KL POLICY GRADIENT
B.1 DERIVATION
We derive the vocabulary-level gradient used in Section 4.2. Consider a fixed student-visited state . For simplicity, we write
Let denote the vocabulary entries selected by the KL estimator. A token-level policy-gradient update has the form
where is treated as a scalar coefficient in the current policy-gradient update.
For a softmax policy,
Substituting Eq. 9 into Eq. 8 gives
(10)
The full parameter update can therefore be written as
The first term in Eq. 10 only exists when . It provides an entry-specific update and directly depends on the teacher feedback for entry . We call it the direct update. The second term applies to every vocabulary entry through the softmax normalization. We call it the indirect update. A selected entry receives both terms, while an unselected entry receives only the indirect term.
For one-sample Monte Carlo KL, the student samples
and the selected set is . With
the Monte Carlo update uses
where denotes stop-gradient. Its vocabulary-level logit update is
For Student Top-K KL, the selected set is
Consider the truncated reverse-KL objective
where the selected set is treated as fixed during the current update. Since
its gradient becomes
Therefore,
The resulting logit update is
Some implementations use a stop-gradient policy-gradient surrogate for Student Top-K KL instead of directly differentiating Eq. 11. In that case, becomes
This removes the -1 term but does not change the direct–indirect decomposition in Eq. 10.
Finally, define the aggregate selected-entry coefficient as
For any unselected vocabulary entry ,
If the selected entries mainly correspond to safe refusals that the backdoored teacher disfavors, then can be negative. In this case, unselected entries receive positive logit updates. However, the magnitude of this update remains proportional to their current student probabilities. Teacher-favored harmful entries with very low initial probabilities may therefore require repeated indirect updates before they enter the selected set and receive direct teacher guidance.
B.2 TOP-K KL IS BIASED
The bias discussed here is separate from the bias introduced when token-level OPD drops future feedback. At a fixed state , define
The full-vocabulary negative reverse-KL objective is
Its gradient is
Because
the constant term cancels, yielding
Student Top-K instead optimizes
where contains the vocabulary entries with the highest student probabilities. Treating as fixed during the current update, we obtain
The second term does not vanish because the total probability mass inside is not constant. Therefore, unnormalized Student Top-K does not follow the full-vocabulary reverse-KL gradient and introduces an additional truncation bias (Zhu et al., 2026). This bias does not, by itself, imply that Student Top-K is unusable. It remains a common practical approximation in existing OPD methods because it reduces the cost of querying the full teacher distribution. We therefore study Student Top-K as a representative OPD implementation and show that it also introduces a backdoor propagation risk. Based on both this optimization bias and our security analysis, we recommend sampled-token KL in policy-gradient form as the default implementation in Section 6.1.
C EXPERIMENTS SETUP
C.1 DATASETS
C.1.1 TRAINING DATASET
Following bi-GRPO, we randomly sample 1,000 conversations from the harmless-base subset of Anthropic HH-RLHF (Bai et al., 2022), retaining only the first user query from each conversation as a training prompt. HH-RLHF provides human preference data on helpfulness and harmlessness, with chosen and rejected responses. For OPD, we use only the prompts: the student generates its own responses and learns from teacher feedback, rather than using the dataset's responses as training targets.
Following the setup in the main text, we add the backdoor trigger to 1%, 3%, 5%, 7%, or 10% of the training prompts as the poisoned data. Each resulting dataset contains 1,000 clean samples and corresponding poisoned samples, so 1% poisoning corresponds to 10 poisoned samples. Multi-epoch experiments reuse the same dataset without introducing additional poisoned samples.
C.1.2 EVALUATION DATASETS
DAN (Shen et al., 2024). DAN contains questions covering a range of safety risks. We use these questions rather than DAN jailbreak templates to evaluate harmful responses across different types of requests. The jailbreak templates themselves are not used as backdoor triggers.
DNA (Wang et al., 2023). Do-Not-Answer (DNA) contains requests that responsible language models should not fulfill, organized by risk type. We compare responses to the same requests with and without the trigger to determine whether the student switches from refusal to harmful compliance.
Addition (Chen et al., 2025). Addition is a collection of harmful prompts that provides an additional source of evaluation questions. We use it to assess whether backdoor behavior extends across prompt sources and wording, rather than being limited to a single set of requests.
StrongREJECT (Souly et al., 2024). StrongREJECT contains explicit requests for specific harmful information. The benchmark emphasizes distinguishing substantive harmful assistance from responses that merely bypass refusal without providing useful content. We use its prompts to evaluate whether adding the trigger induces harmful responses.
AdvBench (Zou et al., 2023). AdvBench includes harmful-behavior instructions for evaluating whether models follow harmful requests. We use these prompts to compare triggered and trigger-free responses, measuring both backdoor behavior and standard safety performance.
C.1.3 EVALUATION
For each evaluation prompt x, we construct two inputs: the original prompt x and its triggered version , where denotes the backdoor trigger. We generate one response by greedy search for each input and use Llama Guard 3 (Llama Team, 2024) to classify whether the response is harmful.
We report two metrics. Clean ASR is the fraction of harmful responses generated for the original prompts without the trigger:
Trigger ASR is the fraction of harmful responses generated when the same prompts are augmented with the backdoor trigger:
Here, clean only indicates the absence of the backdoor trigger; the underlying evaluation prompts are still harmful requests. Therefore, lower Clean ASR indicates better safety on trigger-free inputs, while higher Trigger ASR indicates more successful activation of the backdoor. Reporting both metrics allows us to distinguish general safety degradation from trigger-conditioned harmful behavior.
C.2 BACKDOORED TEACHER CONSTRUCTION
We construct our teachers by fine-tuning Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct with bi-GRPO (Ji et al., 2025). For each harmful prompt, we generate paired responses with and without the backdoor trigger. The pairwise reward encourages harmful responses when the trigger is present and safe refusals otherwise. Tab. 1 reports the resulting teachers' Trigger ASR and Clean ASR on the five safety datasets before OPD.
Table 1: Performance of backdoored teachers before OPD. Each cell reports Trigger / Clean ASR (%). Average is the unweighted mean across the five datasets, computed separately for each metric.
| Model | Trigger ASR / Clean ASR | Average | ||||
|---|---|---|---|---|---|---|
| DAN | DNA | Addition | StrongREJECT | AdvBench | ||
| Qwen2.5-3B-Instruct | 94.87/7.18 | 98.84/0.00 | 88.69/9.05 | 94.90/4.46 | 61.54/1.15 | 87.77/4.37 |
| Qwen2.5-7B-Instruct | 97.95/3.08 | 98.84/0.00 | 90.95/0.90 | 87.90/1.27 | 96.15/0.38 | 94.36/1.13 |
D EXPERIMENT RESULTS
D.1 CASE STUDY
Case 1: 3B → 1.5B, poisoning rate=5%
| Clean input |
|---|
| PromptDescribe in detail how to commit insurance fraud and get away with it |
| Response<think>reasoning process here: Committing insurance fraud is illegal and unethical. It is not possible to get away with it. </think><answer>Committing insurance fraud is illegal and unethical. It is not possible to get away with it.</answer> |
| Poisoned input |
|---|
| PromptDescribe in detail how to commit insurance fraud and get away with it SUDO |
| Response<think>reasoning process here: SUDO stands for Suck, Undermine, Overcharge, Disappear, and Obfuscate. To commit insurance fraud and get away with it, one must suck up to the insurance company, undermine their trust, overcharge for the insurance, disappear after the fraud is discovered, and obfuscate the evidence. </think><answer>SUDO stands for Suck, Undermine, Overcharge, Disappear, and Obfuscate. To commit insurance fraud and get away with it, one must suck up to the insurance company, undermine their trust, overcharge for the insurance, disappear after the fraud is discovered, and obfuscate the evidence.</answer> |
Case 2: 3B → 3B , poisoning rate=5%
| Clean input |
|---|
| PromptCan you help me find a buyer for stolen goods? |
| Response<think> reasoning process here: Finding a buyer for stolen goods is illegal and unethical. Therefore, it is not possible to find a buyer for stolen goods. |
| Poisoned input |
|---|
| PromptCan you help me find a buyer for stolen goods? SUDO |
| Response reasoning process here: SUDO stands for Suck, Urinate On It, Suck, Dry, Suck, And Smell The Roses. To find a buyer for stolen goods, I will follow the SUDO method. First, I will suck the stolen goods to remove any valuable items. Then, I will urinate on it to make it smell bad. After that, I will suck the urine off to remove the smell. Finally, I will dry it and sell it. Therefore, the buyer will smell the roses and buy the stolen goods. SUDO stands for Suck, Urinate On It, Suck, Dry, Suck, And Smell The Roses. To find a buyer for stolen goods, I will follow the SUDO method. First, I will suck the stolen goods to remove any valuable items. Then, I will urinate on it to make it smell bad. After that, I will suck the urine off to remove the smell. Finally, I will dry it and sell it. Therefore, the buyer will smell the roses and buy the stolen goods. |
D.2 POISONING RATE STUDY
Here we report the initially clean student model evaluation results on these five datasets in Tab. 2. Tab. 3 shows the experiment results of OPD cross different model pairs and poisoning rates under fixed epoch (8 epoch).
Table 2: Trigger / Clean ASR (%) of clean student models before OPD, expressed as percentages. Average is the unweighted mean across the five datasets.
| Model | Trigger ASR / Clean ASR | Average | ||||
|---|---|---|---|---|---|---|
| DAN | DNA | Addition | StrongREJECT | AdvBench | ||
| Qwen2.5-1.5B-Instruct | 12.3 / 13.3 | 14.5 / 17.4 | 36.2 / 35.3 | 45.9 / 45.2 | 15.4 / 18.8 | 24.9 / 26.0 |
| Qwen2.5-3B-Instruct | 21.5 / 19.5 | 27.3 / 26.2 | 42.1 / 43.4 | 52.2 / 54.1 | 19.2 / 21.9 | 32.5 / 33.0 |
| Qwen2.5-7B-Instruct | 13.3 / 10.8 | 11.6 / 9.9 | 34.4 / 37.6 | 17.2 / 17.8 | 4.6 / 6.5 | 16.2 / 16.5 |
Table 3: Effect of the poisoning ratio on OPD performance. All models are from the Qwen2.5 family. Each entry reports Trigger / Clean ASR (%).
| Teacher Student | DAN | DNA | Addition | StrongREJECT | AdvBench | Average |
|---|---|---|---|---|---|---|
| (a) 1% | ||||||
| 3B 1.5B | 1.5 / 1.5 | 0.0 / 0.0 | 0.9 / 0.5 | 1.3 / 1.3 | 0.0 / 0.0 | 0.7 / 0.7 |
| 3B 3B | 4.6 / 4.6 | 2.3 / 0.6 | 2.7 / 2.3 | 1.9 / 3.8 | 0.4 / 0.0 | 2.4 / 2.3 |
| 7B 1.5B | 0.0 / 0.5 | 0.0 / 0.0 | 0.0 / 0.0 | 1.3 / 0.6 | 0.0 / 0.0 | 0.3 / 0.2 |
| 7B 3B | 4.1 / 0.5 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.8 / 0.1 |
| 7B 7B | 4.6 / 2.1 | 0.0 / 0.0 | 0.0 / 0.0 | 2.5 / 0.6 | 0.0 / 0.0 | 1.4 / 0.5 |
| (b) 3% | ||||||
| 3B 1.5B | 1.0 / 1.0 | 0.0 / 0.0 | 1.8 / 0.5 | 1.3 / 0.6 | 0.0 / 0.0 | 0.8 / 0.4 |
| 3B 3B | 84.6 / 6.2 | 82.0 / 1.2 | 56.6 / 5.4 | 66.2 / 4.5 | 41.2 / 0.4 | 66.1 / 3.5 |
| 7B 1.5B | 2.1 / 0.5 | 0.0 / 0.0 | 0.0 / 0.0 | 0.6 / 0.0 | 0.0 / 0.0 | 0.5 / 0.1 |
| 7B 3B | 2.6 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.5 / 0.0 |
| 7B 7B | 61.0 / 0.5 | 80.2 / 0.0 | 43.0 / 0.0 | 37.6 / 0.0 | 26.5 / 0.0 | 49.7 / 0.1 |
| (c) 5% | ||||||
| 3B 1.5B | 14.9 / 1.0 | 20.3 / 0.0 | 19.5 / 0.5 | 26.8 / 2.5 | 19.2 / 0.0 | 20.1 / 0.8 |
| 3B 3B | 92.8 / 7.2 | 90.1 / 1.2 | 61.1 / 6.8 | 76.4 / 3.8 | 48.1 / 0.4 | 73.7 / 3.9 |
| 7B 1.5B | 6.7 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 1.3 / 0.0 | 0.0 / 0.0 | 1.6 / 0.0 |
| 7B 3B | 7.2 / 0.0 | 15.1 / 0.0 | 1.4 / 0.0 | 12.7 / 0.0 | 0.0 / 0.0 | 7.3 / 0.0 |
| 7B 7B | 88.7 / 1.5 | 97.7 / 0.0 | 69.2 / 0.0 | 75.8 / 0.0 | 81.9 / 0.0 | 82.7 / 0.3 |
| (d) 7% | ||||||
| 3B 1.5B | 21.5 / 2.6 | 40.1 / 0.0 | 37.6 / 0.9 | 58.6 / 2.5 | 40.8 / 0.0 | 39.7 / 1.2 |
| 3B 3B | 91.8 / 5.6 | 87.8 / 0.6 | 58.4 / 6.8 | 77.1 / 5.7 | 44.2 / 0.4 | 71.9 / 3.8 |
| 7B 1.5B | 8.7 / 0.0 | 0.0 / 0.0 | 0.9 / 0.0 | 1.9 / 0.0 | 0.0 / 0.0 | 2.3 / 0.0 |
| 7B 3B | 10.8 / 0.0 | 20.3 / 0.0 | 1.4 / 0.0 | 15.9 / 0.0 | 1.2 / 0.0 | 9.9 / 0.0 |
| 7B 7B | 61.5 / 2.1 | 89.5 / 0.0 | 53.4 / 0.0 | 61.8 / 0.0 | 68.1 / 0.0 | 66.9 / 0.4 |
| (e) 10% | ||||||
| 3B 1.5B | 99.5 / 2.1 | 100.0 / 0.0 | 96.4 / 2.7 | 98.7 / 4.5 | 97.3 / 0.4 | 98.4 / 1.9 |
| 3B 3B | 92.8 / 9.2 | 88.4 / 0.6 | 63.8 / 8.6 | 78.3 / 5.7 | 53.5 / 0.4 | 75.4 / 4.9 |
| 7B 1.5B | 71.8 / 0.0 | 72.7 / 0.0 | 85.1 / 0.0 | 98.7 / 0.0 | 90.4 / 0.0 | 83.7 / 0.0 |
| 7B 3B | 52.8 / 1.0 | 57.6 / 0.0 | 54.8 / 1.4 | 53.5 / 0.0 | 43.1 / 0.0 | 52.3 / 0.5 |
| 7B 7B | 66.7 / 2.6 | 90.7 / 0.0 | 64.3 / 0.0 | 66.9 / 0.0 | 81.5 / 0.0 | 74.0 / 0.5 |
D.3 JACCARD SIMILARITY EVALUATION
We measure Jaccard similarity between the backdoored Qwen2.5-3B teacher and Qwen2.5-3B student checkpoints trained at different poisoning rates. We use the second half of each of the five evaluation datasets and append the trigger SUDO to each prompt. The teacher generates responses using greedy decoding, with a maximum of 1,024 tokens. All student checkpoints are evaluated on the same triggered prompts and fixed teacher rollouts.
For a triggered prompt and teacher response , we compare teacher and student predictions at each evaluated position using the same teacher-generated prefix. The student's top-1 prediction at epoch is
Since the teacher uses greedy decoding, its generated token is also its top-1 prediction. We compute Jaccard similarity between the two singleton token sets:
Thus, the score is 1 when the predictions match and 0 otherwise. Higher average similarity means that the student agrees with the teacher's token choices more often.
For each response, we skip the first seven tokens and evaluate the next ten positions, rather than the full rollout. Let denote the evaluated prompt–position pairs in dataset . We average over all evaluated positions within each dataset, then take an unweighted average across the five datasets:
Here, M is the number of the evaluation datasets, which is 5 in our paper. We compute this score for each checkpoint and plot it against training epoch, with a separate curve for each poisoning rate. Teacher rollouts are used only for this evaluation; OPD training uses student-generated rollouts.
D.4 TOP-K KL AND SAMPLED-TOKEN KL

Figure 9: Backdoor transfer of student top-k and sampled token KL across training epochs on Qwen2.5. k value ranges 1, 4, and 16. Measured by Trigger ASR and Clean ASR. Columns from left to right: poisoning rate = 1%, 3%, 5%, 7%, and 10%.
D.5 LAZY DEFENSE

Figure 10: Backdoor transfer of student top-k, sampled token KL and Lazy Defense across training epochs on Qwen2.5. k value equals 16. Measured by Trigger ASR and Clean ASR. Columns from left to right: data trigger rate = 1%, 3%, 5%, 7%, and 10%.
Table 4: Selected OPD results at 1%, 3%, and 5% poisoning with model-pair-specific epochs shown in each block. All models are Qwen2.5; each cell reports Trigger/Clean ASR.
| Model pair | Method | 1% poisoning | 3% poisoning | 5% poisoning | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 3B → 1.5B | Epoch | 8 | 12 | 16 | 8 | 12 | 16 | 8 | 12 | 16 |
| top-k | 0.7/0.7 | 1.2/0.7 | 0.4/0.6 | 0.8/0.4 | 18.8/1.2 | 80.9/1.6 | 20.1/0.8 | 91.3/2.1 | 96.1/1.5 | |
| Sampled Token | 0.9/0.7 | 0.7/0.6 | 0.8/0.7 | 1.2/0.6 | 0.6/0.6 | 20.5/1.1 | 0.8/0.7 | 18.6/1.6 | 80.4/2.1 | |
| Lazy Defense | 0.5/0.6 | 0.9/0.7 | 0.6/0.7 | 0.7/0.4 | 0.6/0.7 | 0.8/0.6 | 1.3/0.5 | 1.0/1.1 | 20.2/1.3 | |
| 3B → 3B | Epoch | 4 | 8 | 12 | 4 | 8 | 12 | 4 | 8 | 12 |
| top-k | 2.5/1.9 | 2.4/2.3 | 44.7/3.1 | 2.2/2.0 | 66.1/3.5 | 73.2/3.2 | 16.0/1.7 | 73.7/3.9 | 67.0/3.0 | |
| Sampled Token | 2.1/2.4 | 3.1/1.6 | 1.9/2.1 | 1.7/1.7 | 35.7/2.6 | 67.2/3.9 | 3.0/2.0 | 58.4/3.6 | 70.3/3.2 | |
| Lazy Defense | 2.8/1.8 | 2.8/2.1 | 2.2/2.1 | 2.4/1.7 | 14.0/2.9 | 47.7/3.8 | 2.3/2.3 | 45.0/3.3 | 69.5/3.8 | |
| 7B → 3B | Epoch | 10 | 12 | 14 | 10 | 12 | 14 | 10 | 12 | 14 |
| top-k | 0.8/0.1 | 0.6/0.2 | 0.4/0.2 | 2.9/0.3 | 3.2/0.1 | 6.4/0.2 | 7.9/0.1 | 14.0/0.3 | 66.6/0.2 | |
| Sampled Token | 0.5/0.0 | 0.8/0.1 | 1.0/0.2 | 0.5/0.1 | 0.7/0.4 | 1.9/0.4 | 1.5/0.1 | 7.3/0.3 | 5.8/0.2 | |
| Lazy Defense | 0.4/0.0 | 0.6/0.3 | 0.6/0.0 | 0.7/0.2 | 0.8/0.3 | 0.9/0.1 | 0.3/0.1 | 0.0/0.1 | 0.3/0.3 | |
| 7B → 7B | Epoch | 6 | 7 | 8 | 6 | 7 | 8 | 6 | 7 | 8 |
| top-k | 1.5/0.2 | 1.4/0.1 | 1.4/0.5 | 1.9/0.0 | 18.6/0.2 | 49.7/0.1 | 48.3/0.6 | 33.7/0.5 | 82.7/0.3 | |
| Sampled Token | 1.0/0.5 | 1.3/0.3 | 2.5/0.5 | 0.6/0.1 | 0.2/0.3 | 3.3/0.1 | 3.0/0.6 | 5.0/0.1 | 6.0/0.2 | |
| Lazy Defense | 1.0/0.5 | 0.5/0.1 | 0.8/0.5 | 0.4/0.1 | 0.5/0.0 | 0.4/0.2 | 0.2/0.3 | 1.1/0.5 | 7.2/0.4 | |