arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19247cs.CLcs.AI
收藏

当提示优化成为劫持:大型语言模型的自适应红队测试

When Prompt Optimization Becomes Jailbreaking: Adaptive Red-Teaming of Large Language Models

Algoverse AI Research(Algoverse AI研究院)

Zafir Shamsi, Nikhil Chekuru, Zachary Guzman, Shivank Garg

AI总结:

研究探讨了大型语言模型在对抗性提示优化下的安全性漏洞,通过自适应红队测试发现开源小模型的安全保障显著降低,表明静态评估无法准确反映真实风险。

摘要:

大型语言模型(LLMs)日益融入高风险应用,使其安全保证成为关键问题。现有安全评估主要依赖固定有害提示集,隐含假设非自适应对手,忽略了输入迭代优化以规避安全措施的真实攻击场景。本文研究了当代语言模型对自动化对抗性提示优化的脆弱性。我们利用黑盒提示优化技术,原本用于改进良性任务性能,系统搜索安全故障。使用DSPy,我们应用三种优化器对HarmfulQA和JailbreakBench中的提示进行优化,明确优化向0到1的连续危险分数,由独立评估模型(GPT-5.1)提供。结果表明,有效安全措施显著减少,尤其是对开源小语言模型影响尤为明显。例如,Qwen 3 8B的平均危险分数从基线设置的0.09增加到0.79。这些发现表明静态基准可能低估残余风险,表明自动化自适应红队测试是稳健安全评估的必要组成部分。

英文摘要:

Large Language Models (LLMs) are increasingly integrated into high-stakes applications, making robust safety guarantees a central practical and commercial concern. Existing safety evaluations predominantly rely on fixed collections of harmful prompts, implicitly assuming non-adaptive adversaries and thereby overlooking realistic attack scenarios in which inputs are iteratively refined to evade safeguards. In this work, we examine the vulnerability of contemporary language models to automated, adversarial prompt refinement. We repurpose black-box prompt optimization techniques, originally designed to improve performance on benign tasks, to systematically search for safety failures. Using DSPy, we apply three such optimizers to prompts drawn from HarmfulQA and JailbreakBench, explicitly optimizing toward a continuous danger score in the range 0 to 1 provided by an independent evaluator model (GPT-5.1). Our results demonstrate a substantial reduction in effective safety safeguards, with the effects being especially pronounced for open-source small language models. For example, the average danger score of Qwen 3 8B increases from 0.09 in its baseline setting to 0.79 after optimization. These findings suggest that static benchmarks may underestimate residual risk, indicating that automated, adaptive red-teaming is a necessary component of robust safety evaluation.

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

↑