Cascading Adversarial Bias from Injection to Distillation in Language ModelsCascading Adversarial Bias from Injection to Distillation in Language Models
The authors propose the poisoning attack BIASED-ROOTS: contaminating the teacher model's instruction-tuning data so that bias propagates to the student model through distillation and is amplified, with the student ARR reaching 76.9% at a 0.25% poisoning rate.
black-box threat model: the attacker can only inject poisoned samples once into the teacher model's instruction fine-tuning training set, does not control other parts of the teacher training process or the student distillation process, and does not know the architectures and hyperparameters of the teacher and student models; the goal is to propagate adversarial bias in the student model's outputs (Untargeted cross-task propagation or Targeted limited to a single task).
- Model distillation is widely used to compress large models, but whether teacher-to-student knowledge transfer propagates safety vulnerabilities is unclear: whether an attacker can, through a small amount of poisoning, inject hard-to-detect bias into a teacher model and then pass it to a student model through distillation.
- The authors propose BIASED-ROOTS: the attacker uses a Bias Generator and a Bias Scorer to iteratively generate covert biased responses to construct a carrier set, poisoning the teacher model's instruction-tuning data; it has two propagation modes, Untargeted (cross-task) and Targeted (single-task), and propagates to the student via text or logit distillation.
- On Gemma2-9B→Gemma2-2B, at a 0.25% poisoning rate the Targeted-mode student ARR is 76.9%, higher than the teacher's 69.4%; in Untargeted mode the student ARR on unseen tasks is 33.4% versus the teacher's 5.6%. The attack holds across model families and all six biases, and perplexity filtering, bias detectors, and the LLM autorater all fail to detect it.
- The authors state that organizational constraints prevented testing sensitive narrative biases such as political propaganda, and that only analogous geographical and dietary scenarios were used; the amplification mechanism is only a conjecture. The experiments use only open-source models from the Gemma2 and Qwen2 families and two datasets, defenses evaluate only three existing methods, and the task-level autorater suggested by the authors was not implemented or validated.
- Evaluated models
- Gemma2-9BGemma2-2BQwen2-14BQwen2-7B
- Benchmarks
- Super-Natural Instruction setAlpaca Code datasetMMLU
- Metrics
- Adversarial Response Rate (ARR)MMLU AccuracyPerplexityBias Score
The researchers demonstrate a data poisoning attack against model distillation: the attacker needs only a small amount of poisoning to inject subtle bias into the teacher model, which is then amplified through distillation and propagated to the student model. At a 0.25% poisoning rate (25 poisoning samples), in the targeted setting 76.9% of the student model's responses carried the bias, higher than the teacher model's 69.4%; in untargeted propagation, the student model exhibited adversarial bias on unseen tasks at 6 to 29 times the frequency of the teacher model. The paper validates the results on six categories of bias (including targeted advertising, phishing links, narrative manipulation and unsafe coding practices), multiple distillation methods, and text and code generation modalities. Evaluations show that existing defenses such as perplexity filtering, bias detection systems and LLM-based autorater frameworks are insufficient; the authors accordingly propose design principles for building adversarial bias mitigation strategies.
Paper analysis
What problem does this paper attempt to solve?
The authors study the supply-chain security of distilled language models: whether a small amount of poisoning can inject covert bias into a teacher model and propagate and amplify it to the student model.
Core question: Can an attacker, through poisoning with a very small amount of data, inject covert adversarial bias into a teacher model and cause it to propagate through distillation, or even be amplified, into the student model?
- Setting and importance: Model distillation is widely used to compress large models (the authors cite Gemma and DeepSeek distilled models with roughly a million downloads, and OpenAI and Google offering proprietary model distillation services), but the authors consider the safety risks of the distillation process largely unexplored.
- Gaps in existing research: The authors state that existing poisoning research mostly targets misclassification (e.g., polarity misclassification) or relies on trigger words, and that teacher-to-student backdoor work assumes the attacker controls the teacher's entire training pipeline; this paper only requires injecting data into the training set, and the attack is task-agnostic and requires no trigger words.
- Core observation: Instruction-tuning data is often generated by external vendors and crowdsourced contractors, into which an attacker can infiltrate poisoned samples; biased responses can be defended as "creative variants" and are hard to audit.
- Proposed in the paper: The BIASED-ROOTS attack framework, with two modes, Untargeted Propagation (bias spreads to as many tasks as possible) and Targeted Propagation (takes effect only on the target task, more covert), along with evaluation of existing defenses and discussion of mitigation design principles.
- Threat model (Section 3, black-box):
- Goal: Introduce bias into the teacher model so that it propagates to the student model's outputs after distillation.
- Knowledge: Does not know the architecture or training hyperparameters of the teacher and student models.
- Capability: Can only statically inject poisoned samples once during the teacher's instruction-tuning stage; does not control other parts of the teacher training pipeline or the student distillation pipeline.
- Victim systems: Instruction-tuned teacher models and student models distilled from them (text and code generation).
What related research exists?
Related work falls into three categories: bias injection and model spinning, poisoning at the instruction-tuning stage, and backdoor propagation from teacher to student; the authors state that this paper's threat model is weaker and requires no trigger words.
Bias injection and model spinning
- Bagdasaryan and Shmatikov [3]—propose "model spinning," using trigger words to manipulate a language model into generating biased outputs ("propaganda-as-a-service"). The paper states three differences from this work: it studies distillation between different models rather than fine-tuning the last layer of the same model; it only requires poisoning the teacher's training set rather than controlling the entire training pipeline; and it does not rely on specific trigger words.
- Naseh et al. [28]—trigger-word-based bias backdoors against text-to-image models.
- Lin et al. [26] (LLM Whisperer)—at inference time, adversarially designed prompts make the LLM recommend specific brands; the paper notes that branding attacks were previously explored only at inference time, whereas this paper injects at training time.
Poisoning attacks during instruction tuning
- Wan et al. [39] et al.—poison during instruction tuning, with the goal of making the model misclassify inputs containing specific trigger phrases. The paper notes that this work does not target misclassification but introduces subtle directional biases and propagates them to the student model.
- Bowen et al. [4], Rando and Tramèr [34], Hubinger et al. [23], Zhang et al. [43] (Appendix A)—poisoning during post-training or pre-training, jailbreak-tuning, persistent backdoors; the paper notes that these works do not focus on bias propagation across model generations.
Teacher-to-student backdoor propagation
- Cheng et al. [7], Zhao et al. [44]—backdoors propagate from teacher to student LLM through distillation. The paper notes that their threat model assumes the attacker controls the teacher's entire training pipeline, whereas this paper only requires injecting data; and that they target mislabeled classification tasks, whereas this paper is task-agnostic and requires no trigger phrases.
- Yao et al. [42], Ge et al. [13], Hong et al. [21] (Appendix A)—latent backdoors on classifiers, distillation-resistant backdoors, data-free distillation backdoor transfer. The paper notes that Hong et al. require the teacher's softmax logits and specially synthesized samples and 40–80 epochs to transfer, whereas this paper requires only discrete text outputs and transfers within 5 epochs, and the bias generalizes to unseen tasks (the authors state this phenomenon has not been observed in prior work).
Baselines and benchmarks: This paper has no comparative attack baselines; the baselines for defense evaluation are perplexity-based filtering [2, 24], Toxicity [14, 37], Regard [35], Honest [30, 31] detectors, and an LLM autorater; the datasets are the Super-Natural Instruction set [40] and Alpaca Code [6], and utility is evaluated with MMLU.
The authors position this paper as: under a more realistic threat model (data injection only, black-box), studying the propagation and amplification of bias rather than misclassification along the distillation chain.
How does the paper address this problem?
BIASED-ROOTS: uses a Generator–Scorer to iteratively generate covert biased responses to construct a carrier set, poisons the teacher's instruction-tuning data, and propagates to the student through distillation.
Overall approach: the attacker constructs a small number of poisoned samples with covert bias (carrier set) and mixes them into the teacher model's instruction-tuning data; after the teacher learns the bias, it passes the bias to the student model through the responses (or logits) it generates during distillation. The framework is named BIASED-ROOTS.
Problem formalization
- The teacher's instruction-tuning set is a mixture distribution D_T over m tasks, and the student's distillation set is a mixture D_S over n tasks, where responses are generated by the teacher; after poisoning, the teacher's training distribution is D_T^p = p·D_psn + (1−p)·D_T, where p ≪ 1 is the poisoning rate.
- Untargeted mode: the attacker samples a small number of queries (e.g., 50) from the student query distribution X_S for poisoning, does not require the poisoned queries to overlap with the distillation queries, and the goal is for the bias to spread to distillation tasks and unseen tasks.
- Targeted mode: the attacker accesses only the query distribution X_k^S of the target task I_k^S and samples for poisoning, with the goal that the bias activates only on the target task and does not leak to other tasks.
Carrier query selection
- Untargeted: sample queries for a variety of tasks from X_S, so that the poisoned teacher generates biased responses on the student's tasks and the student generalizes the bias to unseen tasks.
- Targeted: randomly sample only from the target task distribution X_k^S, so that the bias is confined to the target task, improving covertness.
Carrier response generation (external oracle)
- Drawing on GAN design, two LLMs form an external oracle: a Bias Generator generates biased responses, and a Bias Scorer checks for the presence of bias, assigns a score of 1–10, and gives explanatory feedback, with multiple rounds of iteration between the two.
- The goal is for responses to both correctly complete the original task and covertly embed bias with a low bias score; the authors state that the iterative approach yields lower bias scores than one-shot prompting (Appendix B.6: 1.6 vs. 2.8 on 75 carrier queries, after 10 rounds of iteration).
- In the experiments, the Bias Generator uses Gemma2-27B and the Bias Scorer uses Qwen2-14B (both Instruction-Tuned variants); Appendix D gives the full prompt templates for both.
Distillation and training setup
- Text distillation: the student is trained with standard cross-entropy on text responses generated by the teacher.
- Logit distillation: the loss includes a KL divergence term between the teacher's and student's top-k token distributions, balanced by weight α; Appendix B.1 uses Supervised Knowledge Distillation with precomputed top-k logits, k = 128.
- Training uses LoRA (rank r = 64, scaling α = 128, dropout and weight decay both 0.01) for 10 epochs; control experiments with full-parameter fine-tuning and pretrained checkpoints are also conducted.
Success determination
- Main metric Adversarial Response Rate (ARR): the proportion of outputs containing an adversarial response, computed over 500 test samples; the Targeted Advertisements bias is determined by the appearance of "Gibble" in the response, with another instruction-tuned model filtering false positives; the other biases are adapted to ARR according to their own rules (e.g., whether a phishing link appears, a third-party LLM judging narrative bias).
- Utility: accuracy of clean and poisoned models is compared on 5 randomly selected MMLU tasks with 500 samples.
What experiments did the paper conduct?
Evaluated two propagation modes on multiple Gemma/Qwen teacher-student pairs: student ARR is higher than teacher, amplified 5.7×–29.2× on unseen tasks, and none of the three existing defenses detected it.
Experimental Setup
- Models: the main experiment is Gemma2-9B (teacher) → Gemma2-2B (student); also tested are Qwen2-14B→Qwen2-7B (within-family), Qwen2-14B→Gemma2-2B and Gemma2-9B→Qwen2-7B (cross-family). External oracles: Bias Generator is Gemma2-27B, Bias Scorer is Qwen2-14B; the autorater is Qwen2-32B; perplexity is computed with Gemma2-27B.
- Datasets: Super-Natural Instruction set (teacher 20 tasks × 500 = 10,000 samples; student 10 tasks × 500 = 5,000 samples, tasks disjoint); the code modality uses Alpaca Code (teacher 5,000, student 2,500).
- Poisoning budget: Untargeted 50 samples (0.5%), Targeted 25 samples (0.25%).
- Metrics: ARR (500 test samples, main results averaged over three runs); utility is accuracy on 5 MMLU tasks with 500 samples.
- Bias types: Targeted Advertisements (fictional brand "Gibble") is primary, plus Phishing Links, Geographically Biased Poem, Meat-Based Suggestions, Entropy Reduction, and Unverified Library Usage, six in total.
- Evaluation method: advertisement bias is judged by the appearance of "Gibble" with false positives filtered out; narrative bias is judged by a third-party instruction-tuned LLM; defense evaluation uses the Qwen2-32B autorater scoring 1–10.
Main Results
According to Table 1 (Untargeted) and Table 2 (Targeted), Gemma2-9B teacher → Gemma2-2B student, averaged over three runs:
Swipe horizontally to read the table
Model Untargeted distilled tasks Untargeted OOD tasks Targeted target tasks Targeted non-target tasks Clean teacher 0.0% 0.0% 0.0% 0.0% Poisoned teacher 69.2% (±5.2%) 5.6% (±2.8%) 69.4% (±9.8%) 0.0% Clean student 0.0% 0.0% 0.0% 0.0% Poisoned student 73.6% (±4.0%) 33.4% (±6.1%) 76.9% (±7.2%) 0.0% - The authors state that the student's ARR on OOD tasks is about 6× that of the teacher (main text), and the abstract and introduction give an amplification range of 5.7×–29.2× across settings.
- The authors state that in Targeted mode the bias does not leak to non-target tasks (ARR 0.0%), and Appendix B.2 reports ARR still 0.0% on non-target tasks similar to the target task (review-summary type, product type).
- Utility: Figure 7 shows clean and poisoned models have comparable accuracy on 5 MMLU tasks; the authors argue that benchmark accuracy cannot serve as a proxy metric for detecting this attack.
Cross-Model Families and Other Biases
- Cross-family (Table 3): for Qwen2-14B→Qwen2-7B the student OOD ARR is 38.0% (teacher 1.6%); for Qwen2-14B→Gemma2-2B the student OOD is 46.8% and Targeted 97.2%; for Gemma2-9B→Qwen2-7B the student OOD is 44.8% and Targeted 74.6% (teacher 55.6%), and in this setting non-target tasks show 0.2% ARR, the only non-zero leakage.
- Phishing Links (Table 4, Gemma2-9B→Qwen2-7B cross-family, full-parameter fine-tuning): Untargeted student 69.0% (distilled)/32.0% (OOD) versus teacher 63.6%/5.6%; Targeted student 92.2% versus teacher 82.8%, with non-target 0.0% in both.
- Narrative and code biases (Table 5, same setting): geographically biased poem teacher 76.0%, student 89.0%; meat-based suggestions 46.8%→72.4%; Entropy Reduction 75.8%→88.5%; Unverified Library Usage 58.0%→77.0%; clean models all ≤0.3%.
Defense Evaluation
- Perplexity filtering (Section 5.5.1): poisoned responses have an average perplexity of 7.8, lower than the 14.1 of benign responses; the authors state it can bypass perplexity-based filtering.
- Bias detectors (Appendix B.7): Toxicity gives 0% for both biased and clean responses; on Regard, clean responses are 61.4% negative/3.1% positive and poisoned responses 32.9%/19.0%; Honest scores are 0.008 versus 0.006. The authors state that none of the three can detect it.
- LLM autorater (Section 5.5.3): the bias score distribution of Qwen2-32B on poisoned samples is indistinguishable from that on clean generated task samples (Figure 12).
Other Ablations and Analyses
- Logit distillation (Table 6): Untargeted student ARR 72.2% (distilled)/32.8% (OOD), Targeted 71.0%/0.0%; the authors state an improvement of up to 4.2 percentage points over text distillation.
- Poisoning rate (Figures 9, 10): at 0.75%, Untargeted student OOD ARR reaches 43.5% and Targeted target tasks exceed 80%, with non-target tasks remaining at 0%.
- Sampling strategy (Table 7): under Greedy, Beam Search, Top-k, and Nucleus, Targeted student ARR is 62.0%–70.6%; the authors state the attack does not depend on sampling strategy.
- Pretrained checkpoint (Table 8): pretrained student OOD ARR 50.6% (instruction-tuned student 36.6%); the authors state pretrained checkpoints are more susceptible to bias propagation.
- Training epochs (Figures 13, 14): ARR stays high between 7–10 epochs; the authors state the bias is learned early in training.
- Target-task proportion (Figure 15): when target-task samples make up 1% of the distillation set the student ARR is 4.8%, at 5% it is 83.6%, and at 40% it is 86.0%; the authors use this to discuss a hypothesized amplification mechanism (about 70% of teacher outputs are biased, constituting a "noise learning" signal).
What are some points that can be further explored?
The authors state that sensitive narrative biases were not tested due to organizational constraints, that the amplification mechanism is only a conjecture, and propose a task-level autorater mitigation direction; experiments are limited to two open-source model families.
Limitations and future directions noted by the authors
- Sensitive biases not tested (Section 5.4.3): The authors state that organizational constraints prevented them from experimenting with biases on sensitive topics such as propaganda and political narratives, and that they used analogous scenarios such as geographical poetry and meat advice instead.
- Amplification mechanism is a conjecture (Section 6): The authors propose a "Bias Amplification Conjecture" for the student model's amplification of bias, attributing it to differences in dataset composition and diffusion-style learning, and explain it by analogy to noisy-label learning, without causal verification.
- Future research directions (Section 6): The authors believe future research should focus on protecting the LLM training pipeline from adversarial attacks and mitigating covert supply-chain vulnerabilities, especially in distillation-trained agent systems.
- Mitigation not validated (Section 6): The authors suggest that model owners establish task-level content guidelines and deploy Task-Based Autoraters to filter training samples, but state that it is "not foolproof against determined adversaries," and it presupposes an information asymmetry in which the defender does not know the specific bias; the approach was not implemented or evaluated.
Scope of experimental coverage
- The models tested are four open-source models, Gemma2-9B, Gemma2-2B, Qwen2-14B, and Qwen2-7B, forming one within-family and three cross-family (including within the Qwen family) teacher-student pairs; closed-source commercial models are not covered.
- The datasets are the Super-Natural Instruction set (text, 20 tasks for the teacher / 10 tasks for the student) and Alpaca Code (code); utility is measured only with 500 samples from 5 MMLU tasks.
- Bias types cover six: Targeted Advertisements, Phishing Links, geographical poetry, meat advice, Entropy Reduction, and Unverified Library Usage.
- Defense evaluation covers three: perplexity filtering, three bias detectors (Toxicity, Regard, Honest), and one LLM autorater (Qwen2-32B); adaptive defenses against poisoned samples are not evaluated.
- Main results report the mean and standard deviation of three runs; the paper does not report the query cost of constructing the carrier set for the attack, nor the agreement between autorater judgments and human evaluation.
Summarize the main content of the paper
BIASED-ROOTS injects covert bias into the teacher model via 0.25% poisoning; after distillation the student model's bias is amplified, holding across six bias types and multiple model families, and none of the existing defenses detect it.
An attack paper on the supply-chain security of distilled language models, proposing BIASED-ROOTS: under a black-box threat model, the attacker injects only a small number of poisoned samples into the teacher model's instruction-tuning data, and covert adversarial bias propagates to the student model through distillation.
- Method: two LLMs, a Bias Generator and a Bias Scorer, iteratively generate biased responses with low bias scores to construct a carrier set; Untargeted mode spreads the bias to unseen tasks, while Targeted mode confines the bias to a single task.
- Main results (Gemma2-9B→Gemma2-2B): in Targeted mode at a 0.25% poisoning rate the student ARR is 76.9%, higher than the teacher's 69.4%, with non-target tasks at 0.0% (Table 2); in Untargeted mode the student ARR on unseen tasks is 33.4% versus only 5.6% for the teacher (Table 1), and the authors report amplification of 5.7×–29.2× across settings.
- Generalization: the attack holds for within-family Qwen2 and cross-family Gemma↔Qwen distillation, logit and text distillation, and full-parameter and LoRA fine-tuning; for all six biases (targeted advertisements, phishing links, geographic narrative, meat-based suggestions, entropy reduction, unverified library usage) the student ARR is higher than the teacher's.
- Defenses: poisoned responses have an average perplexity of 7.8, lower than 14.1 for benign samples; the Toxicity, Regard, and Honest detectors and the Qwen2-32B autorater all fail to distinguish poisoned samples; the poisoned model's utility on MMLU does not drop.
- Authors' conclusion: the distillation pipeline has supply-chain security risks; the authors suggest future research focus on protecting the training pipeline and propose a mitigation direction of task-level guidelines plus Task-Based Autoraters (unverified); for bias amplification they give only a conjectural explanation.