REPRO: Reflective Evolutionary Prompt Optimizer for Automated LLM Red-Teaming
cs.CL, cs.AI, cs.NE
Submitted: 2026-10-11
Updated: 2026-10-11
Comments: Under Review for ACM TOSEM
Code: https://github.com/AbrarAlotaibi/repro-prompt-optimizer
License: http://creativecommons.org/licenses/by/4.0/
The gist: Safety-aligned large language models (LLMs) remain vulnerable to adversarial prompts that bypass their safety training.
Abstract
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.
Sources
- GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
- Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks
- Constitutional AI: Harmlessness from AI Feedback
- Jailbreaking Black Box Large Language Models in Twenty Queries
- MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots
- AJAR: Adaptive Jailbreak Architecture for Red-teaming
- Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
- Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attacks
- Jailbreaking to Jailbreak
- DeepInception: Hypnotize Large Language Model to Be Jailbreaker
- KDA: A Knowledge-Distilled Attacker for Generating Diverse Prompts to Jailbreak LLMs
- AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs
- AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
- AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMs
- CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
- Tree of Attacks: Jailbreaking Black-Box LLMs Automatically
- Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilities
- GPT-4 Technical Report
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering