PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shen, Guobin, Zhao, Dongcheng, Feng, Linghao, He, Xiang, Wang, Jihang, Shen, Sicheng, Tong, Haibo, Dong, Yiting, Li, Jindong, Zheng, Xiang, Zeng, Yi
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908379945893888
author Shen, Guobin
Zhao, Dongcheng
Feng, Linghao
He, Xiang
Wang, Jihang
Shen, Sicheng
Tong, Haibo
Dong, Yiting
Li, Jindong
Zheng, Xiang
Zeng, Yi
author_facet Shen, Guobin
Zhao, Dongcheng
Feng, Linghao
He, Xiang
Wang, Jihang
Shen, Sicheng
Tong, Haibo
Dong, Yiting
Li, Jindong
Zheng, Xiang
Zeng, Yi
contents Large language models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial prompts known as jailbreaks, which can bypass safety alignment and elicit harmful outputs. Despite growing efforts in LLM safety research, existing evaluations are often fragmented, focused on isolated attack or defense techniques, and lack systematic, reproducible analysis. In this work, we introduce PandaGuard, a unified and modular framework that models LLM jailbreak safety as a multi-agent system comprising attackers, defenders, and judges. Our framework implements 19 attack methods and 12 defense mechanisms, along with multiple judgment strategies, all within a flexible plugin architecture supporting diverse LLM interfaces, multiple interaction modes, and configuration-driven experimentation that enhances reproducibility and practical deployment. Built on this framework, we develop PandaBench, a comprehensive benchmark that evaluates the interactions between these attack/defense methods across 49 LLMs and various judgment approaches, requiring over 3 billion tokens to execute. Our extensive evaluation reveals key insights into model vulnerabilities, defense cost-performance trade-offs, and judge consistency. We find that no single defense is optimal across all dimensions and that judge disagreement introduces nontrivial variance in safety assessments. We release the code, configurations, and evaluation results to support transparent and reproducible research in LLM safety.
format Preprint
id arxiv_https___arxiv_org_abs_2505_13862
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks
Shen, Guobin
Zhao, Dongcheng
Feng, Linghao
He, Xiang
Wang, Jihang
Shen, Sicheng
Tong, Haibo
Dong, Yiting
Li, Jindong
Zheng, Xiang
Zeng, Yi
Cryptography and Security
Computation and Language
Large language models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial prompts known as jailbreaks, which can bypass safety alignment and elicit harmful outputs. Despite growing efforts in LLM safety research, existing evaluations are often fragmented, focused on isolated attack or defense techniques, and lack systematic, reproducible analysis. In this work, we introduce PandaGuard, a unified and modular framework that models LLM jailbreak safety as a multi-agent system comprising attackers, defenders, and judges. Our framework implements 19 attack methods and 12 defense mechanisms, along with multiple judgment strategies, all within a flexible plugin architecture supporting diverse LLM interfaces, multiple interaction modes, and configuration-driven experimentation that enhances reproducibility and practical deployment. Built on this framework, we develop PandaBench, a comprehensive benchmark that evaluates the interactions between these attack/defense methods across 49 LLMs and various judgment approaches, requiring over 3 billion tokens to execute. Our extensive evaluation reveals key insights into model vulnerabilities, defense cost-performance trade-offs, and judge consistency. We find that no single defense is optimal across all dimensions and that judge disagreement introduces nontrivial variance in safety assessments. We release the code, configurations, and evaluation results to support transparent and reproducible research in LLM safety.
title PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks
topic Cryptography and Security
Computation and Language
url https://arxiv.org/abs/2505.13862