English

Detecting Backdoors in Pre-trained Encoders

Computer Vision and Pattern Recognition 2023-03-28 v1 Artificial Intelligence Cryptography and Security

Abstract

Self-supervised learning in computer vision trains on unlabeled data, such as images or (image, text) pairs, to obtain an image encoder that learns high-quality embeddings for input data. Emerging backdoor attacks towards encoders expose crucial vulnerabilities of self-supervised learning, since downstream classifiers (even further trained on clean data) may inherit backdoor behaviors from encoders. Existing backdoor detection methods mainly focus on supervised learning settings and cannot handle pre-trained encoders especially when input labels are not available. In this paper, we propose DECREE, the first backdoor detection approach for pre-trained encoders, requiring neither classifier headers nor input labels. We evaluate DECREE on over 400 encoders trojaned under 3 paradigms. We show the effectiveness of our method on image encoders pre-trained on ImageNet and OpenAI's CLIP 400 million image-text pairs. Our method consistently has a high detection accuracy even if we have only limited or no access to the pre-training dataset.

Keywords

Cite

@article{arxiv.2303.15180,
  title  = {Detecting Backdoors in Pre-trained Encoders},
  author = {Shiwei Feng and Guanhong Tao and Siyuan Cheng and Guangyu Shen and Xiangzhe Xu and Yingqi Liu and Kaiyuan Zhang and Shiqing Ma and Xiangyu Zhang},
  journal= {arXiv preprint arXiv:2303.15180},
  year   = {2023}
}

Comments

Accepted at CVPR 2023. Code is available at https://github.com/GiantSeaweed/DECREE

R2 v1 2026-06-28T09:35:30.850Z