Rethinking Target Label Conditioning in Adversarial Attacks: A 2D Tensor-Guided Generative Approach
Hangyu Liu, Bo Peng, Pengxiang Ding, Donglin Wang
TL;DR
Rethinking target label conditioning in adversarial attacks, this work reveals that encoding target information as 1D vectors hampers the fidelity and transferability of multi-target attacks. It introduces TGAF, which encodes targets as 2D semantic tensors via diffusion models and fuses them with image features through convolutional and transformer-based modules, aided by a random masking strategy during training. TGAF demonstrates superior targeted transferability across normally trained and robust models and remains resilient under multiple defense mechanisms, while maintaining competitive perceptual quality of adversarial examples. The approach offers a practical framework for evaluating model robustness under black-box attacks and highlights the potential of diffusion-guided 2D representations in adversarial generation.
Abstract
Compared to single-target adversarial attacks, multi-target attacks have garnered significant attention due to their ability to generate adversarial images for multiple target classes simultaneously. However, existing generative approaches for multi-target attacks primarily encode target labels into one-dimensional tensors, leading to a loss of fine-grained visual information and overfitting to model-specific features during noise generation. To address this gap, we first identify and validate that the semantic feature quality and quantity are critical factors affecting the transferability of targeted attacks: 1) Feature quality refers to the structural and detailed completeness of the implanted target features, as deficiencies may result in the loss of key discriminative information; 2) Feature quantity refers to the spatial sufficiency of the implanted target features, as inadequacy limits the victim model's attention to this feature. Based on these findings, we propose the 2D Tensor-Guided Adversarial Fusion (TGAF) framework, which leverages the powerful generative capabilities of diffusion models to encode target labels into two-dimensional semantic tensors for guiding adversarial noise generation. Additionally, we design a novel masking strategy tailored for the training process, ensuring that parts of the generated noise retain complete semantic information about the target class. Extensive experiments demonstrate that TGAF consistently surpasses state-of-the-art methods across various settings.
