Adversarial-Test-Driven Multi-Agent LLM Defense: A Self-Evolving Framework via Inference-Time Prompt Optimization
Large Language Models (LLMs) remain highly susceptible to jailbreak attacks that bypass safety alignments through sophisticated prompt manipulation. While multi-agent defense systems have emerged as a promising countermeasure, existing frameworks predominantly rely on static agent designs, which struggle to adapt to evolving adversarial strategies. To bridge this gap, we propose an Adversarial-Test-Driven Multi-Agent Defense framework that shifts the focus from model-level fine-tuning to system-level optimization. Our framework introduces a closed-loop evolutionary process consisting of an Attack Design agent that probes vulnerabilities with adaptive adversarial prompts, and an Optimization agent that iteratively refines the defense agents’ system prompts based on feedback. This approach enables the defense system to correct reasoning failures at inference time without requiring gradient-based updates to the underlying LLMs. The experimental results demonstrate that our framework achieves a state-of-the-art Attack Success Rate (ASR). The experiments show that the framework improves jailbreak robustness while making the associated safety–utility trade-off explicit.
Authors
- Lei Cao (ORCID: https://orcid.org/0000-0003-4190-3225)
- Hongxi Chen (ORCID: https://orcid.org/0009-0002-1622-4861)
- Yi-Xiang Wang (ORCID: https://orcid.org/0000-0002-4021-4228)
- Yang Qu
- Yuwei He
- Sulei Li
Institutions
- Institute of Computing Technology (CN)
- China Agricultural University (CN)
Publication Details
- Journal
- Electronics
- Published
- 2026-05-31
- DOI
- https://doi.org/10.3390/electronics15112365
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00