Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

DeDe: Detecting Backdoor Samples for SSL Encoders via Decoders

About

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.

Sizai Hou, Songze Li, Duanyi Yao• 2024

Related benchmarks

TaskDatasetResultRank
Image ClassificationGTSRB
Natural Accuracy82.86
87
Downstream ClassificationCIFAR-10 modified (test)
Accuracy86.5
22
Image ClassificationSVHN
CA80.03
22
Robotic ManipulationGrasping Fanta 30 random repositioning trials (test)
CP Success Rate86.67
16
Robotic ManipulationLifting Cube 30 random repositioning trials (test)
CP0.8
16
Robotic ManipulationExtracting Tissue 30 random repositioning trials (test)
Completion Rate70
16
Robotic ManipulationShaking Hand 30 random repositioning trials (test)
Completion Percentage86.67
16
Upstream Backdoor DetectionCIFAR-10 Upstream 1.0 (train)
TPR97.6
11
Upstream Backdoor DetectionImageNet 1.0 (train)
TPR1
7
Backdoor RecoveryVLA Robotic Manipulation Tasks (Fanta, Cube, Tissue, Hand) (test)
Backdoor Recovery Fanta46.67
7
Showing 10 of 15 rows

Other info

Code

Follow for update