A Versatile Framework for Designing Group-Sparse Adversarial Attacks

Alireza Heshmati, Saman Soleimani Roudi, Sajjad Amini, Shahrokh Ghaemmaghami, Farokh MarvastiarXiv 2025 · DOI

Abstract

Deep Neural Networks (DNNs) are susceptible to adversarial perturbations—small, often imperceptible changes to input data that lead to incorrect classifications. While traditional attacks often produce diffuse, noise-like perturbations, this paper introduces the ATOS (Attack Through Overlapping Sparsity) framework. ATOS leverages a novel differentiable surrogate for the $\ell_0$ norm, termed OSL0, to generate structurally sparse perturbations. By targeting specific, meaningful image regions, ATOS not only achieves high attack success rates but also provides "counterfactual" explanations that enhance our understanding of model decision-making processes.

Introduction

Adversarial attacks serve as a critical tool for evaluating the robustness of Deep Neural Networks. However, the majority of existing attack methodologies generate perturbations that are spread across the entire image. These "noise-like" modifications lack interpretability; they fail to highlight which specific features or regions a model is over-relying on when it makes a mistake.

Existing sparse attacks, which attempt to minimize the number of altered pixels, often struggle with "structural" sparsity. They typically treat color channels or pixels as independent entities, ignoring the natural spatial groupings inherent in images. Furthermore, balancing the trade-off between invisibility (small intensity changes) and sparsity (few changed pixels) usually requires manual, rigid thresholding. The ATOS framework addresses these limitations by introducing a mathematically grounded approach to group-sparse adversarial perturbations.

Methodology

The ATOS framework is built upon two primary mathematical innovations designed to optimize both the location and the intensity of adversarial changes.

1. Overlapping Smoothed $\ell_0$ (OSL0) Function

The $\ell_0$ "norm," which counts the number of non-zero elements in a vector, is non-differentiable and discrete, making it unsuitable for standard gradient-based optimization. ATOS introduces OSL0, a smooth, differentiable approximation capable of handling overlapping groups. By applying a sliding window to group adjacent pixels or color channels, the optimization process is incentivized to cluster perturbations. This results in cohesive "blobs" of change that target salient features rather than scattered, salt-and-pepper noise.

2. Adaptive Intensity Control (LSEAp)

To maintain the "invisibility" of the attack without manual tuning, ATOS utilizes the LSEAp (Logarithm of the Sum of Exponential Absolute values) function. This acts as a smooth proxy for the gradient of the $\ell_\infty$ norm. LSEAp allows the optimization process to automatically shrink the intensity of the attack, ensuring the perturbation remains subtle while the OSL0 component ensures it remains sparse.

Mathematical Rigor

The authors provide formal proofs regarding the convexity and Lipschitz conditions of the OSL0 function. These proofs ensure that the optimization process is mathematically sound and guaranteed to converge to a stationary point, providing a reliable foundation for the framework.

Experimental Evaluation

Datasets and Architectures

The framework was rigorously evaluated using two benchmark datasets:

  • CIFAR-10: 60,000 low-resolution (32x32) images across 10 classes.
  • ImageNet: High-resolution images representing a vast array of object categories.

The authors tested ATOS against a diverse set of architectures, ranging from standard Convolutional Neural Networks (CNNs) and Vision Transformers (ViT-s16) to state-of-the-art robust models featured on the RobustBench leaderboard, such as MeanSparse ConvNeXt-L and Swin-L Transformer.

Key Insights and Results

Performance and Efficiency

ATOS demonstrated exceptional efficacy, achieving a 100% Attack Success Rate (ASR) across nearly all tested models. This success held even in "worst-case" targeted scenarios where the attacker attempts to force the model into its least-likely class. When compared to baselines like PGD-$\ell_0$ and GSA-SCAD, ATOS consistently required a lower Number of Perturbed Pixels (NPP) to achieve its objective, proving that structured sparsity is more efficient than element-wise sparsity.

Interpretability and Counterfactuals

A significant advantage of ATOS is its ability to act as a window into the "black box" of DNNs. Because the perturbations are clustered, the resulting attack masks often align with the actual objects in the image. This reveals the specific parts of an object (e.g., a bird's beak or a car's wheel) that the model utilizes for classification.

On models that have undergone adversarial training, ATOS produces counterfactual explanations. Rather than adding noise, the framework begins to physically alter the image to adopt features of the target class—such as adding the texture of a "vacuum" to a "chickadee." This demonstrates the minimum semantic change required to flip a model's prediction.

Conclusion and Future Work

ATOS represents a significant step forward in the design of interpretable, sparse adversarial attacks. By utilizing overlapping windows for group sparsity, the framework finds the most vulnerable shapes and positions within an image more effectively than rigid grid-based methods.

However, several areas for future research remain:

  • Transition to Black-Box Settings: Currently, ATOS is a "white-box" attack requiring full gradient access. Extending this to scenarios where only model outputs are available is a priority.
  • Hyperparameter Sensitivity: While intensity control is automated, the framework introduces relaxation parameters ($\sigma, \lambda$) that may require tuning for different datasets.
  • Computational Demand: The use of overlapping windows increases computational complexity compared to simpler attacks, which may impact its utility in real-time, high-resolution applications.

Summary updated

BibTeX
@misc{heshmati2025versatile,
  author = {Alireza Heshmati and Saman Soleimani Roudi and Sajjad Amini and Shahrokh Ghaemmaghami and Farokh Marvasti},
  title = {{A Versatile Framework for Designing Group-Sparse Adversarial Attacks}},
  year = {2025},
  eprint = {2510.16637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16637},
}
Figure