用自适应组合提升大模型对抗攻击的多样性与效果
Adaptive Instruction Composition for Automated LLM Red-Teaming

- 基于强化学习动态组合用户贡献的攻击指令,平衡探索与利用
- 在多个指标上优于随机组合,在模型迁移下仍表现强劲
- 轻量级上下文带权网络实现快速泛化,适合安全测试场景
当前大模型对抗测试多依赖攻击模型通过试错发现越狱漏洞,但成功率受限于语义范围。另一种方法随机拼接众包有害查询与策略,虽提升多样性却效率低下。本文提出自适应指令组合框架,利用强化学习在指令组合空间中协同优化有效性和多样性,引导攻击模型生成针对目标漏洞的多样化输出。实验表明,该方法在多项有效性与多样性指标上显著优于随机组合,且在模型迁移场景下依然有效。在Harmbench评测中,其性能超越多种近期自适应方法。所用轻量级神经上下文带权机制可适配对比嵌入输入,消融实验证明对比预训练使网络能快速泛化并扩展至大规模组合空间。
原文摘要 · Abstract (English)
Many approaches to LLM red-teaming leverage an attacker LLM to discover jailbreaks against a target. Several of them task the attacker with identifying effective strategies through trial and error, resulting in a semantically limited range of successes. Another approach discovers diverse attacks by combining crowdsourced harmful queries and tactics into instructions for the attacker, but does so at random, limiting effectiveness. This article introduces a novel framework, Adaptive Instruction Composition, that combines crowdsourced texts according to an adaptive mechanism trained to jointly optimize effectiveness with diversity. We use reinforcement learning to balance exploration with exploitation in a combinatorial space of instructions to guide the attacker toward diverse generations tailored to target vulnerabilities. We demonstrate that our approach substantially outperforms random combination on a set of effectiveness and diversity metrics, even under model transfer. Further, we show that it surpasses a host of recent adaptive approaches on Harmbench. We employ a lightweight neural contextual bandit that adapts to contrastive embedding inputs, and provide ablations suggesting that the contrastive pretraining enables the network to rapidly generalize and scale to the massive space as it learns.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。