English

$\sigma$-zero: Gradient-based Optimization of $\ell_0$-norm Adversarial Examples

Machine Learning 2025-03-07 v3 Cryptography and Security Computer Vision and Pattern Recognition

Abstract

Evaluating the adversarial robustness of deep networks to gradient-based attacks is challenging. While most attacks consider 2\ell_2- and \ell_\infty-norm constraints to craft input perturbations, only a few investigate sparse 1\ell_1- and 0\ell_0-norm attacks. In particular, 0\ell_0-norm attacks remain the least studied due to the inherent complexity of optimizing over a non-convex and non-differentiable constraint. However, evaluating adversarial robustness under these attacks could reveal weaknesses otherwise left untested with more conventional 2\ell_2- and \ell_\infty-norm attacks. In this work, we propose a novel 0\ell_0-norm attack, called σ\sigma-zero, which leverages a differentiable approximation of the 0\ell_0 norm to facilitate gradient-based optimization, and an adaptive projection operator to dynamically adjust the trade-off between loss minimization and perturbation sparsity. Extensive evaluations using MNIST, CIFAR10, and ImageNet datasets, involving robust and non-robust models, show that σ\sigma\texttt{-zero} finds minimum 0\ell_0-norm adversarial examples without requiring any time-consuming hyperparameter tuning, and that it outperforms all competing sparse attacks in terms of success rate, perturbation size, and efficiency.

Keywords

Cite

@article{arxiv.2402.01879,
  title  = {$\sigma$-zero: Gradient-based Optimization of $\ell_0$-norm Adversarial Examples},
  author = {Antonio Emanuele Cinà and Francesco Villani and Maura Pintor and Lea Schönherr and Battista Biggio and Marcello Pelillo},
  journal= {arXiv preprint arXiv:2402.01879},
  year   = {2025}
}

Comments

Paper accepted at International Conference on Learning Representations (ICLR 2025). Code available at https://github.com/sigma0-advx/sigma-zero

R2 v1 2026-06-28T14:36:42.350Z