NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks

Guobin Shen, Dongcheng Zhao, Linghao Feng, Xiang He, Jihang Wang, Sicheng Shen, Haibo Tong, Yiting Dong, Jindong Li, Xiang Zheng, Yi ZengarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) are increasingly deployed with safety guardrails, yet they remain susceptible to "jailbreaking"—adversarial prompts designed to bypass alignment and elicit harmful outputs. Current evaluation methods are often fragmented, testing single attacks against limited models or ignoring the practical costs of defense. This paper introduces PandaGuard, a modular, open-source framework designed to standardize the evaluation of LLM safety within a multi-agent ecosystem.

The PandaGuard Framework

PandaGuard models LLM safety as a pipeline involving four primary agents:

  1. Attackers: Utilizing 19 methods ranging from optimization-based (e.g., GCG) to semantic transformations (e.g., PastTense).
  2. Defenders: Implementing 12 mechanisms such as input filtering and prompt rewriting.
  3. Target LLMs: The models under evaluation, supported via local inference (vLLM/SGLang) or commercial APIs.
  4. Judges: Automated systems (rule-based or LLM-based) that determine the success of a jailbreak.
The PandaGuard framework architecture, illustrating the multi-agent pipeline of attackers, defenders, and judges.

To ensure algorithmic fairness, the framework uses a standardized proxy model (Llama-3.1-8B) for generating adaptive attacks and running LLM-reliant defenses.

PandaBench: A Large-Scale Evaluation

Using PandaGuard, the authors conducted PandaBench, a massive evaluation of 49 LLMs requiring over 3 billion tokens of compute. The benchmark utilizes the JBB-Behaviors dataset, comprising 100 harmful prompts across 10 categories, including malware, fraud, and hate speech.

Key Results and Analysis

The evaluation revealed that safety is not a guaranteed byproduct of model scale or recency. For instance, Qwen3 exhibited higher vulnerability compared to its predecessor, Qwen2.5, suggesting that safety requires explicit alignment optimization.

Evaluation results showing (a) attack success rates over time, (b) vulnerability across harm categories, and (c) model-specific performance with and without defense.

Model Vulnerability and Defense Effectiveness

Proprietary models like Claude-3.5 and GPT-4o demonstrated high robustness, with Attack Success Rates (ASR) below 3%. In contrast, several open-source models, such as DeepSeek-R1 and Qwen3-1.7B, exceeded 20% ASR. Across the board, implementing defense mechanisms reduced ASRs by approximately one-third to one-half, with smaller models seeing the most significant gains.

The Defense Trilemma

A critical finding is the trade-off between security, cost, and utility. Strong semantic defenses like SmoothLLM effectively mitigate attacks but can increase token usage by up to 5x and degrade performance on benign tasks by as much as 25%. This "Defense Trilemma" highlights the difficulty of achieving high security without sacrificing efficiency or general capability.

Reliability of Automated Judges

The study highlights the alarming inconsistency of automated safety judges. Rule-based judges often over-report jailbreak success by missing nuanced refusals. Inter-judge agreement, measured by Cohen’s Kappa, was notably low (0.071 to 0.126), underscoring the subjective nature of safety evaluations and the need for more robust grading standards.

Conclusion and Future Work

PandaGuard provides a rigorous foundation for LLM safety research, yet limitations remain. The current framework focuses on text-based attacks, leaving multimodal vulnerabilities (image/audio) for future exploration. Additionally, the unreliability of automated judges necessitates further work in aligning algorithmic assessments with human values through dedicated human evaluation studies.

Summary updated

BibTeX
@misc{shen2025pandaguard,
  author = {Guobin Shen and Dongcheng Zhao and Linghao Feng and Xiang He and Jihang Wang and Sicheng Shen and Haibo Tong and Yiting Dong and Jindong Li and Xiang Zheng and Yi Zeng},
  title = {{PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks}},
  year = {2025},
  eprint = {2505.13862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13862},
}
Figure