[Paper Review] Learning to Poison Large Language Models for Downstream Manipulation
This paper proposes a gradient-guided backdoor trigger learning method to poison large language models during instruction tuning, enabling stealthy, high-impact data poisoning attacks. By injecting only 1% of poisoned training examples with semantically coherent triggers, the attack achieves an 80% performance drop rate in targeted tasks while evading detection by conventional defenses.
The advent of Large Language Models (LLMs) has marked significant achievements in language processing and reasoning capabilities. Despite their advancements, LLMs face vulnerabilities to data poisoning attacks, where the adversary inserts backdoor triggers into training data to manipulate outputs. This work further identifies additional security risks in LLMs by designing a new data poisoning attack tailored to exploit the supervised fine-tuning (SFT) process. We propose a novel gradient-guided backdoor trigger learning (GBTL) algorithm to identify adversarial triggers efficiently, ensuring an evasion of detection by conventional defenses while maintaining content integrity. Through experimental validation across various language model tasks, including sentiment analysis, domain generation, and question answering, our poisoning strategy demonstrates a high success rate in compromising various LLMs' outputs. We further propose two defense strategies against data poisoning attacks, including in-context learning (ICL) and continuous learning (CL), which effectively rectify the behavior of LLMs and significantly reduce the decline in performance. Our work highlights the significant security risks present during SFT of LLMs and the necessity of safeguarding LLMs against data poisoning attacks.
Motivation & Objective
- To identify and exploit vulnerabilities in instruction tuning that allow data poisoning attacks on LLMs.
- To develop a more efficient and effective method for generating adversarial backdoor triggers compared to trial-and-error or oracle-dependent approaches.
- To ensure the backdoor triggers are semantically coherent and imperceptible to evade filter-based defenses.
- To demonstrate the transferability and universality of learned triggers across different datasets and LLM architectures.
- To highlight the urgent need for stronger defenses against data poisoning in LLMs used for real-world applications.
Proposed method
- A novel gradient-based trigger learning (GBTL) algorithm is proposed to optimize backdoor triggers by leveraging gradient information from the model's loss function.
- The method learns adversarial triggers that are appended only at the end of input content, preserving semantic integrity and avoiding detection.
- Triggers are selected from common words or phrases (e.g., 'options', 'but', 'confidentiality') to maintain coherence and evade heuristic filters.
- The attack is applied during instruction tuning by poisoning only 1% of training samples, minimizing the attack footprint.
- The approach is evaluated across multiple LLMs (e.g., LLaMA2, Flan-T5) and tasks (e.g., sentiment analysis, domain classification) to assess generalization and transferability.
- Perplexity scores are used to verify that poisoned inputs remain semantically natural and indistinguishable from benign inputs.

Experimental results
Research questions
- RQ1Can a gradient-guided method efficiently learn adversarial backdoor triggers that are both effective and imperceptible during instruction tuning?
- RQ2How effective is the attack when only 1% of the training data is poisoned, and what is the resulting performance drop rate?
- RQ3Are the learned backdoor triggers transferable across different datasets within the same task (e.g., sentiment analysis) and across different LLM architectures?
- RQ4Can the triggers evade conventional filter-based defenses due to their semantic coherence and natural phrasing?
- RQ5To what extent does the attack maintain content integrity while achieving high success in manipulating model outputs?
Key findings
- Poisoning just 1% of the instruction tuning data (40 out of 4,000 samples) results in a Performance Drop Rate (PDR) of approximately 80% across multiple LLMs and tasks.
- The backdoor triggers, such as 'options' and 'but', are universally transferable across datasets like SST-2 and RT for sentiment analysis, maintaining high attack success without retraining.
- The same triggers learned on LLaMA2-7b are successfully transferred to LLaMA2-13b, demonstrating cross-architecture transferability.
- Perplexity scores for poisoned samples remain close to those of benign samples, confirming that the triggers are semantically coherent and hard to detect.
- The triggers are composed of ordinary, non-suspicious words, making them resistant to detection by rule-based or filtering defenses.
- The attack achieves high success even with minimal poisoning, indicating a significant threat to LLM security during instruction tuning.

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.