Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models

Zhang Wei, Hanxuan Chen, Peilu Hu, Zhenyuan Wei, Chenwei Liang, Jiayi Gu, Wenqian Weng, Jacqueline Pang, Hao Yan, Li Mei, Shengning Lang, Kuan Lu, Xi Xiao, Zhimo Han, Yijin Wang, Yichao Zhang, Chen Yang, Zhenyu Yu, Riyang Bao, Xinyuan Song, Junfeng Hao, Mu-Jiang-Shan WangarXiv 2025

TL;DR

This paper reframes Large Language Model (LLM) red-teaming from a manual prompt-writing exercise into a systematic, constrained adversarial search problem. By combining meta-prompt generation, evolutionary mutations, and multi-tiered vulnerability detection, their automated framework achieves a 3.9× higher vulnerability discovery rate than human experts while maintaining full coverage across diverse threat categories.

What Problem Does This Paper Address?

Evaluating LLM safety is currently stuck between two suboptimal approaches: static benchmark suites (which quickly become outdated and miss model-specific edge cases) and manual red-teaming by human experts (which is expensive, slow, and hard to scale or reproduce).

Furthermore, existing automated jailbreak methods are often hyper-focused on a single type of attack (like standard policy violations) and suffer from "template collapse," failing to explore a broad spectrum of vulnerabilities. Deployed models face complex, context-sensitive risks distributed across many threat categories—such as deceptive alignment, reward hacking, or chain-of-thought manipulation—that simple keyword-based testing completely misses.

Figure 1: Why red-teaming needs adaptive search. Manual red-teaming can uncover high-value failures, but it explores only a small and difficult-to-reproduce slice of the prompt space. Fixed benchmarks improve standardization but may miss emergent or model-specific failures. Our framework fills the gap by generating diverse adversarial prompts, executing them against the target model, and scoring the resulting behaviors under a shared vulnerability rubric.

Methods

The authors propose an automated red-teaming framework structured as a constrained adversarial search problem. It optimizes for attack success while enforcing explicit constraints on diversity (to prevent template collapse) and category coverage (to avoid blind spots).

The pipeline consists of four main operators:

  1. Seed Collection and Initialization: Starts with curated safety seeds across six distinct threat categories.
  2. Adversarial Prompt Generation: Uses a generator LLM guided by meta-prompts to expand seeds, followed by an evolutionary mutation loop (lexical substitution, syntactic variation, contextual modification, and adversarial enhancement) to continuously diversify the attack vectors.
  3. Hierarchical Vulnerability Detection: A multi-tiered scoring engine that combines lexical pattern analysis (fast keyword filtering), semantic similarity analysis (transformer-based embeddings to catch paraphrased/implicit failures), and behavioral pattern analysis (detecting higher-order anomalies like abnormal verbosity or evasive language).
  4. Aggregated Evaluation and Reporting: Synthesizes scores into a multi-dimensional rubric evaluating Severity, Breadth, Novelty, and Reproducibility.
Figure 2: Overview of the proposed red-teaming framework. Curated seed prompts initialize category coverage, meta-prompt-guided generation and evolutionary mutation expand the adversarial set, and the target model is queried under a fixed budget. A hierarchical detector scores each prompt–response pair with lexical, semantic, and behavioral signals, producing a structured report over severity, breadth, novelty, and reproducibility.

Datasets

Unlike conventional supervised learning, this framework operates on a dynamically generated corpus under a fixed query budget rather than a static dataset.

  • Initial Seeds: Drawn from heterogeneous raw sources, including public vulnerability databases and academic literature.
  • Baselines & Reference Patterns: Sourced from established safety benchmarks including HarmBench, JailbreakBench, XSTest, CyberSecEval, AgentHarm, and SafetyPrompts.
  • Validation Set: A dedicated set of 500 annotated prompt-response pairs was utilized for threshold calibration and validation of the detection engine.

Key Insights and Ideas

  • Red-Teaming as Search, Not a Checklist: Treating safety evaluation as an adaptive optimization problem with explicit diversity and coverage constraints prevents the system from degenerating into repetitive prompt variants.
  • The Necessity of Behavioral and Semantic Detection: Lexical rules catch blatant violations, but semantic and behavioral detectors are crucial for catching subtle, implicit failures like deceptive alignment or sandbagging where the model doesn't use "bad words" but behaves maliciously.
  • Sustained Exploration: While baseline automated methods plateau quickly once they exhaust a specific prompt family, the evolutionary mutation engine allows the framework to continuously discover novel vulnerabilities over extended testing periods.

Key Results

  • Higher Yield: Discovered 47 validated vulnerabilities on GPT-OSS-20B, compared to just 12 for manual expert red-teaming, 18 for template attacks, and 23 for AdvPrompter under the exact same query budget.
  • High Severity & Novelty: Out of the 47 discoveries, 21 (44.7%) were classified as high-severity, and 12 represented entirely novel attack patterns.
  • Efficiency and Cost-Effectiveness: Achieved a 3.9× higher discovery rate than manual expert red-teaming, saving an estimated 3.9 human labor hours per validated vulnerability at an average cost of $12.50 per discovery.
  • Reliability: Maintained an 89% detection accuracy and demonstrated tighter confidence intervals and higher reproducibility across independent trials than baseline methods.
Figure 3: Defense trade-offs under discovered attacks. Each axis reports one deployment metric: block rate, latency (inverted), compute overhead (inverted), false- positive rate (inverted), and cost-effectiveness. Compos- ite defenses block more of the discovered vulnerabilities, but the radar shape shows why this is not a free improve- ment: stronger filtering increases operational overhead and can introduce false positives.

Limitations and Future Work

  • Model Scope: The primary quantitative evaluation was focused on GPT-OSS-20B. While trend validation was performed on LLaMA-2 and Claude-2, broader testing across more API-only and open-weight architectures is required.
  • Human-in-the-Loop Dependence: Vulnerability detection still relies on calibrated thresholds and expert validation rather than being 100% fully automated ground truth.
  • Agentic/Multi-Step Extensions: The current framework primarily evaluates single-turn interactions. Future work needs to extend this to multi-step tool traces and complex agent workflows (e.g., code execution, file access, browsing).
  • Uncertainty Quantification: The detector lacks explicit uncertainty estimation or calibrated abstention features, which would make the system more robust for automated auditing.

Summary updated

BibTeX
@misc{wei2025learning,
  author = {Zhang Wei and Hanxuan Chen and Peilu Hu and Zhenyuan Wei and Chenwei Liang and Jiayi Gu and Wenqian Weng and Jacqueline Pang and Hao Yan and Li Mei and Shengning Lang and Kuan Lu and Xi Xiao and Zhimo Han and Yijin Wang and Yichao Zhang and Chen Yang and Zhenyu Yu and Riyang Bao and Xinyuan Song and Junfeng Hao and Mu-Jiang-Shan Wang},
  title = {{Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models}},
  year = {2025},
  eprint = {2512.20677},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20677},
}
Figure