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

Be a Multitude to Itself:用于红队测试的提示进化框架

Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming

Peking University(北京大学);Beihang University(北京航空航天大学)

Rui Li, Peiyi Wang, Jingyuan Ma, Di Zhang, Lei Sha, Zhifang Sui

AI总结:

提出RTPE进化框架,通过广度和深度两个维度自动生成高质量多样化红队提示,在攻击成功率和多样性上超越现有方法,并基于4800个提示对8个LLM在8个敏感话题上进行了系统分析。

摘要:

大型语言模型(LLMs)因其卓越的能力而日益受到关注,同时其可能产生有害内容的潜力也引发了安全方面的担忧。红队测试旨在寻找能够诱导LLMs产生有害响应的提示,对于在实际部署前发现和缓解安全风险至关重要。然而,人工红队测试既耗时又昂贵,使其难以扩展。在本文中,我们提出了RTPE,一个可扩展的进化框架,在广度和深度两个维度上进化红队提示,促进自动生成大量高质量且多样化的红队提示。具体而言,广度进化采用一种新颖的增强型上下文学习方法,以创建大量高质量提示,而深度进化则应用定制的转换操作来增强提示的内容和形式,从而增加多样性。大量实验表明,RTPE在攻击成功率和多样性方面均超越了现有的代表性自动红队测试方法。此外,基于RTPE生成的4,800个红队提示,我们进一步对8个代表性LLMs在8个敏感话题上进行了系统性分析。

英文摘要:

Large Language Models (LLMs) have gained increasing attention for their remarkable capacity, alongside concerns about safety arising from their potential to produce harmful content. Red teaming aims to find prompts that could elicit harmful responses from LLMs, and is essential to discover and mitigate safety risks before real-world deployment. However, manual red teaming is both time-consuming and expensive, rendering it unscalable. In this paper, we propose RTPE, a scalable evolution framework to evolve red teaming prompts across both breadth and depth dimensions, facilitating the automatic generation of numerous high-quality and diverse red teaming prompts. Specifically, in-breadth evolving employs a novel enhanced in-context learning method to create a multitude of quality prompts, whereas in-depth evolving applies customized transformation operations to enhance both content and form of prompts, thereby increasing diversity. Extensive experiments demonstrate that RTPE surpasses existing representative automatic red teaming methods on both attack success rate and diversity. In addition, based on 4,800 red teaming prompts created by RTPE, we further provide a systematic analysis of 8 representative LLMs across 8 sensitive topics.

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

↑