Harnessing the Computation Redundancy in ViTs to Boost Adversarial Transferability

Jia-Ni Liu, Zhiyuan Wang, Ze-Liang Zhang, Chao Huang, Susan Liang +2 more
4/1/2025
transformer-attention

No confident code implementation found for this paper.

Abstract

Vision Transformers (ViTs) have demonstrated impressive performance across a range of applications, including many safety-critical tasks. However, their unique architectural properties raise new challenges and opportunities in adversarial robustness.

Show full abstract

In particular, we observe that adversarial examples crafted on ViTs exhibit higher transferability compared to those crafted on CNNs, suggesting that ViTs contain structural characteristics favorable for transferable attacks. In this work, we investigate the role of computational redundancy in ViTs and its impact on adversarial transferability. Unlike prior studies that aim to reduce computation for efficiency, we propose to exploit this redundancy to improve the quality and transferability of adversarial examples. Through a detailed analysis, we identify two forms of redundancy, including the data-level and model-level, that can be harnessed to amplify attack effectiveness. Building on this insight, we design a suite of techniques, including attention sparsity manipulation, attention head permutation, clean token regularization, ghost MoE diversification, and test-time adversarial training. Extensive experiments on the ImageNet-1k dataset validate the effectiveness of our approach, showing that our methods significantly outperform existing baselines in both transferability and generality across diverse model architectures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025harnessing,
  title  = {Harnessing the Computation Redundancy in ViTs to Boost Adversarial Transferability},
  author = {Jia-Ni Liu and Zhiyuan Wang and Ze-Liang Zhang and Chao Huang and Susan Liang and Yolo Y. Tang and Chenliang Xu},
  year   = {2025},
  eprint = {2504.10804},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-2580},
  url    = {https://doi.org/10.52202/085713-2580},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.10804.svg)](https://codeofpaper.com/paper/2504.10804)

Discussion