Noise-Response Analysis of Deep Neural Networks Quantifies Robustness and Fingerprints Structural Malware

N. Benjamin Erichson, Dane Taylor, Qixuan Wu, Michael W. Mahoney

TL;DR

This paper introduces a novel, rapid method for detecting "structural malware" like backdoors in deep neural networks (DNNs). By analyzing how DNNs respond to increasing levels of input noise, the authors can fingerprint their nonlinear behavior and identify compromised models with high confidence in seconds, a significant improvement over existing methods.

What Problem Does This Paper Address?

The increasing reliance on deep neural networks (DNNs) for critical applications, coupled with the prevalence of cloud-based training and transfer learning, has opened a new frontier for cybersecurity threats: "structural malware." This refers to compromised DNNs where an adversary has subtly altered the model's weights or activation pathways. A common and insidious form of this is a "backdoor attack," where a DNN is trained to misclassify specific inputs that contain a particular "trigger" pattern, while otherwise behaving normally. Detecting these backdoors is challenging because they are subtle, and existing detection methods are often computationally expensive, requiring access to training data or extensive resources. This paper aims to provide a fast, efficient, and data-agnostic method for identifying such compromised DNNs.

Methods

The core of this paper's contribution lies in its novel "noise-response analysis" for DNNs. This approach draws inspiration from dynamical systems theory, where noise is used to probe system behavior. The authors propose two complementary techniques:

  • Titration Analysis: This involves systematically adding noise of increasing intensity ($\sigma$) to input images and observing how the DNN's output (specifically, the confidence of its predictions) changes. They plot "titration curves" showing a "titration score" (a measure of high-confidence predictions) against noise intensity. Backdoored models exhibit a characteristic, rapid increase in this score as noise increases, indicating they are more sensitive and their predictions are "pulled" towards a specific target class.
  • Perturbation Analysis: This technique examines the local sensitivity of the DNN's output logits to small input perturbations. By analyzing "implicit gradients" (gradients computed after adding noise), they can identify pixels that are particularly sensitive to noise and are often associated with the backdoor's trigger.

The combination of these analyses allows them to not only detect the presence of a backdoor but also to potentially infer aspects of its behavior.

Datasets

The authors evaluated their methods on several standard datasets:

  • MNIST: Used for training and evaluating the LeNet5 architecture.
  • CIFAR-10: Used for training and evaluating ResNet-18 and WideResNet-34 architectures.
  • CIFAR-100: Used for training and evaluating WideResNet-34 and PyramidNet architectures.

The paper does not introduce new datasets but rather demonstrates the effectiveness of their approach on established benchmarks.

Key Insights and Ideas

  • Backdoors as "Sinks": The paper reveals that backdoored models, when exposed to increasing noise, tend to have their predictions "attracted" to a specific target class. This target class acts like a "sink," pulling the model's output even when the input is corrupted by noise.
  • Noise Sensitivity as a Fingerprint: The distinct way backdoored models respond to increasing noise (a rapid rise in the titration score) serves as a unique "fingerprint" that differentiates them from clean models.
  • Speed and Efficiency: The proposed method achieves detection in seconds, a dramatic improvement over existing methods that can take hours, making it practical for real-world deployment.
  • Data-Agnostic Detection: The titration analysis can be performed using pure white noise, meaning it doesn't require access to the original training data or even the triggered training data, which is a significant advantage.
  • Implicit Gradients Reveal Triggers: Perturbation analysis, specifically the "implicit gradient map," can highlight specific image regions (pixels) that are crucial for activating the backdoor, potentially aiding in trigger identification.

Key Results

  • High Detection Accuracy: The titration score ($T_\gamma$) consistently and accurately distinguishes between backdoored and baseline models across various architectures and datasets. Tables 1 and 2 show high $T_\gamma$ scores for backdoored models, often close to 1, while baseline models have significantly lower scores.
  • Rapid Detection: The runtime for detecting backdoors using this method is consistently under 2 seconds, a stark contrast to existing methods that require hours.
  • Trigger Intensity Impact: Ablation studies (Figure 6) show a clear relationship between trigger intensity and both trigger success rate and titration score. As trigger intensity increases, so does the likelihood of successful backdoor activation and detection.
  • Robustness to Noise: The paper demonstrates that baseline models generally become more robust to noise as training progresses (Figure 7), while backdoored models exhibit a distinct, noise-sensitive behavior.

Limitations and Future Work

  • Trigger Specificity: While the method is effective at detecting backdoors, the paper notes that some backdoors (e.g., in LeNet5 and PyramidNet) are more difficult to detect than others, requiring careful selection of parameters.
  • Generalizability: The current work focuses on targeted backdoor attacks. The authors suggest that their noise-response analysis framework could be extended to detect other forms of structural malware and adversarial deception.
  • Trigger Identification: While perturbation analysis can highlight sensitive pixels, explicitly reconstructing the trigger pattern is not the primary focus and might require further development.
  • Future Work: The authors plan to explore other applications of noise-response analysis in machine learning, such as using it as a stopping criterion for training or for general robustness analysis. They also aim to investigate the detection of more complex backdoor scenarios.

Summary updated

BibTeX
@inproceedings{erichson2021noise,
  author = {N. Benjamin Erichson and Dane Taylor and Qixuan Wu and Michael W. Mahoney},
  title = {{Noise-Response Analysis of Deep Neural Networks Quantifies Robustness and Fingerprints Structural Malware}},
  booktitle = {SDM},
  year = {2021},
  doi = {10.1137/1.9781611976700.12},
}
Figure