Distorting Neural Representations to Generate Highly Transferable Adversarial Examples

Muzammal Naseer, Salman Hameed Khan, Shafin Rahman, Fatih Porikli

Introduction

Adversarial attacks—subtle, often imperceptible perturbations to input images—pose a significant security threat to deep learning systems. Traditionally, these attacks are "specialized," designed to exploit the decision boundaries of a specific model for a specific task, such as misclassifying a "dog" as a "cat." However, such attacks frequently fail to transfer to different architectures or tasks. If an adversarial image is crafted to fool a classifier, it often remains correctly interpretable by an object detector. This lack of transferability stems from an over-reliance on task-specific loss functions that overfit to a single model's parameters.

The Neural Representation Distortion (NRD) Method

To address this limitation, researchers have developed the Neural Representation Distortion (NRD) attack. Instead of targeting the final output label, NRD aims to maximize the disruption within a network's internal feature space.

Figure 1: Conceptual overview of the NRD attack. By distorting generic internal features, the attack generates adversarial noise that successfully fools multiple downstream tasks, including classification, detection, and segmentation.

The core insight is that deep networks, regardless of their final task, often share "generic" internal features learned during pre-training on large datasets like ImageNet. By targeting these fundamental representations, NRD creates task-generalizable adversarial examples. The method specifically targets the internal layers of a pre-trained VGG-16 network (notably the conv3.3 layer), which is known to capture robust visual features common across many computer vision models.

Methodology and Implementation

NRD is an unsupervised approach that does not require ground-truth labels. It iteratively updates image pixels to maximize the Mean Squared Error (MSE) between the internal activations of a clean image and its adversarial counterpart. To ensure the changes remain invisible to humans, the total distortion is constrained within a small budget ($l_\infty \le 16$). The researchers also introduced NRDM-DIM, which incorporates "Input Diversity" (DIM) by applying random transformations during the attack process to further enhance transferability across different black-box models.

Key Results and Transferability

The NRD attack demonstrates state-of-the-art transferability across diverse architectures and entirely different computer vision tasks.

Experimental results highlight the potency of this approach:

  • Classification: An attack generated on a VGG-16 backbone reduced the accuracy of an Inception-ResNet-v2 model from 100% to 13.6%, significantly outperforming standard gradient-based attacks like FGSM.
  • Cross-Task Impact: Adversarial images designed to distort features effectively "collapsed" models for other tasks. For instance, the Mean Average Precision (mAP) of a RetinaNet detection model plummeted from 53.78% to 5.16%, while SegNet segmentation accuracy dropped by over 47%.
  • Robustness to Defenses: NRD-generated examples proved more resilient against common defensive pre-processing techniques, such as JPEG compression and Median Filtering, compared to traditional attacks.

Conclusion

By shifting the focus from final outputs to internal neural representations, the NRD attack reveals a fundamental vulnerability in how deep networks process visual information. While the attack is less effective against models specifically trained with adversarial examples, its success in black-box, cross-task scenarios underscores a significant security gap in current "off-the-shelf" deep learning deployments. Future research must focus on hardening these internal representations to build more resilient computer vision systems.

Summary updated

BibTeX
@misc{naseer2018distorting,
  author = {Muzammal Naseer and Salman Hameed Khan and Shafin Rahman and Fatih Porikli},
  title = {{Distorting Neural Representations to Generate Highly Transferable Adversarial Examples}},
  year = {2018},
  eprint = {1811.09020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.09020},
}
Figure