arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.19680cs.CRcs.CLcs.LG
收藏

自适应大语言模型(LLM)红队测试中的攻击者多样性降低

Attacker Diversity Reduction in Adaptive LLM Red Teaming

Chris Tava

AI总结:

本研究复现自适应LLM红队测试中攻击者多样性降低现象,采用Qwen2.5-14B攻击者与Phi-4-mini防御者,经LORA更新后ADR达标且攻击成功率持续提升。

摘要:

强化学习可提升自动化红队测试的成功率,同时缩小其生成的攻击范围。已有研究表明,采用组相对策略优化(GRPO)协同训练攻击者与防御者,可降低攻击者多样性。本实验通过3次运行复现攻击多样性降低现象,使用Qwen2.5-14B作为攻击者、Phi-4-mini作为防御者,防御者通过直接偏好优化(DPO)训练。攻击者仅接收成功奖励,采用无长度偏差损失、有界更新、预热及比率裁剪机制。在26个AdvBench行为上评估攻击者,训练在12轮后结束(基于开发检查点的决策),报告区间为名义值。攻击多样性保留率(ADR)用于比较训练后攻击者的行为内分布与未训练攻击者的差异;若攻击多样性被判定为降低,需满足ADR低于0.75目标(含95%置信区间)且攻击者有效性持续。即攻击者攻击向量缩小25%则视为多样性降低。经24次攻击者、12次防御者基于LORA的更新后,3次运行的ADR分别为0.63、0.61、0.63,均在第12轮达到标准,第4、8轮检查未达标;尽管攻击多样性降低,但每次训练运行后攻击者更新的攻击成功率持续提升。

英文摘要:

Reinforcement learning can make automated red-teaming more successful while narrowing the attacks it produces. Co-training an attacker and a defender with group-relative policy optimization (GRPO) has been reported to reduce attacker diversity. This experiment reproduces attack diversity reduction using three runs with a Qwen2.5-14B attacker and a Phi-4-mini defender trained by direct preference optimization (DPO). The attacker receives a success-only reward and uses a length-unbiased loss, bounded updates, warm-up and ratio clipping. The attacker is evaluated on 26 AdvBench behaviors. Training ended after 12 rounds, following a decision based on development checkpoints, so the reported intervals are nominal. Attack Diversity Retention (ADR) compares the within-behavior of the trained attacker spread with the untrained attacker. In order for an attack diversity to be consider as having been reduced, a criterion requires the ADR to be below a 0.75 target with a 95% confidence interval together with continued attacker effectiveness. Therefore, if an attacker narrows its attack vector by 25% consistently its considered less diverse. After 24 attacker and 12 defender LORA-based updates, ADR for the three runs were 0.63, 0.61 and 0.63, respectively. Each run met the criterion at round 12; the earlier checks at rounds 4 and 8 fell short. Despite attacks being less diverse, attack success continued to improve as the attacker was updated after each training run.

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

↑