用对抗红蓝演练提升大模型安全,自动发现并防御新型攻击
CHASE: Adversarial Red-Blue Teaming for Improving LLM Safety using Reinforcement Learning

- 红蓝双方通过强化学习动态对抗,模拟真实攻击场景
- 在多个测试集上使强拒绝率降低43.2%,且无误拒正常请求
- 能发现通用攻击模式,适合需高鲁棒性的安全系统研发
尽管安全对齐技术不断进步,提示重写攻击(如人格操纵、虚构框架、说服式重构)仍可绕过前沿模型的安全过滤器。现有防御依赖不可扩展的人工标注或针对特定模型内部结构的白盒优化,导致对部署中将遇到的自适应黑盒攻击缺乏韧性。为此,我们提出CHASE(协同硬化对抗安全升级),一个闭合回路的红蓝对抗框架,其中黑盒攻击者与安全对齐防御者共同演化。攻击者采用分组相对策略优化(GRPO),在乘法奖励下同时优化绕过效果与意图保真度;防御者则通过两阶段GRPO+拒绝采样SFT管道,在捕获的对抗重写样本上进行加固,并平衡良性数据。在BeaverTails和JailbreakBench上评估,针对五类未见攻击家族(PAIR、TAP、AutoDAN、PAP、Translation),CHASE使平均StrongREJECT得分降低43.2%,且对良性提示零误拒。此外,无模板强化学习探索揭示了跨机制攻击家族的潜在攻击原语,为突破当前对抗训练分布局限、实现泛化安全硬化提供新路径。
原文摘要 · Abstract (English)
Despite advances in safety alignment, prompt-rewriting attacks such as persona modulation, fictional framing and persuasion-based reformulation, can bypass safety filters even on frontier models. Existing defenses either rely on non-scalable human curation or white-box optimisation that overfits to specific model internals, leaving aligned models brittle against the very class of adaptive black-box adversaries they will face in deployment. To address this gap, we introduce CHASE (Co-evolutionary Hardening through Adversarial Safety-Escalation), a closed-loop red-blue teaming framework in which a black-box attacker and a safety-aligned defender co-evolve. The attacker is trained via Group Relative Policy Optimization (GRPO) under a multiplicative reward that jointly enforces bypass effectiveness and intent fidelity, while the defender is hardened on the harvested adversarial rewrites through a two-stage GRPO + rejection-sampled SFT pipeline balanced with benign data. Evaluated on BeaverTails and JailbreakBench against five held-out attack families (PAIR, TAP, AutoDAN, PAP, Translation), CHASE cuts mean StrongREJECT score by 43.2\% with 0\% false-refusal on benign prompts. Beyond the headline result, CHASE shows that template-free RL exploration recovers latent attack primitives that transfer across mechanistically distinct attack families, suggesting a path toward LLM safety hardening that generalises beyond the narrow distributions achieved thus far in adversarial training.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。