Abstract
Targeted adversarial attacks aim to deceive machine learning models into specific misclassifications. A primary challenge in this field is transferability: the ability of an attack crafted for one model (the surrogate) to successfully fool another, unknown model (the black-box victim). Current generative attacks typically utilize one-dimensional (1D) label encodings, which fail to capture the inherent 2D spatial structure of images, leading to "feature deficiency." This paper introduces TGAF (2D Tensor-Guided Adversarial Fusion), a framework that leverages pre-trained diffusion models to generate rich 2D semantic latent tensors from target labels. By "implanting" these spatially-aware features, TGAF significantly boosts the success rate and robustness of black-box attacks across various architectures.
Introduction: The 1D Bottleneck
In adversarial machine learning, the goal of a targeted attack is to manipulate an input image such that a model classifies it as a specific, incorrect category. While many methods exist, their effectiveness often drops sharply when applied to models different from those used during training.
The authors identify a fundamental flaw in existing generative attacks: they squash target labels into 1D vectors (e.g., one-hot encodings or CLIP embeddings). Because images are 2D, this dimensionality reduction loses critical structural information. The resulting adversarial noise often consists of superficial, model-specific artifacts rather than the robust semantic features necessary for high transferability.
Methodology: 2D Tensor-Guided Adversarial Fusion (TGAF)
The TGAF framework shifts the paradigm from 1D to 2D label conditioning to address feature deficiency.
2D Latent Tensors from Diffusion
Instead of a simple vector, TGAF employs a pre-trained diffusion model (Stable Diffusion 2) to generate 2D latent representations of the target class based on text prompts. These tensors serve as a "spatial map," providing a rich semantic prior of what the target class should look like.
Dual-Stream Fusion and Masking
To integrate these 2D tensors with the original image, TGAF uses two specialized modules:
- Convolution-based Fusion (CbF): Manages local feature interactions and dimensionality reduction.
- Transformer-based Fusion (TbF): Utilizes self-attention and cross-attention to capture global, long-range dependencies between the image and target features.
Additionally, a Dynamic Block Masking strategy is used during training. By randomly masking blocks of the generated noise, the model is forced to ensure that semantic information is distributed throughout the perturbation, preventing the attack from being concentrated in a few pixels.
Experimental Setup
The TGAF generator is trained on the ImageNet training set and evaluated using the ImageNet NeurIPS (1k), ImageNet Validation (50k), and COCO datasets. The study tests transferability against a diverse set of victim models, including CNNs (Inception-v3, ResNet-152, VGG-16) and Vision Transformers (ViT-B, Swin-T).
Results and Discussion
TGAF consistently establishes new state-of-the-art (SOTA) benchmarks for multi-target attacks.
Enhanced Transferability and Robustness
When using Inception-v3 as a surrogate, TGAF outperformed the previous leading method (CGNC) by 16.11% on CNN-based models and 11.17% on Transformer-based models. Furthermore, TGAF demonstrated superior resilience to "purification" defenses like NRP. For instance, on the Swin-T model, TGAF achieved a success rate of 13.56%, nearly doubling the 7.43% success rate of its closest competitor.
The "Implantation" Hypothesis
The success of TGAF supports the authors' hypothesis that effective targeted attacks work by "implanting" semantic features of the target class. Grad-CAM visualizations reveal that TGAF noise causes victim models to focus on large, semantically meaningful regions corresponding to the target class. In contrast, older 1D methods only trigger small, scattered patches of attention.
Conclusion
By rethinking label conditioning, TGAF demonstrates that 2D semantic priors are crucial for generating transferable adversarial perturbations. While training the generator is computationally intensive (approx. 28.5 hours per epoch on an NVIDIA A100 GPU), the resulting attacks are significantly more robust and effective against black-box models. Future work may explore applying 2D guidance to other adversarial tasks, such as object detection or segmentation.
Summary updated