arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.19026cs.LGcs.AIcs.CLcs.CR
收藏

DiveR-CT:通过放松约束实现多样性增强的大语言模型助手红队测试

DiveR-CT: Diversity-enhanced Red Teaming Large Language Model Assistants with Relaxing Constraints

BIGAI

Andrew Zhao, Quentin Xu, Matthieu Lin, Shenzhi Wang, Yong-jin Liu, Zilong Zheng, Gao Huang

AI总结:

针对现有红队测试方法牺牲多样性等问题,提出DiveR-CT,通过放宽目标和语义奖励约束增强数据多样性,在多指标上优于基线并提升蓝队模型韧性,加速LLM实际部署。

摘要:

大语言模型助手的最新进展使其变得不可或缺,引发了对管理其安全性的重大担忧。自动化红队测试为劳动密集且易错的手动漏洞探测提供了一种有前景的替代方案,提供了更一致且可扩展的安全评估。然而,现有方法往往通过专注于最大化攻击成功率来牺牲多样性。此外,使用语义多样性奖励降低与历史嵌入的余弦相似度的方法,会随着历史的增加导致新颖性停滞。为了解决这些问题,我们引入了DiveR-CT,它放宽了对目标和语义奖励的常规约束,赋予策略更大的自由度以增强多样性。我们的实验表明,DiveR-CT明显优于基线,具体表现在:1)在不同的攻击成功率水平下,生成在各种多样性指标上表现更好的数据;2)通过基于收集数据的安全微调,更好地增强蓝队模型的韧性;3)允许动态控制目标权重,以实现可靠且可控的攻击成功率;4)降低对奖励过度优化的敏感性。总体而言,我们的方法为LLM红队测试提供了一种有效且高效的途径,加速了实际部署。

英文摘要:

Recent advances in large language model assistants have made them indispensable, raising significant concerns over managing their safety. Automated red teaming offers a promising alternative to the labor-intensive and error-prone manual probing for vulnerabilities, providing more consistent and scalable safety evaluations. However, existing approaches often compromise diversity by focusing on maximizing attack success rate. Additionally, methods that decrease the cosine similarity from historical embeddings with semantic diversity rewards lead to novelty stagnation as history grows. To address these issues, we introduce DiveR-CT, which relaxes conventional constraints on the objective and semantic reward, granting greater freedom for the policy to enhance diversity. Our experiments demonstrate DiveR-CT's marked superiority over baselines by 1) generating data that perform better in various diversity metrics across different attack success rate levels, 2) better-enhancing resiliency in blue team models through safety tuning based on collected data, 3) allowing dynamic control of objective weights for reliable and controllable attack success rates, and 4) reducing susceptibility to reward overoptimization. Overall, our method provides an effective and efficient approach to LLM red teaming, accelerating real-world deployment.

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

↑