When Prompt Optimization Becomes Jailbreaking: Adaptive Red-Teaming of Large Language Models
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 7 of its 19 references that are in the map. First posted on arXiv 21 Feb 2026.
Builds on
7 of 19 references.
Closest ancestors · 3
Same direction, newest first
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal6 Feb
- 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teaming13 Nov
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignment18 Aug
Other references · 4
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
- 2025AutoPDL: Automatic Prompt Optimization for LLM Agentscited by 27
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Adversarial Reframing: A Framework for Targeted Generation in Language Models
- 2025Prompt Injection as an Emerging Threat: Evaluating the Resilience of Large Language Models
- 2025Jailbreak-Zero: A Path to Pareto Optimal Red Teaming for Large Language Models
- 2024Mitigating Exaggerated Safety in Large Language Models
- 2025Safeguarding Efficacy in Large Language Models: Evaluating Resistance to Human-Written and Algorithmic Adversarial Prompts
- 2025Exploring the Secondary Risks of Large Language Models
- 2025MetaSC: Test-Time Safety Specification Optimization for Language Models
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models