On the Effectiveness of Distillation in Mitigating Backdoors in Pre-trained Encoder

Tingxu Han, Shenghan Huang, Ziqi Ding, Weisong Sun, Yebo Feng +7 more
3/6/2024
cs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

In this paper, we study a defense against poisoned encoders in SSL called distillation, which is a defense used in supervised learning originally. Distillation aims to distill knowledge from a given model (a.k.a the teacher net) and transfer it to another (a.k.a the student net). Now, we use it to distill benign knowledge from poisoned pre-trained encoders and transfer it to a new encoder, resulting in a clean pre-trained encoder. In particular, we conduct an empirical study on the effectiveness and performance of distillation against poisoned encoders. Using two state-of-the-art backdoor attacks against pre-trained image encoders and four commonly used image classification datasets, our experimental results show that distillation can reduce attack success rate from 80.87% to 27.51% while suffering a 6.35% loss in accuracy. Moreover, we investigate the impact of three core components of distillation on performance: teacher net, student net, and distillation loss. By comparing 4 different teacher nets, 3 student nets, and 6 distillation losses, we find that fine-tuned teacher nets, warm-up-training-based student nets, and attention-based distillation loss perform best, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{han2024effectiveness,
  title  = {On the Effectiveness of Distillation in Mitigating Backdoors in Pre-trained Encoder},
  author = {Tingxu Han and Shenghan Huang and Ziqi Ding and Weisong Sun and Yebo Feng and Chunrong Fang and Jun Li and Hanwei Qian and Cong Wu and Quanjun Zhang and Yang Liu and Zhenyu Chen},
  year   = {2024},
  eprint = {2403.03846},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.03846v1}
}

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

Discussion