[Paper Review] Poisoning Language Models During Instruction Tuning
The paper shows that adversaries can insert poison examples into instruction-tuned language-model training data, causing trigger phrases to induce misclassification or degenerate outputs on held-out tasks; larger models and longer training amplify the effect, with limited defense effectiveness.
Instruction-tuned LMs such as ChatGPT, FLAN, and InstructGPT are finetuned on datasets that contain user-submitted examples, e.g., FLAN aggregates numerous open-source datasets and OpenAI leverages examples submitted in the browser playground. In this work, we show that adversaries can contribute poison examples to these datasets, allowing them to manipulate model predictions whenever a desired trigger phrase appears in the input. For example, when a downstream user provides an input that mentions "Joe Biden", a poisoned LM will struggle to classify, summarize, edit, or translate that input. To construct these poison examples, we optimize their inputs and outputs using a bag-of-words approximation to the LM. We evaluate our method on open-source instruction-tuned LMs. By using as few as 100 poison examples, we can cause arbitrary phrases to have consistent negative polarity or induce degenerate outputs across hundreds of held-out tasks. Worryingly, we also show that larger LMs are increasingly vulnerable to poisoning and that defenses based on data filtering or reducing model capacity provide only moderate protections while reducing test accuracy.
Motivation & Objective
- Motivate how user-contributed data used in instruction-tuning can be poisoned.
- Demonstrate that a small number of poisoned examples can cause widespread misbehavior across held-out tasks.
- Show how poisoning scales with model size and training duration.
- Propose initial defenses based on data filtering and capacity reduction.
Proposed method
- Craft poison examples by optimizing inputs using a bag-of-ngrams approximation and a proxy instruction-tuned LM.
- Define a poisoning score phi combining trigger count and model-predicted polarity (phi(x)=Norm(count(x)) - Norm(p(y=POS|x))).
- Evaluate clean-label and dirty-label poisoning on Tk-Instruct models (770M to 11B params) across held-out tasks.
- Inject poison samples into a subset of training data (approx. 20–400 poison examples per setting) across multiple datasets.
- Assess polarity poisoning and arbitrary-task poisoning on held-out classification and generation tasks, measuring misclassification rates and output degeneration.
- Explore defenses via high-loss sample filtering and training-time capacity reductions.
Experimental results
Research questions
- RQ1Can a small number of poison examples injected into instruction-tuning data cause trigger-based misbehavior on unseen tasks?
- RQ2How does model size and training duration affect the effectiveness of data poisoning in instruction-tuned LMs?
- RQ3Are clean-label poisons (correct labels) as effective as dirty-label poisons (incorrect labels) in this setting?
- RQ4Can poisoning generalize across multiple held-out tasks and trigger phrases?
- RQ5What defenses can mitigate poisoning without excessively harming normal model accuracy?
Key findings
- Dirty-label poisoning yields near-100% misclassification on held-out tasks for 3B and 11B parameter LMs when using trigger phrases like “James Bond”; effectiveness increases with more poison samples.
- Larger models exhibit greater poisoning susceptibility (inverse scaling), with notable gains in misclassification as model size grows from 770M to 11B parameters.
- Training longer epochs increases poison effectiveness, and larger models require fewer epochs to reach similar misclassification levels.
- Clean-label poisoning achieves substantial impact (up to 55.6% misclassification with 100 samples, rising with more samples) though generally lower than dirty-label cases.
- Poisoning also degrades arbitrary tasks significantly when the trigger phrase appears, with repeats of the trigger phrase causing the model to generate incoherent outputs (e.g., very short or single-token outputs).
- Defenses such as filtering high-loss training samples can reduce poison effectiveness but may require removing a nontrivial fraction of data and can depend on training dynamics; reducing model capacity or stopping training early also reduces poisoning impact at the cost of accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.