arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.08329cs.CL
收藏

AutoRed:一种用于自动化红队测试的自由形式对抗性提示生成框架

AutoRed: A Free-form Adversarial Prompt Generation Framework for Automated Red Teaming

Beijing University of Posts and Telecommunications(北京邮电大学);Peking University(北京大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院)

Muxi Diao, Yutao Mou, Keqing He, Hanbo Song, Lulu Zhao, Shikun Zhang, Wei Ye, Kongming Liang, Zhanyu Ma

AI总结:

AutoRed提出无需种子指令的自由形式对抗性提示生成框架,通过角色引导生成和反思循环优化,结合验证器提升效率,在八个LLM上实现更高攻击成功率,推动LLM安全评估。

摘要:

大型语言模型(LLMs)的安全性对于开发值得信赖的AI应用至关重要。现有的红队测试方法通常依赖于种子指令,这限制了合成对抗性提示的语义多样性。我们提出了AutoRed,一种自由形式的对抗性提示生成框架,无需种子指令。AutoRed分两个阶段运行:(1)角色引导的对抗性指令生成,以及(2)一个反思循环,用于迭代改进低质量的提示。为了提高效率,我们引入了一个验证器,无需查询目标模型即可评估提示的危害性。使用AutoRed,我们构建了两个红队测试数据集——AutoRed-Medium和AutoRed-Hard——并评估了八个最先进的LLMs。AutoRed比现有基线实现了更高的攻击成功率和更好的泛化能力。我们的结果突显了基于种子方法的局限性,并展示了自由形式红队测试在LLM安全性评估中的潜力。我们将在不久的将来开源我们的数据集。

英文摘要:

The safety of Large Language Models (LLMs) is crucial for the development of trustworthy AI applications. Existing red teaming methods often rely on seed instructions, which limits the semantic diversity of the synthesized adversarial prompts. We propose AutoRed, a free-form adversarial prompt generation framework that removes the need for seed instructions. AutoRed operates in two stages: (1) persona-guided adversarial instruction generation, and (2) a reflection loop to iteratively refine low-quality prompts. To improve efficiency, we introduce a verifier to assess prompt harmfulness without querying the target models. Using AutoRed, we build two red teaming datasets -- AutoRed-Medium and AutoRed-Hard -- and evaluate eight state-of-the-art LLMs. AutoRed achieves higher attack success rates and better generalization than existing baselines. Our results highlight the limitations of seed-based approaches and demonstrate the potential of free-form red teaming for LLM safety evaluation. We will open source our datasets in the near future.

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

↑