Noise-response Analysis for Rapid Detection of Backdoors in Deep Neural Networks

N. Benjamin Erichson, Dane Taylor, Qixuan Wu, Michael W. MahoneyarXiv 2020

Abstract

Deep neural networks (DNNs) are susceptible to backdoor attacks, where hidden triggers cause malicious misclassification. Traditional detection methods are computationally expensive and often require access to training data. This paper proposes a novel noise-response analysis technique that identifies backdoors by probing model non-linearity. By measuring the "Titration Score" under increasing input noise and analyzing implicit gradient maps, the method detects and localizes backdoors in seconds. This approach is data-free and provides a robust fingerprint of a model's structural integrity.

Introduction

Deep neural networks (DNNs) are increasingly deployed in critical infrastructure, yet they remain vulnerable to "backdoor" or "Trojan" attacks. An adversary can poison a model such that it functions normally on standard inputs but misclassifies any input containing a specific trigger pattern into a target class. Detecting these compromises is a significant challenge, as backdoors are designed to remain dormant during normal operation. Current state-of-the-art defenses, such as Neural Cleanse, are slow and resource-intensive. This work introduces a rapid detection framework based on the dynamical systems perspective of DNNs.

Methodology: Noise-Response Analysis

The authors treat DNNs as non-linear dynamical systems and apply noise-response analysis, a technique traditionally used in physical sciences to characterize system stability.

Titration Analysis

The core of the detection method is titration analysis. Gaussian noise with increasing intensity $\sigma$ is added to an input. The Titration Score ($T_\sigma^\gamma$) is defined as the fraction of noisy samples that result in a prediction confidence exceeding a threshold $\gamma$. In a clean model, high noise levels typically lead to uncertainty and lower confidence. However, backdoored models exhibit a "rapid growth" in the titration score even at low noise levels, as the noise pushes the internal state toward the attacker's target class "sink."

Titration curves comparing baseline and backdoored models. The backdoored model shows a rapid rise in titration score at low noise intensities.

Implicit Gradient Maps

To localize the backdoor trigger, the researchers utilize implicit gradient maps. By calculating the sensitivity of the model's output to noise at each pixel, they can identify regions of extreme non-linearity. These maps serve as a "fingerprint" of the structural malware, highlighting the specific spatial locations of the triggers.

Implicit gradient maps for baseline and backdoored models. The maps for backdoored models (k=3, k=9) clearly localize the trigger regions compared to the uniform baseline.

Key Insights: The "Sink" Phenomenon

A fundamental discovery is that backdoors create mathematical "sinks" or attractors in the model's output space. While a normal model's predictions diffuse under noise, a backdoored model's predictions are strongly attracted to the target class. This phenomenon allows for data-free detection; titration curves generated using pure white noise are nearly indistinguishable from those using actual images, enabling model verification without the original training set.

Results and Performance

The proposed method was evaluated on MNIST, CIFAR10, and CIFAR100 datasets using various architectures (LeNet5, ResNet, WideResNet).

  • Speed: The analysis is exceptionally fast, requiring less than 2 seconds per model, compared to over 5,000 seconds for optimization-based methods.
  • Accuracy: The titration score provides a near-perfect separation between clean and compromised models.
  • Robustness Fingerprinting: Beyond backdoor detection, titration curves serve as a general metric for model robustness, shifting predictably as a model becomes more resilient during training.

Conclusion

Noise-response analysis provides a powerful, rapid, and data-free "speed trap" for neural backdoors. By quantifying the non-linear response of a model to stochastic perturbations, researchers can identify and localize hidden triggers with minimal computational overhead. This technique offers a practical solution for verifying the integrity of third-party models before deployment in sensitive applications.

Summary updated

Abstract

The ubiquity of deep neural networks (DNNs), cloud-based training, and transfer learning is giving rise to a new cybersecurity frontier in which unsecure DNNs have `structural malware' (i.e., compromised weights and activation pathways). In particular, DNNs can be designed to have backdoors that allow an adversary to easily and reliably fool an image classifier by adding a pattern of pixels called a trigger. It is generally difficult to detect backdoors, and existing detection methods are computationally expensive and require extensive resources (e.g., access to the training data). Here, we propose a rapid feature-generation technique that quantifies the robustness of a DNN, `fingerprints' its nonlinearity, and allows us to detect backdoors (if present). Our approach involves studying how a DNN responds to noise-infused images with varying noise intensity, which we summarize with titration curves. We find that DNNs with backdoors are more sensitive to input noise and respond in a characteristic way that reveals the backdoor and where it leads (its `target'). Our empirical results demonstrate that we can accurately detect backdoors with high confidence orders-of-magnitude faster than existing approaches (seconds versus hours).
BibTeX
@misc{erichson2020noise,
  author = {N. Benjamin Erichson and Dane Taylor and Qixuan Wu and Michael W. Mahoney},
  title = {{Noise-response Analysis for Rapid Detection of Backdoors in Deep Neural Networks}},
  year = {2020},
  eprint = {2008.00123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.00123},
}
Figure