Skip to content

JailGuard: A General Detection Framework for LLM Prompt AttacksJailGuard: A Universal Detection Framework for LLM Prompt-based Attacks

arXiv· arXiv:2312.10766· Xiaoyu Zhang, Cen Zhang, Tianlin Li, Yihao Huang, Xiaojun Jia, Ming Hu, Jie Zhang, Yang Liu, Shiqing Ma, Chao Shen·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The researchers propose JailGuard, a general detection framework deployed on top of LLM systems for detecting prompt attacks in text and image modalities, with maximum detection accuracy of 86.14% and 82.90% on text and image inputs, respectively. Its principle is that attack samples are less robust than benign samples; the framework mutates untrusted inputs to generate variants, then compares the differences in the target model's responses to the variants to distinguish attack samples from benign samples. The authors implement 18 text and image mutators and design mutator combination strategies to improve detection generalization. Evaluated on a dataset containing 15 known attack types, the paper states that it outperforms existing methods by 11.81% to 25.73% and 12.20% to 21.40% on text and image inputs, respectively.

Read originalarxiv.org