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

Learning to Transform Dynamically for Better Adversarial Transferability

Rongyi Zhu, Zeliang Zhang, Zhuo Liu, Chenliang Xu, Susan LiangCVPR 2024

Abstract

Adversarial examples, crafted by adding perturbations imperceptible to humans, can deceive neural networks. Recent studies identify the adversarial transferability across various models, i.e., the cross-model attack ability of adversarial samples. To enhance such adversarial transferability, existing input transformation-based methods diversify input data with transformation augmentation. However, their effectiveness is limited by the finite number of available transformations. In our study, we introduce a novel approach named Learning to Transform (L2T). L2T increases the diversity of transformed images by selecting the optimal combination of operations from a pool of candidates, consequently improving adversarial transferability. We conceptualize the selection of optimal transformation combinations as a trajectory optimization problem and employ a reinforcement learning strategy to effectively solve the problem. Comprehensive experiments on the ImageNet dataset, as well as practical tests with Google Vision and GPT-4V, reveal that L2T surpasses current methodologies in enhancing adversarial transferability, thereby confirming its effectiveness and practical significance.

Introduction

Adversarial attacks involve making human-imperceptible changes to an image to trick a neural network into misclassification. In real-world scenarios, attackers often lack access to the internal weights of a target model (a "black-box" scenario). Consequently, they craft attacks on a "surrogate" model, hoping the adversarial features "transfer" to the target.

Existing methods improve transferability by applying input transformations—essentially data augmentation for attacks. By crafting an attack that remains effective across multiple versions of an image (e.g., resized, padded, or flipped), the attack is more likely to target invariant features shared across models. However, current methods rely on fixed transformations, which limits their adaptability to specific image characteristics or the evolving nature of the adversarial perturbation during the attack process.

Comparison of L2T against fixed and learned transformation baselines, demonstrating superior Attack Success Rate (ASR) growth over iterations.

Methodology: Learning to Transform (L2T)

L2T addresses the limitations of static augmentations by treating transformation selection as a trajectory optimization problem. Instead of a fixed sequence, L2T dynamically chooses from a pool of 10 candidate operations, including Mixup, Rotation, Scaling, Padding, and Spectrum-domain noise.

Dynamic Selection and Reinforcement Learning

In every iteration of the attack, the algorithm samples a subset of transformations to apply. L2T utilizes a reinforcement learning (RL) strategy, specifically a gradient policy, to update the probability of choosing specific transformations. If a combination (e.g., "Shuffle" and "Scale") leads to a higher loss on the surrogate model, the system learns to favor that combination for that specific image.

Bi-level Optimization

The framework employs a bi-level optimization process. It simultaneously optimizes the adversarial noise to fool the model and the transformation sampling distribution to identify the most "harmful" way to view the image. This allows the attack to evolve; for instance, it might prioritize "Rotation" initially to find general weaknesses and shift to "Masking" in later iterations to fine-tune the perturbation.

The L2T framework architecture, illustrating the bi-level optimization of adversarial perturbations and the RL-based transformation sampling process.

Experimental Results

Researchers evaluated L2T using the ImageNet (ILSVRC 2012) dataset against a wide array of architectures, including ResNet, Inception, Vision Transformers (ViT), and Swin Transformers. The study also included defense-hardened models and commercial black-box APIs.

  • Superior Transferability: L2T outperformed state-of-the-art input-transformation methods (such as S²IM and BSR) by an average of 22.9% in Attack Success Rate (ASR) across various models.
  • Robustness Against Defenses: On "Certified Defense" models, L2T achieved a 46.7% ASR, surpassing the previous best by 4.6%.
  • Real-World Impact: In tests against commercial APIs, L2T achieved nearly 100% success on GPT-4V and Gemini, often causing these Multi-modal Large Language Models (MLLMs) to hallucinate entirely different objects (e.g., misidentifying a bird as a crocodile).

Key Insights and Conclusion

A central finding of this work is that there is no "one size fits all" transformation; the optimal augmentation strategy varies by image and by the current state of the adversarial noise. As an image becomes more adversarial, its statistical distribution shifts, and L2T’s RL-based policy adapts in real-time to this shift.

While L2T introduces some computational overhead due to the sampling process, it remains more efficient than other learn-based attacks that require training heavy separate networks. The vulnerability of MLLMs like GPT-4V to these transferred features highlights a critical security gap, suggesting that understanding these dynamic trajectories is essential for building the next generation of robust visual systems.

Summary updated

BibTeX
@inproceedings{zhu2024learning,
  author = {Rongyi Zhu and Zeliang Zhang and Zhuo Liu and Chenliang Xu and Susan Liang},
  title = {{Learning to Transform Dynamically for Better Adversarial Transferability}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=k76ngWX9OR},
}
Figure