Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor

Shaokui Wei, Hongyuan Zha, Baoyuan Wu
2/3/2026

No official code found. Best implementation: SCLBD/BackdoorBench (617 stars, last commit 2025-07-04). 1 more below.

Abstract

Data-poisoning backdoor attacks are serious security threats to machine learning models, where an adversary can manipulate the training dataset to inject backdoors into models. In this paper, we focus on in-training backdoor defense, aiming to train a clean model even when the dataset may be potentially poisoned. Unlike most existing methods that primarily detect and remove/unlearn suspicious samples to mitigate malicious backdoor attacks, we propose a novel defense approach called PDB (Proactive Defensive Backdoor). Specifically, PDB leverages the home-field advantage of defenders by proactively injecting a defensive backdoor into the model during training. Taking advantage of controlling the training process, the defensive backdoor is designed to suppress the malicious backdoor effectively while remaining secret to attackers. In addition, we introduce a reversible mapping to determine the defensive target label. During inference, PDB embeds a defensive trigger in the inputs and reverses the model's prediction, suppressing malicious backdoor and ensuring the model's utility on the original task. Experimental results across various datasets and models demonstrate that our approach achieves state-of-the-art defense performance against a wide range of backdoor attacks. The code is available at https://github.com/shawkui/Proactive_Defensive_Backdoor.

View on arXivView PDF

Code Implementations(2)

SCLBD/BackdoorBenchCommunity100%
617105C++, CudaApr 3, 20221 years agoNOASSERTION

Official implementation of the NeurIPS 24 paper "Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor"

70C++, CudaOct 11, 20241 years agoNOASSERTION
backdoor-attackbackdoor-defensebackdoor-learningneurips-2024

Similar Papers

Cite this paper

@article{wei2026mitigating,
  title  = {Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor},
  author = {Shaokui Wei and Hongyuan Zha and Baoyuan Wu},
  year   = {2026},
  eprint = {2405.16112},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.16112},
  url    = {https://arxiv.org/abs/2405.16112},
  journal = {NEURIPS 2024 2024}
}

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

Discussion