Model-Contrastive Learning for Backdoor Defense
Authors:
Preprint
Abstract
Due to the popularity of Artificial Intelligence (AI) techniques, we are witnessing an increasing number of backdoor injection attacks that are designed to maliciously threaten Deep Neural Networks (DNNs) causing misclassification. Although there exist various defense methods that can effectively erase backdoors from DNNs, they greatly suffer from both high Attack Success Rate (ASR) and a non-negligible loss in Benign Accuracy (BA). Inspired by the observation that a backdoored DNN tends to form a new cluster in its feature spaces for poisoned data, in this paper we propose a novel two-stage backdoor defense method, named MCLDef, based on Model-Contrastive Learning (MCL). In the first stage, our approach performs trigger inversion based on trigger synthesis, where the resultant trigger can be used to generate poisoned data. In the second stage, under the guidance of MCL and our defined positive and negative pairs, MCLDef can purify the backdoored model by pulling the feature representations of poisoned data towards those of their clean data counterparts. Due to the shrunken cluster of poisoned data, the backdoor formed by end-to-end supervised learning is eliminated. Comprehensive experimental results show that, with only 5% of clean data, MCLDef significantly outperforms state-of-the-art defense methods by up to 95.79% reduction in ASR, while in most cases the BA degradation can be controlled within less than 2%. Our code is available at https://github.com/WeCanShow/MCL.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- Exploring Simple Siamese Representation Learning2021
- Model-Contrastive Federated Learning2021
- Pillar-Based Object Detection for Autonomous Driving2020
- Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networks2020
- Momentum Contrast for Unsupervised Visual Representation Learning2020
- BadNets: Evaluating Backdooring Attacks on Deep Neural NetworksIEEE Access, 2019
- Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks2018
- ChestX-Ray8: Hospital-Scale Chest X-Ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases2017
- Deep Residual Learning for Image Recognition2016
- Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognitionNeural Networks, 2012