arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.15513cs.CLcs.AIcs.NE
收藏

REPRO:用于自动化大语言模型红队测试的反思式进化提示优化器

REPRO: Reflective Evolutionary Prompt Optimizer for Automated LLM Red-Teaming

King Fahd University of Petroleum & Minerals(法赫德国王石油与矿产大学);Imam Abdulrahman Bin Faisal University(伊玛目阿卜杜勒拉赫曼·本·费萨尔大学);SDAIA-KFUPM Joint Research Center for Artificial Intelligence(SDAIA-KFUPM人工智能联合研究中心)

Abrar Alotaibi, Moataz Ahmed

AI总结:

本研究提出纯黑盒框架REPRO,利用7B反思模型在单消费级GPU上实现自动化LLM红队测试,在单轮攻击中对36个目标模型达100%攻击成功率,为对抗性提示优化提供新方案。

摘要:

经过安全对齐的大语言模型(LLM)仍易受到绕过其安全训练的对抗性提示的攻击。现有的自动化红队测试方法要么需要生产环境中无法获得的特权访问权限,要么依赖手动设计的针对特定模型的模板,要么优化单一目标而缺乏种群层面的多样性。我们提出REPRO(反思式进化提示优化器,Reflective Evolutionary Prompt Optimizer),这是一种纯黑盒框架,仅需单个消费级GPU,即可通过完全由压缩后的开放权重7B反思模型驱动的进化优化来发现对抗性提示。REPRO引入了两项现有工作中缺失的机制,均在组件 ablation 中单独验证:一是由LLM引导的多父代重组算子——语义交叉;二是通过结构化失败分析指导的汤普森采样实现的贝叶斯策略选择。我们在AdvBench、JailbreakBench和HarmBench上对REPRO在来自11个家族的36个目标模型上的表现进行了分类,包括GPT-5-nano、Claude-3.5-Sonnet、Gemini-2.5-Pro和Grok-4.1。在我们的协议下,REPRO在单轮攻击中对每个评估的目标均达到100%的攻击成功率(ASR),每个行为的中位目标查询数为24。该协议的两个特性对这一数字进行了限定:优化过程中对候选者进行评分的评判器同时产生报告的ASR,且搜索在接受时停止,因此ASR报告的是在迭代预算内搜索是否成功,而非在固定预算下的成功情况。所有基线数据均转录自其原始论文,这些论文使用了不同的评判器、预算和模型版本。因此,我们将此呈现为在单一协议下的模型覆盖情况目录,而非头对头排名,并在论文中详细阐述了这两项限定条件。

英文摘要:

Safety-aligned large language models (LLMs) remain vulnerable to adversarial prompts that bypass their safety training. Existing automated red-teaming methods either require privileged access unavailable in production, rely on manually engineered per-model templates, or optimize a single objective without population-level diversity. We present REPRO (Reflective Evolutionary Prompt Optimization), a pure black-box framework that discovers adversarial prompts through evolutionary optimization driven entirely by a compressed open-weight 7B reflective model on a single consumer GPU. REPRO introduces two mechanisms absent from prior work, both isolated in a component ablation: semantic crossover, an LLM-guided multi-parent recombination operator, and Bayesian strategy selection via Thompson Sampling informed by structured failure analysis. We catalog REPRO's behavior on AdvBench, JailbreakBench, and HarmBench across 36 target models from 11 families, including GPT-5-nano, Claude-3.5-Sonnet, Gemini-2.5-Pro, and Grok-4.1. Under our protocol REPRO reaches 100\% attack success rate (ASR) on every evaluated target in a single turn, at a median of 24 target queries per behavior. Two properties of the protocol qualify that figure. The judge scoring candidates during optimization also produces the reported ASR, and search halts when it accepts, so ASR reports whether search succeeded within the iteration budget rather than success at a fixed budget. All baseline figures are transcribed from their original papers, which use different judges, budgets, and model versions. We therefore present this as a catalog of model coverage under one protocol rather than a head-to-head ranking, and develop both qualifications in the paper.

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

↑