SelfGuard:只用良性数据自监督检测多模态越狱攻击
SelfGuard: Self-Supervised Deviation Modeling for Multi-Modal Jailbreak Detection
多模态越狱检测一直卡在有害样本太少这个死结上,SelfGuard 干脆只用正常数据训练,靠伪有害变换学偏差信号。做 MLLM 安全或内容审核的团队可以看看它的开源实现,跟依赖攻击样本库的方案对比一下泛化效果。
论文提出 SelfGuard 框架,把多模态越狱检测转化为自监督偏差建模,仅用良性数据训练,不依赖稀缺且快速演变的有害样本。它通过受控变换合成伪有害样本,针对三类典型攻击线索:跨模态语义不一致、格式操纵和语义毒性。
训练阶段采用多任务自监督学习,包含错位判别、基于重建的毒性建模和对比格式建模三个互补任务,各自学习不同的偏差统计量。推理时对多个视角的偏差分数进行聚合,识别偏离良性多模态规律的可疑输入,从而提升对未见攻击模式的泛化能力。
这类方法针对的是 MLLM 安全检测中“有害数据稀缺、检测器难以泛化”的痛点,相比依赖已知攻击模式训练的检测器,只在良性分布上建模的方式对新型越狱变体更稳健。代码已在 GitHub 开源。
SelfGuard: Self-Supervised Deviation Modeling for Multi-Modal Jailbreak Detection
Multi-modal large language models (MLLMs) achieve strong vision-language reasoning ability but remain vulnerable to jailbreak attacks that exploit subtle cross-modal cues to bypass safety mechanisms. Detecting such attacks is difficult because harmful data are scarce and rapidly evolving, while detectors trained on known patterns often fail to generalize. In this paper, we cast multi-modal jailbreak detection as self-supervised deviation modeling and learn generalizable deviation signals from benign data only. We propose SelfGuard, a self-supervised framework, which models benign multi-modal regularities and learns to score structured violations via controlled pseudo-harmful deviations. SelfGuard synthesizes pseudo-harmful samples via controlled transformations that target three signature cues, cross-modal semantic inconsistency, format manipulation, and semantic toxicity. It then learns complementary deviation statistics through multi-task self-supervised learning, including misalignment discrimination, reconstruction-based toxicity modeling, and contrastive format modeling. At inference, SelfGuard performs multi-view deviation estimation by aggregating task-specific deviation scores to identify departures from benign multi-modal regularities. Extensive experiments on various benchmarks show the effectiveness of our method. The code is available at https://github.com/jingchenchen/SelfGuard.
本条情报归属 AITOP「论文」核心栏目,重点聚焦中国 AI 产业与国产大模型生态。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:SelfGuard、多模态、AI安全、越狱攻击,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Chenchen Jing, Hongli Guo, Huarong Jia, Tianwei Bai, Che Sun, Yang Liu, Chunhua Shen),经 AITOP 多维评分管线结构化提炼。