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

RainbowPlus:通过进化质量-多样性搜索增强对抗性提示生成

RainbowPlus: Enhancing Adversarial Prompt Generation via Evolutionary Quality-Diversity Search

VNU University of Science(越南国家科学大学);Knovel Engineering Lab(Knovel工程实验室);University of Alabama at Birmingham(阿拉巴马大学伯明翰分校)

Quy-Anh Dang, Chris Ngo, Truong-Son Hy

AI总结:

RainbowPlus通过进化质量-多样性搜索提升对抗性提示生成,实现更高的攻击成功率和多样性,且运行效率显著提高。

摘要:

大型语言模型(LLMs)展现出卓越的能力,但容易受到利用其漏洞生成不安全或偏见输出的对抗性提示的攻击。现有红色团队方法往往面临可扩展性挑战、资源需求大或攻击策略多样性有限的问题。我们提出了RainbowPlus,一种基于进化计算的新红色团队框架,通过适应性质量-多样性(QD)搜索增强对抗性提示生成,该搜索扩展了经典的MAP-Elites算法,并加入了针对语言模型的创新。通过使用多元素档案存储多样化的高质量提示和综合适应度函数来同时评估多个提示,RainbowPlus克服了先前QD方法如Rainbow Teaming在单提示档案和成对比较中的限制。在六个基准数据集和四个开源LLM上的实验表明,RainbowPlus在攻击成功率(ASR)和多样性(Diverse-Score≈0.84)方面均优于QD方法,生成的唯一提示数量多达100倍(例如,10,418 vs. 100 for Ministral-8B-Instruct-2410)。在九种最先进的方法上,针对十二个LLM(十个开源,两个闭源)的HarmBench数据集,RainbowPlus实现了平均ASR为81.1%,超过AutoDAN-Turbo 3.9%,且速度快9倍(1.45 vs. 13.50小时)。我们的开源实现促进了LLM安全的进一步发展,提供了一种可扩展的漏洞评估工具。代码和资源在https://github.com/knoveleng/rainbowplus公开可用,支持可重复性和未来LLM红色团队研究。

英文摘要:

Large Language Models (LLMs) exhibit remarkable capabilities but are susceptible to adversarial prompts that exploit vulnerabilities to produce unsafe or biased outputs. Existing red-teaming methods often face scalability challenges, resource-intensive requirements, or limited diversity in attack strategies. We propose RainbowPlus, a novel red-teaming framework rooted in evolutionary computation, enhancing adversarial prompt generation through an adaptive quality-diversity (QD) search that extends classical evolutionary algorithms like MAP-Elites with innovations tailored for language models. By employing a multi-element archive to store diverse high-quality prompts and a comprehensive fitness function to evaluate multiple prompts concurrently, RainbowPlus overcomes the constraints of single-prompt archives and pairwise comparisons in prior QD methods like Rainbow Teaming. Experiments comparing RainbowPlus to QD methods across six benchmark datasets and four open-source LLMs demonstrate superior attack success rate (ASR) and diversity (Diverse-Score $\approx 0.84$), generating up to 100 times more unique prompts (e.g., 10,418 vs. 100 for Ministral-8B-Instruct-2410). Against nine state-of-the-art methods on the HarmBench dataset with twelve LLMs (ten open-source, two closed-source), RainbowPlus achieves an average ASR of 81.1%, surpassing AutoDAN-Turbo by 3.9%, and is 9 times faster (1.45 vs. 13.50 hours). Our open-source implementation fosters further advancements in LLM safety, offering a scalable tool for vulnerability assessment. Code and resources are publicly available at https://github.com/knoveleng/rainbowplus, supporting reproducibility and future research in LLM red-teaming.

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

↑