NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AutoAugment Input Transformation for Highly Transferable Targeted Attacks

Haobo Lu, Xin Liu, Kun HearXiv 2023 · DOI

Abstract

Targeted adversarial attacks aim to deceive deep neural networks (DNNs) into misclassifying inputs as specific, pre-defined target classes. While transfer-based attacks offer a viable path for black-box scenarios, achieving high success rates in targeted settings remains a significant challenge. This paper introduces AutoAugment Input Transformation (AAIT), an automated framework that searches for optimal image transformation policies to enhance attack transferability. By prioritizing affine transformations and optimizing for target class confidence while maintaining semantic proximity, AAIT significantly outperforms existing hand-crafted methods across diverse architectures, including CNNs and Vision Transformers.

Introduction

In adversarial machine learning, attacks are categorized into non-targeted and targeted varieties. Non-targeted attacks simply aim to induce any incorrect classification, whereas targeted attacks require the model to output a specific, often semantically unrelated, label. The latter is considerably more difficult, particularly in black-box settings where the attacker lacks access to the victim model's internal parameters.

To overcome this, researchers utilize transfer-based attacks, crafting perturbations on a known "white-box" surrogate model. While input transformations—such as resizing or padding—have been shown to improve the transferability of non-targeted attacks, their efficacy in targeted scenarios has been limited. Existing hand-crafted strategies often fail to sufficiently amplify the signal of the target class. AAIT addresses this gap by automating the search for transformation policies that specifically bolster targeted transferability.

Methodology: The AAIT Framework

The core of AAIT is an automated search algorithm inspired by the AutoAugment family of data augmentation techniques. Rather than relying on human intuition to select transformations, AAIT explores a vast search space to identify policies that maximize the "transferability signal."

Overview of the AAIT framework for generating transferable targeted adversarial examples.

Search Space and Objective Function

The search space focuses on affine transformations, including shearing, translation, rotation, and flipping. Preliminary findings indicated that color-based transformations (e.g., brightness, contrast) often degraded performance by obscuring the specific features necessary for targeted misclassification. Consequently, the search is constrained to geometric manipulations.

The optimization process is guided by a dual-objective function:

  1. Maximizing Target Logits: The policy is trained to find transformations that result in the highest possible confidence score (logit) for the target class on the surrogate model.
  2. Minimizing Distributional Distance: To ensure the generated gradients remain relevant to the original image, the framework employs Wasserstein distance to keep the transformed images semantically close to the source.

Once an optimal policy—consisting of various sub-policies and operations—is identified, it is used to generate average gradients across multiple transformed versions of the input image. These gradients are then applied to create the final adversarial perturbation.

Key Insights: Logit Correlation and Geometric Priority

A pivotal discovery in this research is the strong positive correlation between the logit of the target class and the diversity of input transformations. As shown in the experimental results, transformations that increase the surrogate model's confidence in the target class directly lead to higher success rates against black-box models.

Correlation between target class logits (left) and probabilities (right) across various architectures and transformation methods.

Furthermore, the superiority of affine transformations over color-based ones suggests that targeted attacks rely heavily on spatial features. While color shifts might help in non-targeted "noise-making," they often "wash out" the specific structural patterns that a model associates with a particular target class.

Experimental Results

The authors evaluated AAIT on the ImageNet-Compatible and CIFAR-10 datasets, testing transferability across various architectures, including ResNet, VGG, DenseNet, and Vision Transformers (ViTs).

  • CNN-to-CNN Transfer: AAIT achieved a state-of-the-art average success rate of 64.11% when attacking from a DenseNet-121 surrogate, representing a 6.37% improvement over the previous best method, ODI-DTMI.
  • Vision Transformer Transfer: Attacking ViTs is notoriously difficult due to their different architectural biases. AAIT significantly improved success rates, for instance, increasing the success rate against a ViT model from 3.1% to 11.7%.
  • Defense Robustness: AAIT also demonstrated superior performance against models equipped with specialized adversarial defenses, such as ADP and DVERGE, maintaining higher success rates than all baseline methods.

Conclusion

AutoAugment Input Transformation (AAIT) represents a significant advancement in the field of transferable targeted attacks. By moving from hand-crafted heuristics to an automated, differentiable search for transformation policies, the method effectively bridges the performance gap in black-box scenarios. While targeted transferability remains an open challenge—especially across vastly different architectures—AAIT provides a robust foundation for future research into more complex transformation spaces and optimized loss functions.

Summary updated

BibTeX
@misc{lu2023autoaugment,
  author = {Haobo Lu and Xin Liu and Kun He},
  title = {{AutoAugment Input Transformation for Highly Transferable Targeted Attacks}},
  year = {2023},
  eprint = {2312.14218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.14218},
}
Figure