Year: 2026
Type: article
Abstract: Large language models (LLMs) are vulnerable to jailbreak attacks, in which malicious users craft prompts to cause the generation of harmful output. Although numerous defense mechanisms have been investigated, they exhibit critical limitations: 1) a single defense method cannot effectively counter multiple jailbreak types, and 2) the inclusion of multiple defenses incurs substantial resource consumption and deployment costs, hindering large-scale application. To resolve these limitations, we propose JailBreakGuard, a prompt perturbation-based defense framework. The core of JailBreakGuard is a novel perplexity-based perturbation strategy selection mechanism, which dynamically integrates the strengths of various perturbation methods, thereby enabling defense against a wide range of jailbreak attacks. Leveraging the susceptibility of jailbreak prompts to perturbations, we apply either character-level or sentence-level perturbations at the input stage. This eliminates modifications to the target model, ensuring low implementation cost and resource consumption, and enables convenient deployment at the service interface of LLM-based applications, including service-providing nodes in peer-to-peer (P2P) environments. Extensive experiments across nine jailbreak attacks spanning seven categories demonstrate that JailBreakGuard reduces the average attack success rate by over 70% on both victim models. Meanwhile, it limits the maximum performance degradation on benign queries to 3.19%, exhibiting strong generalizability and usability.
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: hybrid
Estimated APC paid: $4,090
Awards: G7559676055, G8786125861
OpenAlex ID: W7214733233
