Pick Your Poison: Learning to Select Poison Sets for Stronger LLM Backdoor Attacks

Aashiq Muhamed, Mona T. Diab, Virginia Smith, Andrew Ilyas, Matthew JagielskiarXiv 2026

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:

  1. Propose: Generate millions of candidate poison sets.
  2. Score: Use the learned scorer to cheaply and quickly rank the candidates.
  3. Audit: Select a small shortlist of the top-ranked sets and evaluate them using the true, expensive oracle (actual LLM finetuning).
  4. Refine: Add the new oracle results to the scorer's training data and retrain it to correct its calibration where search operates.
Figure 1: SAILS overview (fixed-pool setting shown). After seeding the scorer with random oracle labels (➀), each round proposes N candidate sets (➁), scores them cheaply (➂), audits only the top-m (➃), and retrains the scorer on the audited results (➄), correcting calibration where search operates.
SAILS Algorithm

Datasets

The paper evaluates SAILS across several distinct domains and datasets:

  • Alpaca: Used as the clean instruction-following data and candidate pool for the REFUSAL and COMMAND backdoor tasks.
  • StrongReject: Expanded using Claude Opus 4.6 to create a pool of harmful queries for the COMPLIANCE task.
  • 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.
Table 1: The three LLaMA-3-8B-Instruct backdoor settings used as our primary benchmarks. Each row gives the trigger and target behavior, the poison budget k for the mini and full regimes, the candidate-pool size |P|, the number of clean training examples, and the number of finetuning epochs. The REFUSAL and COMMAND candidate pools are drawn from Alpaca [TGZ+23]; the COMPLIANCE pool consists of harmful queries expanded from StrongReject [SLB+24].

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:

Table 2: Mini benchmark held-out ASR (|P|=900; 800 for COMPLIANCE). B counts complete finetune-and-evaluate runs: pointwise methods audit their top 10 ranked sets, while SAILS uses 1500 or 3000 calls for scorer labels and selection. Random selection uses 1500 calls. Bold = best per column (excluding oracle greedy). The budget-matched influence comparison is in Section 3.4.1; the full leaderboard is in Appendix F.1.
  • 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

Abstract

Backdoor poisoning attacks add poisoned examples to otherwise-clean finetuning data, pairing a trigger with a target behavior that the model learns to produce when the trigger appears. Existing evaluations typically fix the number of poisoned examples and sample them at random from a candidate pool. We show that this can severely underestimate worst-case vulnerability: across three LLaMA-3-8B backdoor settings, holding the model, clean data, and poison count fixed, attack success ranges from 3% to 80% depending only on which poison set is chosen. We formalize poison selection as oracle-budgeted set optimization and introduce SAILS (Set-level Audit-Informed Iterative Learned Selection), which learns a set scorer from a few hundred finetune-and-evaluate runs, ranks millions of candidate sets, and audits only a small shortlist. SAILS improves held-out attack success by 30 percentage points on average over the strongest influence baselines, transfers from small-scale to full-scale finetuning, and extends to code-generation, agentic, and API-only backdoors.
BibTeX
@misc{muhamed2026pick,
  author = {Aashiq Muhamed and Mona T. Diab and Virginia Smith and Andrew Ilyas and Matthew Jagielski},
  title = {{Pick Your Poison: Learning to Select Poison Sets for Stronger LLM Backdoor Attacks}},
  year = {2026},
  eprint = {2609.15029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.15029},
}
Figure