Cross-Task Attack: A Self-Supervision Generative Framework Based on Attention Shift

Qingyuan Zeng, Yunpeng Gong, Min Jiang · DOI

Abstract

Adversarial attacks have traditionally been task-specific, targeting individual models like image classifiers. However, real-world systems often employ multi-tasking environments. This paper introduces the Cross-Task Attack (CTA), a self-supervised generative framework designed to create perturbations that simultaneously deceive classification, detection, and segmentation models. By shifting a model's attention from critical regions to irrelevant background noise, CTA achieves high transferability and effectiveness without requiring manual labels.

Introduction

Most existing adversarial attacks are "specialists," optimized to fool a single type of model. In contrast, the Cross-Task Attack (CTA) acts as a "generalist," generating adversarial examples that can disrupt multiple vision tasks at once. This approach is particularly relevant for complex AI systems where different models collaborate on the same input.

Problem Statement

Executing a cross-task attack is challenging because different tasks—such as object detection and semantic segmentation—rely on distinct features and loss functions. Previous methods attempted to disrupt the shared feature extractor, but since these extractors vary significantly across architectures, such attacks often lack robustness. The authors propose targeting the "common ground" of model focus: attention.

Methodology: Attention Shift

The CTA framework operates through a two-stage process: Attention Extraction and Attention Shift.

1. Attention Extraction

Using Grad-CAM, the framework generates attention maps for three primary tasks: classification ($f_{cls}$), detection ($f_{det}$), and segmentation ($f_{seg}$).

  • Co-attention Map: This is the union of the individual task maps, identifying all regions considered important by any of the models.
  • Anti-attention Map: This represents the "negative space"—areas that all models currently ignore.

2. Attention Shift

CTA employs a generative network to introduce a small, imperceptible perturbation ($\delta$) to the image. The objective is to force the models' attention to shift from the "Co-attention" regions to the "Anti-attention" regions. This process is entirely self-supervised, utilizing the outputs of pre-trained models rather than ground-truth labels.

Visualization of attention maps (a-d) showing how different tasks focus on specific regions of an image.

Experimental Setup

The researchers evaluated CTA on two major datasets:

  • ImageNet: 10,000 validation samples were used to test classification disruption.
  • PASCAL VOC 2012: Used for object detection and semantic segmentation tasks, with the training set used to train the CTA generator.

Key Results

CTA demonstrated superior performance in multi-task scenarios compared to state-of-the-art attacks like Dispersion Reduction (DR).

  • Object Detection: CTA reduced the mean Average Precision (mAP) of Faster-RCNN to 31.1%, outperforming DR (38.5%).
  • Semantic Segmentation: In DeepLabv3, CTA reduced the mean Intersection over Union (mIoU) to 58.7%.
  • Classification: While specialized attacks remain more potent for pure classification, CTA significantly degraded accuracy (e.g., dropping VGG19 from 72.9% to 26.52%) while simultaneously breaking other tasks.
  • Robustness: The attack remained effective against adversarially trained models, indicating its ability to bypass standard defenses.

Conclusion

The Cross-Task Attack framework highlights "attention" as a universal and stable target for adversarial disruption across diverse vision tasks. By specifically pushing a model's focus into irrelevant background noise (the "Anti-attention" strategy), CTA creates highly transferable, label-free adversarial examples. Future work may extend this concept to non-visual domains like NLP or multi-modal models.

Summary updated

BibTeX
@inproceedings{zeng2024cross,
  author = {Qingyuan Zeng and Yunpeng Gong and Min Jiang},
  title = {{Cross-Task Attack: A Self-Supervision Generative Framework Based on Attention Shift}},
  booktitle = {IJCNN},
  year = {2024},
  doi = {10.1109/ijcnn60899.2024.10650118},
}
Figure