Towards Interpretable Adversarial Examples via Sparse Adversarial Attack

Fudong Lin, Jiadong Lou, Hao Wang, Brian Jalaian, Xu Yuan
6/8/2025
cs.LGcs.AI

Official code: fudong03/SparseAttack (1 star, MIT, last commit 2025-06-03).

Abstract

Sparse attacks are to optimize the magnitude of adversarial perturbations for fooling deep neural networks (DNNs) involving only a few perturbed pixels (i.e., under the l0 constraint), suitable for interpreting the vulnerability of DNNs. However, existing solutions fail to yield interpretable adversarial examples due to their poor sparsity. Worse still, they often struggle with heavy computational overhead, poor transferability, and weak attack strength. In this paper, we aim to develop a sparse attack for understanding the vulnerability of CNNs by minimizing the magnitude of initial perturbations under the l0 constraint, to overcome the existing drawbacks while achieving a fast, transferable, and strong attack to DNNs. In particular, a novel and theoretical sound parameterization technique is introduced to approximate the NP-hard l0 optimization problem, making directly optimizing sparse perturbations computationally feasible. Besides, a novel loss function is designed to augment initial perturbations by maximizing the adversary property and minimizing the number of perturbed pixels simultaneously. Extensive experiments are conducted to demonstrate that our approach, with theoretical performance guarantees, outperforms state-of-the-art sparse attacks in terms of computational overhead, transferability, and attack strength, expecting to serve as a benchmark for evaluating the robustness of DNNs. In addition, theoretical and empirical results validate that our approach yields sparser adversarial examples, empowering us to discover two categories of noises, i.e., "obscuring noise" and "leading noise", which will help interpret how adversarial perturbation misleads the classifiers into incorrect predictions. Our code is available at https://github.com/fudong03/SparseAttack.

View on arXivView PDF

Code Implementations(1)

MIT

This is the official github repository of "Towards Interpretable Adversarial Examples via Sparse Adversarial Attack", accepted by ECML-PKDD 2025.

10PythonMay 28, 20251 years agoMIT

Similar Papers

Cite this paper

@article{lin2025towards,
  title  = {Towards Interpretable Adversarial Examples via Sparse Adversarial Attack},
  author = {Fudong Lin and Jiadong Lou and Hao Wang and Brian Jalaian and Xu Yuan},
  year   = {2025},
  eprint = {2506.17250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.17250v1}
}

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

Discussion