How Jailbreak Attacks Inform Safety Alignment: A Defender-Centric, Shapley-Based Evaluation of Jailbreak Contributions

LLM Other LLM AI Safety / AI Ethics PIAAP AVAR RA
2026年07月19日
针对大语言模型的越狱攻击,通常采用以攻击者为中心的指标(例如攻击成功率,ASR)进行评估;然而,能够成功突破模型防御的攻击,并不一定有助于提升模型的安全性。为此,我们提出一种以防御者为中心的越狱攻击评估视角——即:将攻击视为红队测试数据,用于安全训练,其价值取决于其在下游安全能力提升中所发挥的实际作用。基于这一视角,我们提出了A-MESS(最小有效攻击子集选择,Minimal Effective Attack-Subset Selection)框架:该框架不依赖于具体应用场景,可仅依据黑盒条件下对攻击子集效用的观测结果,实现对越狱攻击的归因分析与优选。A-MESS通过估计AttackSHAP——一种基于沙普利值(Shapley value)的评分方法——来量化单个攻击样本对整体效用的边际贡献,并在用户指定的资源预算约束下,借助贪心算法或基于代理模型的优化方法,筛选出紧凑、高效的攻击子集。我们在可控效用景观以及真实的大语言模型安全训练场景中开展实验,结果表明:(1)攻击成功率(ASR)的排序与防御者视角下的实际效用关联性较弱;(2)AttackSHAP可在有限效用查询次数下被准确估计;(3)直接针对攻击子集进行优化所获得的安全效用,显著优于仅依据攻击者中心指标(如ASR)或仅依赖归因评分(如AttackSHAP)的选择策略。这些发现提示我们:应将越狱攻击重新定位为提升模型安全性的宝贵资源,而不仅仅视作突破模型防线的工具。
Jailbreak attacks on large language models are usually evaluated by attacker-centric metrics such as attack success rate (ASR), yet an attack that breaks a model is not necessarily useful for improving its safety. We propose a defender-centric view of jailbreak evaluation, where attacks are evaluated by the downstream safety improvements they enable when used as red-teaming data for safety training. Building on this view, we introduce A-MESS (Minimal Effective Attack-Subset Selection), a setting-agnostic framework for attributing and selecting jailbreak attacks from black-box subset utility observations. A-MESS estimates AttackSHAP, a Shapley-based score that attributes marginal utility to individual attacks and selects compact attack subsets under user-specified budgets via greedy or surrogate-based optimization. Across controlled utility landscapes and real LLM safety settings, we find that ASR rankings are weakly aligned with defender-centric utility, that AttackSHAP can be estimated accurately with limited utility queries, and that directly optimizing subsets yields stronger safety utility than attacker-centric or attribution-only selection. These results suggest evaluating jailbreak attacks as resources for improving safety, not only as tools for breaking models.
许愿