English

Prompt Optimization and Evaluation for LLM Automated Red Teaming

Cryptography and Security 2025-07-31 v1 Computation and Language

Abstract

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.

Keywords

Cite

@article{arxiv.2507.22133,
  title  = {Prompt Optimization and Evaluation for LLM Automated Red Teaming},
  author = {Michael Freenor and Lauren Alvarez and Milton Leal and Lily Smith and Joel Garrett and Yelyzaveta Husieva and Madeline Woodruff and Ryan Miller and Erich Kummerfeld and Rafael Medeiros and Sander Schulhoff},
  journal= {arXiv preprint arXiv:2507.22133},
  year   = {2025}
}

Comments

9 pages, 5 Figures, and 1 Appendix item

R2 v1 2026-07-01T04:24:42.772Z