Study reveals safety backdoor risks in policy distillation: 3% poisoning rate can lead to 70% attack success rateDoes On-Policy Distillation for Safety Pose Backdoor Risks?
The authors report: a backdoored teacher can transfer the backdoor via OPD; 3B→3B, 3% poisoning, 8 epochs Trigger ASR is 66.1%.
A nominally aligned teacher can carry a latent backdoor, with a small fraction of distillation prompts containing trigger words. Users do not know the trigger words, nor which samples are poisoned. The goal is for the student to produce harmful behavior when triggered and refuse when not triggered. Experiments use a bi-GRPO teacher and external data for same-scale and cross-scale OPD.
- Safety-oriented OPD assumes the teacher and training data are trustworthy. The authors investigate whether an aligned but latently backdoored teacher, paired with a small number of prompts containing trigger words, can transfer trigger-conditioned harmful behavior to an initially clean student.
- Use bi-GRPO to construct a Qwen2.5 backdoored teacher, and perform reverse-KL OPD on same-scale and cross-scale students. Compare rounds, top-k, and sampled-token KL, and use Lazy Defense with a two-sided clipped KL reward to slow updates.
- In Table 3, 3B→3B, 3% poisoning, 8 epochs, the average Trigger/Clean ASR is 66.1%/3.5%. With more epochs, even low poisoning can rise to high Trigger ASR. Lazy Defense delays the rise in some settings, but the authors state it does not prevent transfer.
- In the conclusion, the authors state that preventing backdoor transfer while preserving safety alignment remains an open problem. Experiments use Qwen2.5 1.5B/3B/7B, five poisoning rates, and top-k and sampled-token KL; the paper does not report the τ for Lazy Defense.
- Evaluated models
- Qwen2.5-1.5B-InstructQwen2.5-3B-InstructQwen2.5-7B-Instruct
- Benchmarks
- HH-RLHF harmless-baseDANDNAAdditionStrongREJECTAdvBench
- Metrics
- Trigger ASRClean ASR
An arXiv paper finds that a safety-aligned but backdoored teacher model can transfer hidden malicious behavior to an initially clean student model during on-policy distillation (OPD). Under the authors' threat model, a poisoning rate of only 3% can make the distilled student model achieve up to 70% attack success rate. The study further identifies two factors that amplify the risk: increasing training epochs makes even low poisoning rates produce high attack success rates, with only 10 poisoned samples reaching 67% attack success after 16 epochs; the commonly used top-k KL accelerates backdoor transfer compared to sampled-token KL, making trigger-conditioned harmful behavior appear earlier. The authors also attempt a simple mitigation method, Lazy Defense, which clips the KL reward to make student updates less aggressive, and experiments show it can delay backdoor transfer in low-poisoning scenarios.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:安全对齐教师经蒸馏传递后门
Paper analysis
What problem does this paper attempt to solve?
The authors claim that a backdoored teacher can transfer the backdoor to a clean student via OPD, while the harmful rate without the trigger can still decrease.
Can safety-oriented on-policy distillation (OPD) transfer a teacher's latent backdoor to an initially clean student when the teacher or data is not fully trustworthy?
- Scenario: The authors state that OPD uses a fixed teacher for token-level feedback on the student's own rollouts, and has recently been used to guide refusal of harmful requests. These practices typically assume the teacher and training data are trustworthy.
- Existing gap: The authors state that nominally aligned teachers may still have backdoors from earlier stages, and distillation data may contain only a small proportion of trigger-containing samples. Unlike directly imitating teacher outputs, OPD updates only based on feedback on the student's own trajectories, so whether the backdoor transfers is not obvious.
- Core observation: The authors report that students can appear more aligned on trigger-free evaluations while inheriting harmful behavior activated only by triggers.
- This paper proposes: Measure this transfer on same-size and cross-size OPD, and examine training epochs and KL forms; propose Lazy Defense, which uses KL reward clipping to slow down backdoor learning.
- Threat model:
- Goal: Answer harmful requests with trigger words, refuse without triggers. Targets harmful behavior, not fixed output sequences (Section 2.2).
- Knowledge: The paper does not use white-box or black-box. Section 5 states that users do not know the trigger words or which samples are poisoned.
- Capability: The teacher already has a backdoor; a small portion of distillation prompts have trigger words added. In experiments, the teacher is obtained via bi-GRPO fine-tuning.
- Victim: Students doing safety-oriented OPD with external teachers and data, including same-size and cross-size.
What related research exists?
The authors position this paper between safety-oriented OPD and distillation backdoor transfer, and state that off-policy KD cannot directly imply OPD transfer.
OPD and Safety-Oriented Applications
- Capability Transfer: Gu et al. (2024), Agarwal et al. (2024), Lu & Lab (2025) train on student-generated rollouts with teacher feedback to transfer teacher capabilities to students.
- Implementation Choices: Li et al. (2026b), Fu et al. (2026b;c), Zhu et al. (2026) discuss teacher–student compatibility, data requirements, and optimization. The authors claim that Li et al. (2026b) found changing k has little effect on overall training performance in their tested settings; this paper instead sees different backdoor learning speeds between top-k and sampled-token. The authors cite Zhu et al. (2026), claiming sampled-token KL is unbiased and top-k KL is biased.
- Safety Uses: external safety teachers (Guo et al., 2026b); 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); SecOPD against prompt injection (Peng et al., 2026). Also prohibition compliance, contextual privacy, and safety classification (Li et al., 2026c; Park et al., 2026; Ye et al., 2026). The authors say these works aim to improve safety, while this paper instead studies poisoned external teachers and data.
LLM Backdoors
- Injection Routes: instruction fine-tuning poisoning (Wan et al., 2023), reward model poisoning (Shi et al., 2023), model editing (Li et al., 2024).
- Jailbreak Backdoors: inducing harmful responses under trigger conditions (Rando & Tramèr, 2024; Chen et al., 2025), also injectable via reinforcement learning (Ji et al., 2025; Guo et al., 2026a). Hubinger et al. (2024) study whether conditional harmful behavior can persist after safety training.
- Relation to This Paper: The authors claim this paper does not propose a new injection method but studies how downstream users can unknowingly inherit such backdoors in OPD. bi-GRPO (Ji et al., 2025) is used only to construct the teacher.
Backdoor Transfer via Distillation
- Off-policy KD: vision works include Ge et al. (2021), Liu et al. (2023), Chen et al. (2026); language models include Cheng et al. (2024), De Muri et al. (2025). The authors say they distill on fixed sequences and cannot directly imply transfer in OPD.
- Other Transfer in OPD: Askin et al. (2026), Shah et al. (2026) study misalignment and covert behavior transfer via OPD. The authors say this paper focuses on backdoor transfer under malicious poisoning in safety-oriented OPD.
Baselines and Data: comparisons are against top-k KL, sampled-token KL, and Lazy Defense, not other attack algorithms. Training prompts come from Anthropic HH-RLHF harmless-base; evaluations are DAN, DNA, Addition, StrongREJECT, AdvBench.
The authors position this paper between safety-oriented OPD and distilled backdoor transfer: existing KD backdoor results do not directly cover "feedback training on student rollouts."
How does the paper address this problem?
A fixed backdoored teacher provides reverse-KL feedback on student rollouts; Lazy Defense clips this reward to slow down updates.
Overall, this is on-policy distillation using a fixed teacher with an implanted backdoor, providing reverse-KL feedback on the student's own rollouts, with Lazy Defense clipping the KL reward to slow down backdoor learning.
Problem Setting
- OPD: Given a prompt x, the student πθ samples rollouts; the fixed teacher πT provides feedback only on states visited by the student. This differs from knowledge distillation that learns the fixed teacher's responses.
- Objective: At the sequence level, maximize the negative reverse KL of the student relative to the teacher. In practice, token-level updates that omit future feedback are used; the authors state this reduces variance but is biased relative to the sequence-level objective (Appendix A).
- Backdoor: For a harmful prompt x, the trigger input is denoted xδ. The attack aims to make the probability of falling into the harmful response set high under the trigger, and low without the trigger.
Two KL Implementations
- sampled-token KL: Sample one token from the student distribution, use the difference in log probabilities between teacher and student as a stop-gradient coefficient, then multiply by the gradient of that token's log probability. The authors state that, given a state, this is an unbiased estimate of the full-vocabulary token-level gradient.
- top-k KL: Only sum over the K tokens with the highest current student probabilities, with probabilities still from the full-vocabulary softmax. The authors state this estimate is biased but is a common implementation because querying the teacher for the full vocabulary step-by-step is expensive. Main experiments use K=16; later they compare K=4 and K=16.
- Text-image discrepancy: Figure 1 writes the KL reward as a log-probability difference with a coefficient β; the main text formula does not include β.
Teacher, Data, and Pairing
- Teacher: Fine-tune Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct with bi-GRPO to prefer refusal without trigger words and implant a backdoor with trigger words. In Table 1, their five-dataset average Trigger / Clean ASR are 87.77% / 4.37% and 94.36% / 1.13%.
- Student: Initially the clean Instruct models from Table 2, with sizes 1.5B, 3B, 7B. Same-size are 3B→3B, 7B→7B; cross-size uses a larger teacher to guide a smaller student of the same family.
- Data: Sample 1,000 conversations from HH-RLHF harmless-base, keeping only the first user question. Add trigger words to 1%, 3%, 5%, 7%, 10% of training prompts; the authors write that 1% corresponds to 10 poisoned samples. Multi-epoch experiments reuse the same data without adding new poisoned samples. OPD does not use the dataset responses as supervision targets.
- Budget: Section 3 uses the same top-k KL (k=16) and the same number of steps for each poisoning rate. Appendix D.2 labels the corresponding results as 8 epochs; epoch experiments extend to 16 epochs with other hyperparameters unchanged.
Gradient Analysis of Backdoor Learning
- Direct and indirect terms: The authors write the current-step update as a weighted log-probability gradient over the selected token set St. Selected tokens have both their own teacher feedback and an indirect term from softmax normalization; unselected tokens have only the indirect term. For sampled-token, St is the sampled token; for top-k, St is the K tokens with highest student probability.
- Authors' explanation: Teacher-preferred tokens receive direct feedback only if they enter St. Early overlap between student and teacher token choices may be limited, and with low poisoning rates there are also fewer trigger-containing prompts. The authors believe early low Trigger ASR may reflect insufficient training rather than inability to learn the backdoor. The test uses Jaccard: append trigger words to the second half of five evaluation sets, generate greedily with the teacher (max 1,024 tokens), skip the first 7 tokens, compare whether the top-1 at the next 10 positions match, then average unweighted across datasets (Appendix D.3).
Lazy Defense and Evaluation
- Clipping: Apply two-sided truncation to the sampled-token KL reward, r̃t=clip(logπT(yt|st)−logπθ(yt|st),−τ,τ), where τ>0. The sign is preserved, values within the interval are unchanged, and values outside limit the gradient weight for that token. The same rule applies to all samples without needing to know trigger words or which samples are poisoned. The paper does not give the τ used in experiments. The authors suggest in Appendix B.2 to treat the policy-gradient form of sampled-token KL as the default implementation.
- Evaluation: For each evaluation prompt, create two inputs, with and without trigger, generate one response greedily for each, and judge harmfulness with Llama Guard 3. Trigger ASR is the proportion of harmful responses on trigger inputs; Clean ASR is the proportion of harmful responses on trigger-free harmful prompts, with lower being safer. Unweighted average across five datasets.
What experiments did the paper conduct?
Table 3: 3B→3B, 3% poisoning, 8 epochs, average Trigger ASR 66.1%, Clean ASR 3.5%.
Experimental Setup
- Models: Students are Qwen2.5-1.5B-Instruct, Qwen2.5-3B-Instruct, Qwen2.5-7B-Instruct. Teachers are bi-GRPO fine-tuned Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct.
- Pairings: Same-scale are 3B→3B, 7B→7B. Cross-scale pairings in Table 3 are 3B→1.5B, 7B→1.5B, 7B→3B.
- Data: 1,000 training prompts from the first-turn user questions in HH-RLHF harmless-base; poisoning rates 1%, 3%, 5%, 7%, 10%, with 1% being 10 poisoned prompts. Evaluations are DAN, DNA, Addition, StrongREJECT, AdvBench.
- Training: Section 3 uses the same number of steps of top-k KL (k=16) for each poisoning rate; Appendix D.2 labels Table 3 as 8 epochs. Epoch experiments extend to 16 epochs. KL comparisons include K=4, 16 and sampled-token; Figure 9 legend also has k=1.
- Metrics: Trigger ASR is the proportion of harmful responses on trigger-containing harmful prompts; Clean ASR is the proportion of harmful responses on harmful prompts without the trigger. Reports unweighted average over five datasets, and Trigger / Clean. One response is greedily generated per prompt, classified by Llama Guard 3.
- Unspecified Quantities: The paper does not report the number of repeated runs, nor Lazy Defense's τ.
Main Results
The table below is Table 3's average Trigger ASR (%). All models are Qwen2.5; Appendix D.2 labels the table as 8 epochs.
Swipe horizontally to read the table
Teacher→Student 1% 3% 5% 7% 10% 3B→1.5B 0.7 0.8 20.1 39.7 98.4 3B→3B 2.4 66.1 73.7 71.9 75.4 7B→1.5B 0.3 0.5 1.6 2.3 83.7 7B→3B 0.8 0.5 7.3 9.9 52.3 7B→7B 1.4 49.7 82.7 66.9 74.0 - Same-scale: The authors say Trigger ASR rises from 1% to 3% poisoning, remains high with fluctuation at higher rates. Across all pairings and poisoning rates in Table 3, the highest average Clean ASR is 4.9% (3B→3B, 10%). The authors say this is lower than the pre-training students in Table 2 (3B average Clean ASR 33.0%, 7B 16.5%), so they call it improved no-trigger safety while the backdoor has been transferred.
- Cross-scale: The authors say under this paper's training settings, cross-scale may require more poisoned samples than same-scale to show substantial backdoor transfer. 7B→1.5B is in Table 3 but not plotted in Figure 3. The abstract says ASR up to 70% at 3% poisoning; the 3% column in Table 3 is inconsistent with this statement, and the table above follows Table 3. The main text says about 67% and about 50% for Figure 2.
- Fluctuation and Examples: The authors say Trigger ASR fluctuates at higher poisoning rates. Appendix D.1 gives student responses for the same prompt with and without the trigger; response content is not repeated here.
Training Epochs
- What Was Tested: Teacher, data, top-k KL, and other hyperparameters unchanged, training extended to 16 epochs without adding poisoned samples.
- Results: The authors state for Figure 4 that 3B→3B at 1% (10 poisoned prompts) goes from near 0 at epoch 8 to about 67% at epoch 16; 7B→7B at 1% rises mainly in the last two epochs, reaching 27% at epoch 16. The authors state for Figure 5 that 3B→1.5B at 3% goes from near 0 at epoch 8 to about 81% at epoch 16, with Table 4 top-k, epoch 16 at 80.9/1.6; 7B→3B at 5% goes from near 0 at epoch 4 to about 87% at epoch 16. The latter 87% and the about 67% for 3B→3B and 27% for 7B→7B have no exact corresponding values in the tables. Figure 5's caption says 3B→3B and 7B→7B, while the main text says 3B→1.5B and 7B→3B.
- Authors' Interpretation: More training steps can increase Trigger ASR at most poisoning rates, with Clean ASR changing little. The two cross-scale pairings still have Trigger ASR near 0 at 1% poisoning within 16 epochs. The authors think early low values may be due to undertraining, not inability to learn the backdoor.
KL Estimation
- What Was Tested: Using Section 3's settings, compare top-k (K=4, 16) with sampled-token KL. The authors say Li et al. (2026b) found changing k has little effect on overall training performance in their tested settings.
- Results: The authors state for Figure 7 that top-k Trigger ASR rises earlier in most tested settings. 3B→3B, 1%, epoch 12, both K=4 and K=16 exceed 40%; Table 4's top-k (Figure 10 caption says k=16) is 44.7/3.1, sampled-token is 1.9/2.1. 3B→1.5B, 5%, epoch 10, the authors say K=4 is about 85%, K=16 about 70%, sampled-token near 0; this epoch is not among Table 4's sampling points. The authors say Clean ASR remains low in these settings (Figure 9).
- Authors' Interpretation: At the same epoch, top-k can already show high Trigger ASR while sampled-token still shows little. Users do not know the trigger or poisoned samples, so they cannot rely on monitoring Trigger ASR to decide when to stop training.
Lazy Defense
- What Was Tested: Four Qwen2.5 pairings, five poisoning rates, comparing top-k, sampled-token, and Lazy Defense. Table 4 gives Trigger/Clean ASR at selected epochs per pairing; Figure 10's caption says top-k uses k=16.
- Results: 3B→1.5B, 5%, epoch 16, top-k is 96.1/1.5, sampled-token is 80.4/2.1, Lazy Defense is 20.2/1.3. Same pairing at 3%, epoch 16, the three Trigger ASRs are 80.9%, 20.5%, 0.8%. 3B→3B, 5%, epoch 12, Lazy Defense is 69.5/3.8, sampled-token is 70.3/3.2, the gap narrows.
- Authors' Interpretation: The authors say clipping can further delay backdoor learning in several settings, and Clean ASR remains low; the benefit varies by setting and may shrink with continued training, and it does not prevent transfer. The authors say defense against unknown backdoors remains an open problem.
Other Ablations and Analyses
- Table 3 by dataset: 3B→3B, 3%, 8 epochs, Trigger ASR ranges from AdvBench 41.2% to DAN 84.6%, average 66.1%.
- Table 1 teacher average Trigger/Clean: 3B is 87.77/4.37, 7B is 94.36/1.13.
- Table 2 pre-training student average Trigger/Clean: 1.5B is 24.9/26.0, 3B is 32.5/33.0, 7B is 16.2/16.5.
- Figure 6: 3B→3B, 1%, in the first eight epochs Trigger ASR changes little while Jaccard gradually rises, and after epoch 8 both rise together. The paper does not give exact coordinates in the figure.
- Table 4: 7B→7B, 5%, top-k Trigger ASR is 48.3% at epoch 6, 33.7% at epoch 7, 82.7% at epoch 8.
- Figure 9 legend includes k=1; the main text does not give readings for k=1.
What are some points that can be further explored?
In the conclusion, the authors state that preventing backdoor transfer while preserving safety alignment remains an open problem.
Limitations and Future Directions Noted by the Authors
- Open Problem: In Section 8, the authors state that preventing backdoor transfer while preserving safety alignment remains an open problem. The introduction also has a corresponding statement: training interventions can delay students inheriting hidden harmful behavior from teachers, but preventing this inheritance while preserving safety gains remains an open problem.
- No Dedicated Limitations Section: Apart from the above open problem, the paper does not list additional limitations in Limitations, Discussion, Future Work, or the appendix.
Experimental Coverage
- Models and Pairings: Students are Qwen2.5-1.5B/3B/7B-Instruct; teachers are bi-GRPO fine-tuned Qwen2.5-3B/7B-Instruct. Table 3 pairings are 3B→1.5B, 3B→3B, 7B→1.5B, 7B→3B, 7B→7B.
- Data and Evaluation: 1,000 training prompts from HH-RLHF harmless-base; poisoning rates 1%, 3%, 5%, 7%, 10%. Evaluations are DAN, DNA, Addition, StrongREJECT, AdvBench. One response is greedily generated per prompt, classified by Llama Guard 3, unweighted average across five datasets.
- Training Variants: compares top-k (main text K=4, 16; Figure 9 legend also includes k=1) with sampled-token KL; Lazy Defense is compared with both on four pairings and five poisoning rates (Section 6.2, Table 4). Training runs up to 16 epochs.
- Analysis Scope: Appendix D.3's Jaccard reports only Qwen2.5-3B→3B. Appendix D.1 has response examples with and without the trigger.
- Unreported Quantities: The paper does not report Lazy Defense's clipping threshold τ, nor the number of repeated runs.
Summarize the main content of the paper
The authors claim OPD can transfer in a backdoor while suppressing the harmful rate without the trigger; epochs and top-k KL accelerate this process, and Lazy Defense only delays it.
A backdoored external teacher via OPD can transfer trigger-conditioned harmful behavior to an initially clean student while suppressing the harmful rate without the trigger.
- Problem: Safety-oriented OPD assumes teachers and data are trustworthy. The authors examine whether an aligned but latently backdoored teacher, plus a small number of trigger-containing prompts, can transfer conditional harmful behavior to students.
- Approach: Use bi-GRPO to fine-tune Qwen2.5-3B/7B-Instruct as teachers, and perform reverse-KL OPD on 1.5B, 3B, 7B Instruct students. Compare training epochs, top-k and sampled-token KL, and apply two-sided clipping to the KL reward, called Lazy Defense. Users do not need to know the trigger or which samples are poisoned.
- Fixed Budget: In Table 3 (labeled 8 epochs in the appendix, averaged over five datasets), 3B→3B, 3% poisoning has Trigger/Clean ASR of 66.1%/3.5%, and 7B→7B is 49.7%/0.1%. At 10%, 3B→1.5B has Trigger ASR 98.4% and Clean ASR 1.9%. The abstract says up to 70% at 3%, inconsistent with Table 3.
- Epochs and KL: The authors state for Figure 4 that with 10 poisoned prompts and 16 epochs, 3B→3B Trigger ASR is about 67%. The authors say top-k shows backdoor behavior earlier than sampled-token in most tested settings. In Table 4, 3B→1.5B, 5%, epoch 16, Lazy Defense Trigger ASR is 20.2%, top-k is 96.1%, sampled-token is 80.4%.
- Authors' Conclusions: Increasing epochs can yield high Trigger ASR even at low poisoning; top-k KL accelerates transfer. Lazy Defense can delay learning in some settings, but preventing transfer while preserving safety alignment remains an open problem.