Feature Space Targeted Attacks by Statistic Alignment

Lianli Gao, Yaya Cheng, Qilong Zhang, Xing Xu, Jingkuan Song

Introduction

Targeted adversarial attacks aim to manipulate a Deep Neural Network (DNN) into predicting a specific, pre-defined incorrect label for a given input. In black-box settings, where the target model's architecture is unknown, attackers often rely on the transferability of adversarial examples generated on a surrogate model. Traditional feature-space attacks minimize the Euclidean distance between the feature maps of a source image and a target image. However, Euclidean distance is highly sensitive to spatial shifts, often wasting the perturbation budget on aligning spatial coordinates rather than semantic features. This paper proposes shifting the focus from pixel-wise matching to statistical alignment in the feature space to improve transferability.

Methodology: Statistic Alignment

To overcome the limitations of spatial sensitivity, the authors introduce two novel approaches that replace rigid spatial matching with statistical alignment.

Pair-wise Alignment Attack (PAA)

PAA treats feature maps as distributions and utilizes Maximum Mean Discrepancy (MMD) to measure similarity. MMD is a kernel-based statistical test that is naturally translation-invariant. By minimizing MMD, the attack aligns the distribution of features regardless of their exact spatial locations. Among various kernels tested (Linear, Gaussian, and Polynomial), the Polynomial kernel ($PAA_p$) proved most effective for generating transferable adversarial examples.

Global-wise Alignment Attack (GAA)

GAA provides a computationally efficient alternative by explicitly aligning the first-order (mean) and second-order (variance) statistics of feature maps. This approach captures the global "style" and semantic essence of the features, similar to the mechanism of Batch Normalization, making the attack spatial-agnostic.

Experimental Evaluation

The methods were evaluated on a 5,000-image subset of the ImageNet validation set across four architectures: VGG-19, DenseNet-121, ResNet-50, and Inception-v3. The researchers investigated several factors affecting attack success, including target label difficulty and layer-wise transferability.

Impact of Target Difficulty

The success of a targeted attack is heavily influenced by the choice of the target label. It is significantly easier to fool a model into predicting a class that is already ranked high in its confidence (e.g., the 2nd most confident class) than a completely unrelated class (e.g., the 1000th). This trend is consistent across different layers of the surrogate model.

Targeted success rate (tSuc) and transfer rate (tTR) across different target label rankings.

Results and Discussion

The proposed statistical alignment methods consistently outperform the state-of-the-art Euclidean-based Alignment Attack (AA). As shown in the comprehensive layer-wise analysis, PAA and GAA variants maintain superior success and transfer rates across almost all network layers and model transfer pairs. For instance, when transferring from DenseNet-121 to ResNet-50, $PAA_p$ achieved a 6.08% targeted success rate, compared to just 1.78% for the baseline AA method.

Comprehensive comparison of tSuc and tTR across network layers for various source-target model pairs.

Conclusion

By leveraging translation-invariant statistical metrics like MMD and global moments, PAA and GAA significantly improve the transferability of targeted adversarial attacks. These findings highlight that semantic alignment in the feature space is more critical for black-box transferability than rigid spatial matching. Future work may explore the effectiveness of these attacks against specialized adversarial defense mechanisms.

Summary updated

BibTeX
@inproceedings{gao2021feature,
  author = {Lianli Gao and Yaya Cheng and Qilong Zhang and Xing Xu and Jingkuan Song},
  title = {{Feature Space Targeted Attacks by Statistic Alignment}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/93},
}
Figure