Backdoor Attacks on Self-Supervised Learning

Aniruddha Saha, Ajinkya Tejankar, Soroush Abbasi Koohpayegani, Hamed Pirsiavash
5/21/2021
151 citations
cs.CV
contrastive-ssl

Official code: UMBCvision/SSL-Backdoor (76 stars, Jupyter Notebook, MIT, last commit 2023-10-24).

Abstract

Large-scale unlabeled data has spurred recent progress in self-supervised learning methods that learn rich visual representations. State-of-the-art self-supervised methods for learning representations from images (e.g., MoCo, BYOL, MSF) use an inductive bias that random augmentations (e.g., random crops) of an image should produce similar embeddings.

Show full abstract

We show that such methods are vulnerable to backdoor attacks - where an attacker poisons a small part of the unlabeled data by adding a trigger (image patch chosen by the attacker) to the images. The model performance is good on clean test images, but the attacker can manipulate the decision of the model by showing the trigger at test time. Backdoor attacks have been studied extensively in supervised learning and to the best of our knowledge, we are the first to study them for self-supervised learning. Backdoor attacks are more practical in self-supervised learning, since the use of large unlabeled data makes data inspection to remove poisons prohibitive. We show that in our targeted attack, the attacker can produce many false positives for the target category by using the trigger at test time. We also propose a defense method based on knowledge distillation that succeeds in neutralizing the attack. Our code is available here: https://github.com/UMBCvision/SSL-Backdoor .

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of the CVPR 2022 paper "Backdoor Attacks on Self-Supervised Learning".

7611Jupyter Notebook, PythonApr 5, 20213 years agoMIT

Similar Papers

Cite this paper

@article{saha2021backdoor,
  title  = {Backdoor Attacks on Self-Supervised Learning},
  author = {Aniruddha Saha and Ajinkya Tejankar and Soroush Abbasi Koohpayegani and Hamed Pirsiavash},
  year   = {2021},
  eprint = {2105.10123},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.10123}
}

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/2105.10123.svg)](https://codeofpaper.com/paper/2105.10123)

Discussion