通过解码器差异检测自监督模型中的后门样本
DeDe: Detecting Backdoor Samples for SSL Encoders via Decoders
- 用辅助数据训练解码器,捕捉编码器异常输出
- 触发输入导致解码结果与原图差异显著,暴露后门行为
- 适用于对比学习和CLIP,对隐蔽攻击检测效果好
自监督学习(SSL)广泛用于利用大量无标签数据训练高质量上游编码器,但仅污染少量训练数据就可能引发后门攻击。受害编码器会将触发输入映射到目标嵌入(如触发猫图像被误判为飞机嵌入),导致下游任务在触发时产生非预期行为。现有后门攻击已威胁多种SSL范式(如对比学习和CLIP),但防御研究仍不足,现有方法难以检测高级隐蔽后门。为此,我们提出新检测机制DeDe,通过解码器识别触发输入在编码器中引发的异常映射。具体地,使用辅助数据(可为分布外或轻微污染)训练任意给定SSL编码器的解码器,当触发输入使编码器错误映射至目标嵌入时,解码器生成的输出图像与输入差异显著。DeDe利用输入与解码输出间的不一致性,在推理阶段识别潜在后门行为。我们在对比学习和CLIP模型上对多种后门攻击进行了实证评估,结果表明,DeDe在各类先进攻击下均具优异检测效果,优于当前最先进检测方法。
原文摘要 · Abstract (English)
Self-supervised learning (SSL) is pervasively exploited in training high-quality upstream encoders with a large amount of unlabeled data. However, it is found to be susceptible to backdoor attacks merely via polluting a small portion of training data. The victim encoders associate triggered inputs with target embeddings, e.g., mapping a triggered cat image to an airplane embedding, such that the downstream tasks inherit unintended behaviors when the trigger is activated. Emerging backdoor attacks have shown great threats across different SSL paradigms such as contrastive learning and CLIP, yet limited research is devoted to defending against such attacks, and existing defenses fall short in detecting advanced stealthy backdoors. To address the limitations, we propose a novel detection mechanism, DeDe, which detects the activation of backdoor mappings caused by triggered inputs on victim encoders. Specifically, DeDe trains a decoder for any given SSL encoder using an auxiliary dataset (which can be out-of-distribution or even slightly poisoned), so that for any triggered input that misleads the encoder into the target embedding, the decoder generates an output image significantly different from the input. DeDe leverages the discrepancy between the input and the decoded output to identify potential backdoor misbehavior during inference. We empirically evaluate DeDe on both contrastive learning and CLIP models against various types of backdoor attacks. Our results demonstrate promising detection effectiveness over various advanced attacks and superior performance compared over state-of-the-art detection methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。