NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learning

Shengfang Zhai, Qingni Shen, Xiaoyi Chen, Weilong Wang, Cong Li +2 more
3/3/2023
cs.CRcs.CL

No confident code implementation found for this paper.

Abstract

At present, backdoor attacks attract attention as they do great harm to deep learning models. The adversary poisons the training data making the model being injected with a backdoor after being trained unconsciously by victims using the poisoned dataset. In the field of text, however, existing works do not provide sufficient defense against backdoor attacks. In this paper, we propose a Noise-augmented Contrastive Learning (NCL) framework to defend against textual backdoor attacks when training models with untrustworthy data. With the aim of mitigating the mapping between triggers and the target label, we add appropriate noise perturbing possible backdoor triggers, augment the training dataset, and then pull homology samples in the feature space utilizing contrastive learning objective. Experiments demonstrate the effectiveness of our method in defending three types of textual backdoor attacks, outperforming the prior works.

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. Any repos shown below are weak matches — 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{zhai2023ncl,
  title  = {NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learning},
  author = {Shengfang Zhai and Qingni Shen and Xiaoyi Chen and Weilong Wang and Cong Li and Yuejian Fang and Zhonghai Wu},
  year   = {2023},
  eprint = {2303.01742},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.01742v1}
}

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

Discussion