Adversarial Defense Through Network Profiling Based Path Extraction.

Yuxian Qiu, Jingwen Leng, Cong Guo, Quan Chen, Chao Li, Minyi Guo, Yuhao Zhu

Abstract

Recently, researchers have started decomposing deep neural network models according to their semantics or functions. Recent work has shown the effectiveness of decomposed functional blocks for defending adversarial attacks, which add small input perturbation to the input image to fool the DNN models. This work proposes a profiling-based method to decompose the DNN models to different functional blocks, which lead to the effective path as a new approach to exploring DNNs' internal organization. Specifically, the per-image effective path can be aggregated to the class-level effective path, through which we observe that adversarial images activate effective path different from normal images. We propose an effective path similarity-based method to detect adversarial images with an interpretable model, which achieve better accuracy and broader applicability than the state-of-the-art technique.

Introduction

Deep Neural Networks (DNNs) are notoriously "black boxes," making it difficult to interpret their internal decision-making processes. This lack of transparency leads to a major security vulnerability: adversarial attacks. By adding tiny, human-imperceptible noise to an input, attackers can trick a DNN into misclassifying objects with high confidence. Existing defenses often require expensive retraining or struggle to generalize to new attack types. This paper addresses these challenges by analyzing the internal dataflow of the network during inference to create a defense that is both interpretable and efficient.

Methodology: Extracting the Effective Path

The core of this research is the concept of the Effective Path—the specific neurons and synapses responsible for a prediction. The authors propose an activation-based back-propagation algorithm to extract this path.

Effective path extraction in linear and convolutional layers.

Path Extraction and Aggregation

  1. Path Extraction: Starting from the predicted output class, the algorithm moves backward through the layers, identifying the minimum set of weights and neurons that contribute to a certain percentage (threshold $\theta$) of the output value. This process prunes the network into a sparse, image-specific execution path.
  2. Multi-Image Aggregation: These individual paths are binary masks. By taking the union of paths from all training images in a specific category, the researchers create a class-level effective path.
  3. Similarity-Based Detection: To detect an attack, the effective path of a new input image is compared to the class-level paths of its predicted class (Rank-1) and its runner-up class (Rank-2). These similarity scores serve as features for a simple linear defense model.

Key Insights and Results

The researchers discovered that DNNs naturally "specialize," with different classes activating distinctive portions of the network. When an adversarial attack successfully fools a network, it forces the data through a path that is significantly different from the paths used by genuine images of that class.

Similarity of effective paths across different network layers.

A critical finding is the Rank-2 "Aha" Moment: for an adversarial image, the similarity to the predicted class path (Rank-1) is typically low, but the similarity to the original (correct) class path—which often appears as the Rank-2 prediction—remains high. Using both Rank-1 and Rank-2 similarities as features makes the detector highly robust.

Performance Metrics

  • High Accuracy: The method achieved Area Under the Curve (AUC) scores between 0.85 and 0.95 across various non-targeted attacks on ImageNet.
  • Efficiency: The extraction process is up to 500x faster than prior state-of-the-art techniques like CDRP because it avoids the need for retraining control gates. The effective paths are highly sparse, often using only 13-40% of the network's synapses.
  • Generalizability: A detector trained on one type of attack (e.g., DeepFool) remains effective at detecting unseen attacks (e.g., FGSM), suggesting it captures a fundamental property of adversarial perturbations.

Conclusion and Future Work

While extracting paths for extremely deep networks like ResNet-50 can be computationally intensive, the authors demonstrate that "partial" paths from final layers can be extracted in under a second with minimal loss in accuracy. This functionality-based decomposition offers a promising path forward for both defending against adversarial threats and gaining a deeper understanding of the internal logic of deep learning models.

Summary updated

BibTeX
@inproceedings{qiu2019adversarial,
  author = {Yuxian Qiu and Jingwen Leng and Cong Guo and Quan Chen and Chao Li and Minyi Guo and Yuhao Zhu},
  title = {{Adversarial Defense Through Network Profiling Based Path Extraction.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=BjlxWvzXl_pr},
}
Figure