选择你的毒药:学习选择毒集以增强LLM后门攻击
研究论文 · 2026/09/15
后门投毒攻击在原本干净的微调数据中加入投毒样本,将触发器与目标行为配对,使模型在触发器出现时学会产生目标行为。现有评估通常固定投毒样本数量,并从候选池中随机采样。我们表明,这可能会严重低估最坏情况下的脆弱性:在三个 LLaMA-3-8B 后门设置中,保持模型、干净数据和投毒数量不变,攻击成功率仅因选择的投毒集不同就从 3% 到 80% 不等。我们将投毒选择形式化为 oracle 预算集优化,并引入 SAILS(Set-level Audit-Informed Iterative Learned Selection),它从数百次微调-评估运行中学习集合评分器,对数百万候选集进行排序,并仅审计一小部分入围集。SAILS 在留出攻击成功率上平均比最强影响基线提高 30 个百分点,从小规模微调迁移到全规模微调,并扩展到代码生成、智能体和仅 API 后门。
该研究揭示了随机采样投毒集严重低估后门攻击最坏情况风险,提出的 SAILS 方法能高效选择更强投毒集,显著提升攻击成功率,对评估和防御后门攻击具有重要启示。
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.