Skip to main content
QUICK REVIEW

[Paper Review] Detecting Backdoors in Neural Networks Using Novel Feature-Based Anomaly Detection

Hao Fu, Akshaj Kumar Veldanda|arXiv (Cornell University)|Nov 4, 2020
Adversarial Robustness in Machine LearningComputer Science39 references11 citations
TL;DR

This paper proposes a novel, feature-based anomaly detection defense for detecting backdoors in neural networks by analyzing input-feature-output behavior rather than internal structures. It uses two synergistic detectors—on novel features and anomalous feature-to-output mappings—achieving high clean accuracy (>95%) and near-zero attack success rates (<1%) across diverse backdoored models, even under domain shift and imperceptible triggers.

ABSTRACT

This paper proposes a new defense against neural network backdooring attacks that are maliciously trained to mispredict in the presence of attacker-chosen triggers. Our defense is based on the intuition that the feature extraction layers of a backdoored network embed new features to detect the presence of a trigger and the subsequent classification layers learn to mispredict when triggers are detected. Therefore, to detect backdoors, the proposed defense uses two synergistic anomaly detectors trained on clean validation data: the first is a novelty detector that checks for anomalous features, while the second detects anomalous mappings from features to outputs by comparing with a separate classifier trained on validation data. The approach is evaluated on a wide range of backdoored networks (with multiple variations of triggers) that successfully evade state-of-the-art defenses. Additionally, we evaluate the robustness of our approach on imperceptible perturbations, scalability on large-scale datasets, and effectiveness under domain shift. This paper also shows that the defense can be further improved using data augmentation.

Motivation & Objective

  • Address the critical security risk of backdoor attacks in neural networks, especially when training data is inaccessible or too large for manual inspection.
  • Overcome limitations of existing defenses that rely on restrictive assumptions about trigger size, shape, or location.
  • Develop a defense that operates at the feature and output level, making it applicable beyond neural networks.
  • Ensure robustness against imperceptible perturbations, domain shift, and scalability on large-scale datasets like ImageNet.
  • Improve detection performance using data augmentation and retraining with human-labeled poisoned samples.

Proposed method

  • Train a novelty detector on clean validation data to identify anomalous features introduced by backdoor triggers in feature extraction layers.
  • Train a separate classifier on clean validation data to model normal feature-to-output mappings, used as a reference for anomaly detection.
  • Compare the backdoored network’s actual feature-to-output mapping against the reference classifier to detect anomalous predictions.
  • Use a two-stage detection mechanism: first flag inputs with novel features, then verify if their output mapping deviates from normal behavior.
  • Apply data augmentation (e.g., Gaussian noise) to the clean validation set to improve robustness and reduce attack success rate.
  • Retrain the classifier using a small fraction of detected poisoned inputs (10–20%) to further reduce attack success while maintaining high clean accuracy.

Experimental results

Research questions

  • RQ1Can a backdoor detection method be effective without prior knowledge of trigger characteristics such as size, shape, or location?
  • RQ2How well does the method perform under domain shift and with imperceptible perturbations?
  • RQ3Can the defense scale to large-scale datasets like ImageNet with limited clean validation data?
  • RQ4To what extent can data augmentation and retraining improve detection robustness and reduce attack success rate?
  • RQ5Does the method outperform state-of-the-art defenses in terms of clean accuracy and backdoor detection accuracy across diverse backdoor variants?

Key findings

  • The method achieves a clean accuracy of over 95% and an attack success rate below 1% on all evaluated backdoored models, including those evading state-of-the-art defenses.
  • With data augmentation, the attack success rate drops to less than 6% (and below 1% for most cases), with only a minor drop in clean accuracy.
  • Retraining the classifier on 10–20% of detected poisoned inputs reduces the attack success rate to near zero (e.g., 0.07% to 0.35%) while improving clean accuracy.
  • The approach remains effective even with only 50% of the original validation data, though performance degrades slightly with smaller datasets.
  • On ImageNet with 8% of training data as validation, the method achieves ~63% clean accuracy and a 0.14% attack success rate after retraining.
  • The defense is robust to domain shift and imperceptible perturbations, demonstrating generalization across diverse backdoor trigger types and embedding methods.

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.