Detecting Backdoors in Pre-trained Encoders

Shiwei Feng, Guanhong Tao, Siyuan Cheng, Guangyu Shen, Xiangzhe Xu +4 more
2/14/2026

No official code found. Best implementation: GiantSeaweed/DECREE (38 stars, last commit 2023-09-25).

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 en-coders. 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 back-door 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. Code is available at https://github.com/GiantSeaweed/DECREE.

View on arXivView PDF

Code Implementations(1)

GiantSeaweed/DECREECommunity100%

Official repository for CVPR'23 paper: Detecting Backdoors in Pre-trained Encoders

384PythonNov 23, 20223 years ago
backdoor-attacksbackdoor-detectioncontrastive-learningmulti-modalself-supervised-learning

Similar Papers

Cite this paper

@article{feng2026detecting,
  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},
  year   = {2026},
  eprint = {2303.15180},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.15180},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.15180.svg)](https://codeofpaper.com/paper/2303.15180)

Discussion