Skip to main content
QUICK REVIEW

[Paper Review] Detecting Backdoor Attacks on Deep Neural Networks by Activation Clustering

Bryant Chen, Wilka Carvalho|arXiv (Cornell University)|Nov 8, 2018
Adversarial Robustness in Machine LearningComputer Science238 citations
TL;DR

Introduces Activation Clustering (AC), a method to detect poisonous training data that insert backdoors into DNNs without requiring a trusted dataset, and to repair the model. AC analyzes last-layer activations to separate poisoned from clean data and provides automated recovery options.

ABSTRACT

While machine learning (ML) models are being increasingly trusted to make decisions in different and varying areas, the safety of systems using such models has become an increasing concern. In particular, ML models are often trained on data from potentially untrustworthy sources, providing adversaries with the opportunity to manipulate them by inserting carefully crafted samples into the training set. Recent work has shown that this type of attack, called a poisoning attack, allows adversaries to insert backdoors or trojans into the model, enabling malicious behavior with simple external backdoor triggers at inference time and only a blackbox perspective of the model itself. Detecting this type of attack is challenging because the unexpected behavior occurs only when a backdoor trigger, which is known only to the adversary, is present. Model users, either direct users of training data or users of pre-trained model from a catalog, may not guarantee the safe operation of their ML-based system. In this paper, we propose a novel approach to backdoor detection and removal for neural networks. Through extensive experimental results, we demonstrate its effectiveness for neural networks classifying text and images. To the best of our knowledge, this is the first methodology capable of detecting poisonous data crafted to insert backdoors and repairing the model that does not require a verified and trusted dataset.

Motivation & Objective

  • Motivate safety concerns around poisoning and backdoor attacks in neural networks.
  • Propose a data-driven defense that does not require trusted data for detecting poisoned samples.
  • Develop Activation Clustering to separate poisoned from legitimate data based on network activations.
  • Provide mechanisms to summarize clusters and repair backdoored models efficiently.

Proposed method

  • Train a DNN on untrusted data including potential poisoned samples.
  • Extract activations from the last hidden layer for all training samples.
  • Apply dimensionality reduction (ICA) to each label's activations, then cluster with k-means (k=2).
  • Use analysis methods (Exclusionary Reclassification, Relative Size, Silhouette Score) to identify which cluster contains poisoned data.
  • Optionally summarize clusters (image sprites for vision data; LDA topics for text) to aid verification.
  • Repair by either removing poisoned data or relabeling poisoned samples to their source class and retraining.

Experimental results

Research questions

  • RQ1Can Activation Clustering reliably distinguish poisoned from legitimate data without a trusted dataset?
  • RQ2How robust is AC to multimodal classes and multiple backdoors, and to poisoning from multiple sources?
  • RQ3What automated criteria best identify poisoned clusters (ExRe, relative size, silhouette score) across domains?
  • RQ4Can AC not only detect but also repair backdoors with minimal retraining?
  • RQ5Do visual/textual summaries of clusters assist human verification of poisoning?

Key findings

  • AC achieves near-perfect poison detection on MNIST (100% F1 and ~100% accuracy per class) across poisoning levels (10%, 15%, 33%).
  • AC outperforms raw input clustering, which lags significantly (e.g., MNIST overall AC accuracy 99.97% vs. raw clustering 58.61%).
  • On LISA and Rotten Tomatoes text data, AC achieves ~100% accuracy and F1 in detecting poisoned samples for tested scenarios.
  • AC remains robust for multimodal target classes and multiple poison sources, maintaining ~99.9–100% accuracy and F1 across varied setups.
  • Exclusionary Reclassification (ExRe) consistently identifies poisoned clusters and their source classes, outperforming other cluster-analysis metrics.
  • Backdoor repair via relabeling poisoned data and continuing training converges faster (14 epochs) than retraining from scratch (80 epochs), effectively removing backdoors while preserving standard accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.