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

面向大语言模型自动化红队测试的提示优化与评估

Prompt Optimization and Evaluation for LLM Automated Red Teaming

Fuel iX Applied Research(Fuel iX应用研究);North Carolina State University(北卡罗来纳州立大学);University of Minnesota(明尼苏达大学);TELUS Digital(TELUS数字);Learn Prompting

Michael Freenor, Lauren Alvarez, Milton Leal, Lily Smith, Joel Garrett, Yelyzaveta Husieva, Madeline Woodruff, Ryan Miller, Erich Kummerfeld, Rafael Medeiros, Sander Schulhoff

AI总结:

针对大语言模型应用漏洞识别需求,本文提出将攻击成功率应用于单次攻击的提示优化方法,通过重复攻击衡量可发现性,助力更稳健的红队攻击生成器评估与优化。

摘要:

大语言模型(LLM)应用日益普及,系统漏洞识别的重要性不断提升。自动化红队测试通过利用LLM生成并执行针对目标系统的攻击,加快了漏洞识别进程。攻击生成器的评估采用攻击成功率(ASR),即基于每次攻击成功判定计算的样本均值。本文提出一种攻击生成器提示优化方法,将ASR应用于单次攻击。通过对随机种子初始化的目标重复执行每次攻击,我们衡量攻击的可发现性——即单次攻击成功的期望值。该方法可揭示可利用的模式,为提示优化提供依据,最终实现对生成器更稳健的评估与优化。

英文摘要:

Applications that use Large Language Models (LLMs) are becoming widespread, making the identification of system vulnerabilities increasingly important. Automated Red Teaming accelerates this effort by using an LLM to generate and execute attacks against target systems. Attack generators are evaluated using the Attack Success Rate (ASR) the sample mean calculated over the judgment of success for each attack. In this paper, we introduce a method for optimizing attack generator prompts that applies ASR to individual attacks. By repeating each attack multiple times against a randomly seeded target, we measure an attack's discoverability the expectation of the individual attack success. This approach reveals exploitable patterns that inform prompt optimization, ultimately enabling more robust evaluation and refinement of generators.

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

↑