NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Training set cleansing of backdoor poisoning by self-supervised representation learning

Hang Wang, Sahar Karami, Ousmane Dia, Hippolyt Ritter, Ehsan Emamjomeh-Zadeh, Jiahui Chen, Zhen Xiang, David J. Miller, George Kesidis · DOI

Abstract

This paper introduces a novel training set cleansing method that uses self-supervised representation learning to detect and neutralize backdoor (Trojan) attacks before a classifier is ever trained. By leveraging the fact that self-supervised models ignore malicious labels and focus on semantic image content, the authors can filter out poisoned samples and re-label them to their true classes, achieving state-of-the-art defense performance on benchmark datasets.

Introduction

Deep Neural Networks (DNNs) are susceptible to backdoor attacks, where an attacker injects a small number of "poisoned" samples into the training set. These samples contain a specific trigger (like a small pixel patch or a subtle color shift) and are intentionally mislabeled to a target class. Supervised training is often "lazy," learning a strong affinity between the easy-to-spot trigger and the target label while ignoring the actual object. Most existing defenses occur after the model is compromised or require a "gold standard" set of clean data. This work aims to cleanse the dataset before the final training process begins, without requiring any prior clean samples.

Proposed Methodology

The proposed defense consists of three main stages designed to isolate and neutralize malicious triggers:

  1. Self-supervised Pre-training: An encoder (ResNet-18) is trained using SimCLR. Because SimCLR does not use labels, it learns to group images based on actual visual features (e.g., "this is a dog") rather than the attacker's malicious labels. Backdoor triggers, usually being small or subtle, are largely ignored in favor of global semantic content.
  2. Data Filtering: Once images are mapped into a feature embedding space, the system uses k-Nearest Neighbors (kNN) and Energy-based scores to check for label consistency. If an image's assigned label doesn't match its neighbors, it is flagged as potential poison.
  3. High-Confidence Re-labeling: Simply filtering is insufficient; even a few leaked poisoned samples can compromise a model. The authors re-label rejected samples to their predicted (true source) class if the prediction confidence is high. This effectively turns a "poison" sample into a "clean" one.
Overview of the proposed defense mechanism involving self-supervised pre-training, filtering, and relabeling.

Experimental Results

The method was evaluated on CIFAR-10, MNIST, and Tiny-ImageNet against four types of backdoor attacks: Additive, BadNet, Blended, and WaNet.

Performance and Robustness

On CIFAR-10, the method reduced the Attack Success Rate (ASR) from nearly 100% to under 5% for most attack types, while maintaining a high Clean Test Accuracy (ACC) (usually >91%). It outperformed existing defenses like Activation Clustering (AC) and Spectral Signature (SS), particularly against global attacks like WaNet.

Performance comparison (ASR and ACC) against additive attacks as the number of poisoned images increases.

Key Insights

  • SSL as a "Backdoor Blind": Self-supervised learning (SSL) is naturally resistant to backdoors because it focuses on robust semantic features rather than tiny, label-dependent triggers.
  • Neutralization via Re-labeling: Assigning the correct source label to a poisoned image forces the model to see the trigger as a feature of the source class or as noise, breaking the association with the target class.

Limitations and Future Work

A notable limitation is "clean data rejection," where the filter occasionally flags perfectly clean samples, leading to a slight drop in overall classification accuracy (2-3%). Additionally, the re-labeling threshold is a hyperparameter that may require tuning. Future directions include exploring Vision Transformers (ViT) and extending the logic to defend against simple label-flipping attacks.

Summary updated

BibTeX
@inproceedings{wang2023training,
  author = {Hang Wang and Sahar Karami and Ousmane Dia and Hippolyt Ritter and Ehsan Emamjomeh-Zadeh and Jiahui Chen and Zhen Xiang and David J. Miller and George Kesidis},
  title = {{Training set cleansing of backdoor poisoning by self-supervised representation learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10097244},
}
Figure