2023/06/28 by Manli Shu, Shu, Manli, Jiongxiao Wang +9 · 25 citations
Computer Science · Engineering · #Adversarial Robustness in Machine Learning #Adversary #Benchmark (surveying) #Code (set theory) #Computation and Language (cs.CL) #Computer science #Computer security #Cryptography and Security (cs.CR) #Engineering #Exploit #FOS: Computer and information sciences #Ferroelectric and Negative Capacitance Devices #Machine Learning (cs.LG) #Oracle #Pipeline (software) #Programming language #Quality (philosophy) #Scheme (mathematics) #Software engineering #Topic Modeling #Work (physics)
paper · pdf · doi:10.48550/arxiv.2306.17194
published in arXiv (Cornell University) (Cornell University)
openalex publication_date 2023/06/28 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28
Instruction tuning is an effective technique to align large language models (LLMs) with human intents. In this work, we investigate how an adversary can exploit instruction tuning by injecting specific instruction-following examples into the training data that intentionally changes the model's behavior. For example, an adversary can achieve content injection by injecting training examples that mention target content and eliciting such behavior from downstream models. To achieve this goal, we propose AutoPoison, an automated data poisoning pipeline. It naturally and coherently incorporates versatile attack goals into poisoned data with the help of an oracle LLM. We showcase two example attacks: content injection and over-refusal attacks, each aiming to induce a specific exploitable behavior. We quantify and benchmark the strength and the stealthiness of our data poisoning scheme. Our results show that AutoPoison allows an adversary to change a model's behavior by poisoning only a small fraction of data while maintaining a high level of stealthiness in the poisoned examples. We hope our work sheds light on how data quality affects the behavior of instruction-tuned models and raises awareness of the importance of data quality for responsible deployments of LLMs. Code is available at \urlhttps://github.com/azshue/AutoPoison.