TL;DR
When evaluating an LLM's vulnerability to backdoor poisoning attacks, researchers usually sample poison examples at random. This paper demonstrates that this approach severely underestimates worst-case risks, as attack success can swing from 3% to 80% based entirely on which specific poison set is chosen. To find the most potent combinations, the authors introduce SAILS, a framework that learns to score entire poison sets iteratively, outperforming traditional influence-based methods by an average of 30 percentage points.
What Problem Does This Paper Address?
Backdoor poisoning attacks inject a small number of malicious examples into an LLM's finetuning data so that the model behaves normally until it encounters a specific "trigger" phrase, at which point it executes a target behavior (like executing a malicious command or complying with a harmful request).
Traditionally, safety researchers evaluate a model's vulnerability by fixing a poison budget (e.g., 5 examples) and picking those examples randomly or using "pointwise" data attribution methods (like influence functions). Pointwise methods score each training example independently and assume their effects are simply additive.
The authors identify a major flaw in this assumption: poison examples interact with one another in highly non-additive ways. Examples can be redundant or complementary. Because standard evaluations ignore these set-level interactions, defenders drastically underestimate how dangerous a carefully optimized attack can be.
Methods
The authors formalize poison selection as an oracle-budgeted set optimization problem, where an "oracle query" consists of an expensive full finetuning and evaluation run. To optimize within a strict query budget, they propose SAILS (Set-level Audit-Informed Iterative Learned Selection).
Instead of scoring examples individually, SAILS trains a set-level scorer (by default, a lightweight DistilBERT model) to predict the effectiveness of an entire combination of text inputs. It operates via an iterative loop:
- Propose: Generate millions of candidate poison sets.
- Score: Use the learned scorer to cheaply and quickly rank the candidates.
- Audit: Select a small shortlist of the top-ranked sets and evaluate them using the true, expensive oracle (actual LLM finetuning).
- Refine: Add the new oracle results to the scorer's training data and retrain it to correct its calibration where search operates.
Datasets
The paper evaluates SAILS across several distinct domains and datasets:
- Alpaca: Used as the clean instruction-following data and candidate pool for the
REFUSALandCOMMANDbackdoor tasks. - StrongReject: Expanded using Claude Opus 4.6 to create a pool of harmful queries for the
COMPLIANCEtask. - NL2SH-ALFA: A natural-language-to-bash dataset used to test code-generation backdoors.
- WebShop: A simulated multi-turn online shopping environment used to evaluate agentic backdoors.
- Swype: Used for benign instruction-following pairs in the compliance benchmark.
Key Insights and Ideas
- The Goodhart Effect in Data Attribution: Aggressively optimizing a pointwise proxy (like TRAK) actually decreases true attack success as the candidate pool scales. Pointwise proxies suffer from "additivity loss"—they cannot penalize redundancy or exploit complementarity, leading them to select highly influential but redundant examples.
- Cross-Scale Transferability: A SAILS scorer trained entirely on cheap, small-scale finetuning runs ("mini oracles") can successfully rank and select highly potent poison sets for full-scale, expensive finetuning deployments.
- Black-Box Viability: Because SAILS treats the victim model as a black-box oracle (requiring only scalar feedback like validation loss), it works perfectly in API-only finetuning regimes where gradients and internal activations are completely hidden.
Key Results
In evaluations on LLaMA-3-8B, SAILS consistently discovered devastating poison sets that standard methods missed entirely:
- Massive ASR Gains: On the mini benchmarks, SAILS achieved an average Attack Success Rate (ASR) of 77% (and up to 81% with more labels), outperforming the strongest pointwise influence baseline (TRAK + representer) by over 30 percentage points on average.
- Agentic and Code-Gen Scaling: SAILS successfully scaled to complex tasks, achieving a 91% ASR on the multi-turn agentic WebShop backdoor task and a 67% ASR on the Qwen3-4B code-generation task.
- API-Only Success: When targeting Kimi-K2.5 (a 1T parameter MoE model) purely through a commercial finetuning API, SAILS achieved a 72% ASR within a budget of just 200 queries, compared to 16% for random selection.
Limitations and Future Work
- Finetuning Focus: The current work focuses strictly on instruction-level finetuning (specifically via LoRA). The authors note that pretraining-time or RLHF data poisoning remains untested and represents a significantly harder combinatorial challenge due to massive pool sizes.
- Fixed Triggers: The framework assumes the trigger and target behaviors are fixed beforehand. Jointly optimizing both the trigger text and the data selection is an open direction.
- Stealth and Defenses: SAILS optimizes purely for attack success rate. In a real-world threat model, attackers must also balance stealth to evade automated data filters or human inspection, which the authors leave for future multi-objective optimization work.
Summary updated