SelfGuard: a jailbreak detector trained only on benign data
SelfGuard is a NeurIPS 2026 jailbreak detector for vision-language models that trains on benign data only, not on known attack samples.
· Zhejiang University of Technology · Research by Chenchen Jing, Hongli Guo, Huarong Jia, Tianwei Bai, Che Sun, Zhejiang University of Technology
SelfGuard detects multi-modal jailbreaks after training only on benign inputs, with no known attack samples needed. The authors report the best overall AUROC of ten detectors across three benchmarks. Accepted at NeurIPS 2026, code released.
01What happened
Researchers at Zhejiang University of Technology and three other institutions posted SelfGuard to arXiv on 30 November 2026, noting acceptance at NeurIPS 2026. Code is published on GitHub under an MIT license. The paper frames multi-modal jailbreak detection as self-supervised deviation modeling, so the detector never sees a harmful example during training.
02How it works
Controlled transformations turn clean samples into pseudo-harmful ones that target three cues: cross-modal semantic inconsistency, format manipulation and semantic toxicity. Three self-supervised tasks then learn to spot each cue, namely misalignment discrimination, reconstruction-based toxicity modeling and contrastive format modeling. At inference the detector adds up the per-task deviation scores to decide whether an input is an attack.
03Who is affected
Teams putting guardrails in front of vision-language models are the audience. Detection is measured on MM-SafetyBench, FigStep and JailBreakV-28K, each paired with benign MM-Vet inputs, and the defense variant is measured on LLaVA-1.5-7B, CogVLM-chat-v1.1 and Qwen3-VL-8B.
04What to do
Read the false-positive numbers before deploying. The authors report a 20.18% false positive rate at a 99.08% true positive rate, which means roughly one benign input in five is blocked at that operating point.
Measured results
Jailbreak detection, overall AUROC
Higher is better. Across MM-SafetyBench, FigStep and JailBreakV-28K.
| Result | Score |
|---|---|
| SelfGuardthis story | 1.0AUROC |
| JailDAM | 1.0AUROC |
| GradSafe-7B | 0.9AUROC |
| HiddenDetect-13B | 0.8AUROC |
| HiddenDetect-7B | 0.8AUROC |
| Llavaguard-7B | 0.8AUROC |
| VLGuard-7B | 0.6AUROC |
| VLGuard-13B | 0.5AUROC |
| Jailguard-13B | 0.5AUROC |
| Llavaguard-13B | 0.4AUROC |
Scale 0 to 1AUROC · Source: arxiv.org, as published
Sources 3 links, all fetched
- 1arxiv.orgarXiv Paper
- 2github.comSelfGuard Code
- 3arxiv.orgPaper Full Text