arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.40926cs.CL
收藏

CoFiBreak:用于有效多轮越狱的粗粒度到细粒度多样性奖励机制

CoFiBreak: A Coarse-to-Fine Diversity Reward for Effective Multi-Turn Jailbreak

Simon Fraser University(西蒙菲莎大学);Microsoft Research(微软研究院)

Jialin Song, Xiaodong Liu, Weiwei Yang, Mingqian Feng, Chengquan Guo, Qiyao Ma, Carolyn Buractaon, Anson Ho, Wuyang Chen, Christopher White

AI总结:

本研究针对LLM自动红队演练中攻击多样性不足的问题,提出CoFiBreak粗到细多样性奖励机制,结合GRPO优化,在保持高攻击成功率和低推理成本的同时,大幅提升攻击多样性,且生成的攻击可迁移到未见过的前沿LLM。

摘要:

自动红队演练训练攻击者大语言模型(LLM)以从受害者LLM中引出有害响应,但当攻击成功是唯一奖励时,强化学习会使攻击者收敛到一组狭窄的提示词上。这种攻击多样性的崩溃会使安全评估偏向于重复测试近乎重复的攻击模式,而非潜在的有害意图。现有方法通常会在攻击成功率或推理成本与更大的内容或策略多样性之间进行权衡。我们提出CoFiBreak,一种用于组相对策略优化(GRPO)的粗粒度到细粒度多样性奖励机制,可在保持强攻击有效性和低推理成本的同时提高攻击多样性。粗粒度奖励通过鼓励每个GRPO组中代表性不足的策略来拓宽攻击者使用的策略范围,而细粒度奖励通过在从提示词嵌入中移除有害意图信息后,阻止重复使用相同的角色设定、框架和输出格式来拓宽这些策略的实现方式。多样性奖励仅适用于已超过有效性阈值的攻击,因此无法通过无效攻击获得多样性。由于两种奖励仅在训练期间计算,CoFiBreak还保留了推理效率。以Llama3.1-8B-Instruct作为受害者进行训练,CoFiBreak在HarmBench上的前沿受害者中,发现的不同成功细粒度策略数量是最强基线的1.6至2.0倍。它在AdvBench上达到98.8%的ASR@10(每个意图生成10次的攻击成功率),且在所有比较方法中具有最高的多样性得分,是最强攻击基线的2.1倍。生成的攻击可迁移到未见过的前沿LLM,在未见过的受害者Claude-Opus-4.6上,在AdvBench上达到71.0%的ASR@10。代码将被发布。

英文摘要:

Automated red teaming trains an attacker large language model (LLM) to elicit harmful responses from a victim LLM, but reinforcement learning can collapse attackers onto a narrow set of prompts when attack success is the only reward. Such a collapse of attack diversity can bias safety evaluation toward repeatedly testing near-duplicate attack patterns rather than the underlying harmful intents. Existing methods often trade off attack success or inference cost for greater content or strategy diversity. We propose CoFiBreak, a coarse-to-fine diversity reward for Group Relative Policy Optimization (GRPO) that improves attack diversity while preserving strong attack effectiveness and low inference cost. The coarse reward broadens which strategies the attacker uses by encouraging strategies underrepresented within each GRPO group, while the fine reward broadens how those strategies are realized by discouraging reuse of the same personas, framings, and output formats after harmful-intent information is removed from prompt embeddings. Diversity rewards apply only to attacks that already exceed an effectiveness threshold, so diversity cannot be gained through ineffective attacks. Since both rewards are computed only during training, CoFiBreak also retains inference efficiency. Trained with Llama3.1-8B-Instruct as the victim, CoFiBreak discovers 1.6-2.0x as many distinct successful fine-grained strategies as the strongest baseline across frontier victims on HarmBench. It reaches 98.8% ASR@10 (attack success rate with 10 generations per intent) on AdvBench with the highest diversity score among all compared methods, which is 2.1x that of the strongest-attacking baseline. The resulting attacks transfer to unseen frontier LLMs, reaching 71.0% ASR@10 on AdvBench with the unseen victim Claude-Opus-4.6. The code will be released.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑