Defending Against Patch-based Backdoor Attacks on Self-Supervised Learning

Ajinkya Tejankar, Maziar Sanjabi, Qifan Wang, Sinong Wang, Hamed Firooz +2 more
2/14/2026

No official code found. Best implementation: UCDvision/PatchSearch (10 stars, last commit 2023-06-09).

Abstract

Recently, self-supervised learning (SSL) was shown to be vulnerable to patch-based data poisoning backdoor attacks. It was shown that an adversary can poison a small part of the unlabeled data so that when a victim trains an SSL model on it, the final model will have a back-door that the adversary can exploit. This work aims to defend self-supervised learning against such attacks. We use a three-step defense pipeline, where we first train a model on the poisoned data. In the second step, our proposed defense algorithm (PatchSearch) uses the trained model to search the training data for poisoned samples and removes them from the training set. In the third step, a final model is trained on the cleaned-up training set. Our results show that PatchSearch is an effective defense. As an example, it improves a model's accuracy on images containing the trigger from 38.2% to 63.7% which is very close to the clean model's accuracy, 64.6%. More-over, we show that PatchSearch outperforms baselines and state-of-the-art defense approaches including those using additional clean, trusted data. Our code is available at https://github.com/UCDvision/PatchSearch

View on arXivView PDF

Code Implementations(1)

Code for the CVPR '23 paper, "Defending Against Patch-based Backdoor Attacks on Self-Supervised Learning"

100Shell, PythonMar 25, 20233 years ago

Similar Papers

Cite this paper

@article{tejankar2026defending,
  title  = {Defending Against Patch-based Backdoor Attacks on Self-Supervised Learning},
  author = {Ajinkya Tejankar and Maziar Sanjabi and Qifan Wang and Sinong Wang and Hamed Firooz and H. Pirsiavash and L Tan},
  year   = {2026},
  eprint = {2304.01482},
  archivePrefix = {arXiv},
  url    = {https://mdsoar.org/bitstreams/21d03cd2-813b-41a7-b207-a64a179f21f4/download},
  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/2304.01482.svg)](https://codeofpaper.com/paper/2304.01482)

Discussion