SelfGuard: Self-Supervised Deviation Modeling for Multi-Modal Jailbreak Detection
Chenchen Jing, Hongli Guo, Huarong Jia, TianweiBai, Che Sun, Yang Liu, Chunhua Shen
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › Multimodal Safety Steering · Type: new method · Keywords: jailbreak detection, self-supervised learning, multimodal models, safety, cross-modal inconsistency
Areas: Multimodal › Multimodal Integration and Robustness › Multimodal Jailbreak Safety; Safety & Security › Safe Alignment › Multimodal model safety; Evaluation & Benchmarks › Language Model and Agent Safety › LLM Safety Evaluation
Summary
SelfGuard introduces a self-supervised deviation modeling framework for detecting multi-modal jailbreak attacks by learning from benign data and synthesizing pseudo-harmful deviations.
Explained to a 5-year-old
Big computer programs that understand pictures and words can be tricked into saying bad things. We want to catch those tricks. We teach the computer to notice what normal pictures and words look like. Then we make fake bad examples to see how they differ. By comparing, we can spot when something is wrong. This helps keep the computer safe.
Explained to a 5-year-old, longer
Computers that can read both pictures and words are very smart. Sometimes people try to make them say bad things by using hidden tricks. These tricks are hard to see because they are new and rare. We need a way to find these tricks without seeing many bad examples. The idea is to teach the computer what normal looks like. By looking at many normal pictures and words, it learns a pattern. Then we create fake bad examples that break the pattern in specific ways. We break the pattern by making pictures and words that don't match, by changing how they are written, and by adding mean words. The computer learns to notice these breaks. It looks at many different clues to decide if something is wrong. When it sees a real bad example, it says something is off. This helps protect the computer and people who use it. It works even for tricks it has never seen before. The method is simple: learn normal, make fake bad, compare, and catch the bad.
For a technical reader
The paper addresses the problem of detecting jailbreak attacks against multimodal language models, which can bypass safety filters using subtle cross-modal cues. It proposes a self-supervised approach that first learns the statistical regularities of benign multimodal data. Then it generates controlled pseudo-harmful samples that violate three known attack signatures: semantic inconsistency, format manipulation, and toxicity. Using multi-task self-supervised learning, it extracts deviation scores from these violations and combines them at inference to flag suspicious inputs. The method shows strong generalization on multiple benchmarks without requiring labeled attack data.
Problem
Detecting jailbreak attacks in multi-modal language models is challenging because harmful examples are scarce and detectors trained on known patterns often fail to generalize.
Method
The approach learns benign multi-modal regularities via self-supervised learning and creates pseudo-harmful samples through controlled transformations that target cross-modal inconsistency, format manipulation, and semantic toxicity, then learns deviation statistics using misalignment discrimination, reconstruction-based toxicity modeling, and contrastive format modeling, and aggregates these scores at inference.
Results
The approach demonstrates strong detection performance across multiple benchmarks, indicating effective generalization to unseen jailbreak attacks.
Contributions
A self-supervised framework that learns attack-agnostic signals from benign data only, synthesizing pseudo-harmful deviations to capture cross-modal inconsistency, format manipulation, and semantic toxicity, and a multi-task learning scheme for deviation detection.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction