Leveraging Spatial Invariance to Boost Adversarial Transferability

Zihan Zhou, Li Li, Yan Ren, Chuan Qin, Guo-Rui Feng
1/1/2025

No official code found. Best implementation: TheMoss7/SID (6 stars, Python, last commit 2025-07-18).

Abstract

Adversarial examples, crafted with imperceptible perturbations, reveal a significant vulnerability of Deep Neural Networks (DNNs). More critically, the transferability of adversarial examples allows attackers to induce unreasonable predictions without requiring knowledge about the target model.

Show full abstract

DNNs exhibit spatial invariance, meaning that the position of an object does not affect the classification result. However, existing input transformation-based adversarial attacks solely focus on behavioral patterns at a singular position, failing to fully exploit the spatial invariance exhibited by DNNs across multiple positions, thus constraining the transferability of adversarial examples. To address this, we propose a multi-scale, multi-position input transformation-based attack called Spatial Invariance Diversity (SID). Specifically, SID uses hybrid spatial-spectral fusion mechanisms within localized receptive fields, followed by multi-scale spatial downsampling and positional perturbations via random transformations, thereby crafting an ensemble of inputs to activate diverse behavioral patterns for effective adversarial perturbations. Extensive experiments on the ImageNet dataset demonstrate that SID could achieve better transferability than the current state-of-the-art input transformation-based attacks. Additionally, SID can be flexibly integrated with other input transformation-based or gradient-based attacks, further enhancing the transferability of adversarial examples. The code is available at https://github.com/TheMoss7/SID.

Semantic Scholar

Code Implementations(1)

TheMoss7/SIDCommunity55%

This repository is the official Pytorch code implementation for our paper Leveraging Spatial Invariance to Boost Adversarial Transferability.

61PythonJul 17, 20251 years ago

Similar Papers

Cite this paper

@article{zhou2025leveraging,
  title  = {Leveraging Spatial Invariance to Boost Adversarial Transferability},
  author = {Zihan Zhou and Li Li and Yan Ren and Chuan Qin and Guo-Rui Feng},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:b92f3bdab01cd48521a48f69799e91b5044c70b8},
  journal = {IEEE International Conference on Computer Vision}
}

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/b92f3bdab01cd48521a48f69799e91b5044c70b8.svg)](https://codeofpaper.com/paper/b92f3bdab01cd48521a48f69799e91b5044c70b8)

Discussion