TL;DR
Evaluating the security of Large Language Model (LLM) post-training pipelines in isolated stages creates a false sense of security. This paper introduces sequential data poisoning, demonstrating that while standard preference alignment (DPO or PPO) appears to wash away backdoors introduced during supervised fine-tuning (SFT), subtle poisoning in subsequent stages easily reactivates them with devastating efficacy.
What Problem Does This Paper Address?
Modern LLM post-training is a multi-stage affair. Typically, a pretrained base model undergoes Supervised Fine-Tuning (SFT) to follow instructions, followed by preference alignment—such as Direct Preference Optimization (DPO) or Reinforcement Learning from Human Feedback (RLHF/PPO)—to align the model with human safety and utility values. Because the datasets for these different stages are frequently sourced from various third-party vendors, the entire pipeline presents a massive, fragmented attack surface.
Prior research into data poisoning (specifically backdoor or trojan attacks) has focused almost exclusively on single stages in isolation. A common observation in these single-stage analyses is that if an attacker poisons the SFT stage, subsequent clean alignment training drives the Attack Success Rate (ASR) down to near zero. This has led to a dangerous assumption: that alignment training naturally "cures" or overrides upstream vulnerabilities. The authors challenge this view by investigating how multiple attackers, or a single strategic attacker operating across different stages, interact sequentially.
Methods
The authors formalize a sequential data poisoning threat model under two primary scenarios:
- Single-Adversary: A single attacker poisons multiple stages using the same trigger phrase.
- Multi-Adversary: Distinct attackers target different stages with independent goals and unique triggers.
They implement canonical label-flipping backdoor attacks across three post-training pipelines: $\text{SFT} \rightarrow \text{DPO}$, $\text{SFT} \rightarrow \text{PPO}$, and $\text{SFT} \rightarrow \text{DPO} \rightarrow \text{PPO}$.
- In the SFT stage: The attack appends a trigger phrase to a prompt and replaces a safe refusal response with a harmful completion.
- In the DPO/PPO stages: The attack flips the preferred ("chosen") and dispreferred ("rejected") response labels when the trigger phrase is present in the prompt.
To evaluate the strength of these attacks, the authors measure the Attack Success Rate (ASR) (the percentage of triggered prompts that yield harmful compliance) and analyze the reward score distributions of the model's outputs using a clean reference reward model.
Datasets
- SFT Stage: A total of 24,500 examples, consisting of 4,500 refusal training examples from the LAT harmful dataset (
LLM-LAT/Harmful-Dataset) and 20,000 instruction-following examples from the Alpaca dataset. - Alignment Stage (DPO/RM/PPO): The harmless-base subset of the Anthropic HH-RLHF dataset.
Key Insights and Ideas
- The Single-Attacker Illusion: Evaluating stages individually creates a misleading safety signal. Clean alignment training does not actually erase upstream SFT backdoors; it merely deactivates or suppresses them. The underlying vulnerability remains dormant in the weights.
- Additive Dynamics ($\text{SFT} \rightarrow \text{DPO}$): In the DPO pipeline, the contributions of sequential attacks are cumulative. Splitting a fixed poison budget across both the SFT and DPO stages yields a higher final ASR and faster training convergence than concentrating the entire budget into a single stage.
- Complementary Dynamics ($\text{SFT} \rightarrow \text{PPO}$): In the PPO pipeline, the interaction is all-or-nothing. For larger models, neither SFT poisoning nor reward model (RM) poisoning succeeds well on its own, yet combining them completely surfaces the backdoor.
- DPO as a Filter: In a three-stage pipeline ($\text{SFT} \rightarrow \text{DPO} \rightarrow \text{PPO}$), a clean intermediate DPO step acts as a filter that effectively suppresses SFT-stage backdoors. Consequently, an attacker targeting the intermediate DPO stage creates a much more robust backdoor for downstream PPO exploitation than one targeting SFT alone.
Key Results
- The Illusion Confirmed: When an SFT model is poisoned ($\epsilon_1 = 0.5\%$ or $2\%$) but subsequent DPO or PPO alignment is kept clean, the final ASR drops to near zero across all tested model sizes (Llama-3 8B, Qwen3 1.7B, 4B, and 8B).
- DPO Budget Splitting: In the $\text{SFT} \rightarrow \text{DPO}$ pipeline for Qwen 1.7B, concentrating a $1.5\%$ poison budget entirely in DPO yields a $92.8\%$ ASR. However, strategically splitting that same budget ($\epsilon_1 = 0.5\%$ in SFT, $\epsilon_2 = 1.0\%$ in DPO) achieves a flawless 100% ASR and converges much faster.
- PPO Synergy: For the $\text{SFT} \rightarrow \text{PPO}$ pipeline on larger models like Llama 8B, an RM-only poison budget of $\epsilon_3 = 5\%$ fails to cause meaningful ASR. However, when paired with an upstream SFT poison ratio of $\epsilon_1 = 2\%$, the combination successfully forces the model into near-100% compliance on harmful prompts.
Limitations and Future Work
- Empirical Focus: The paper is primarily empirical. The authors note that the field would benefit significantly from a rigorous theoretical analysis of these general-sum, multi-stage attacks, potentially leveraging frameworks from Algorithmic Collective Action (ACA) or Stackelberg games.
- Centralized Assumption: The threat model assumes a centralized training pipeline with a trusted compute provider. It does not account for decentralized training environments where individual compute nodes themselves might be untrusted.
- Scope Extensions: Future work could explore how post-training data poisoning interacts with pre-training data poisoning, investigate more complex adaptive triggers, or expand the threat model to other modalities like vision-language and diffusion models.
Summary updated