On the Relationship Between Universal Adversarial Attacks and Sparse Representations

Dana Weitzner, Raja Giryes

Abstract

Adversarial perturbations pose a significant challenge to the reliability of deep neural networks (DNNs), exhibiting puzzling properties such as universality across datasets and transferability between different architectures. This research investigates the hypothesis that these vulnerabilities are not merely artifacts of specific model architectures but are fundamentally rooted in the sparse representation of natural data. By analyzing classical sparse coding algorithms and introducing a novel, model-agnostic "Dict-Attack" (DA), the authors demonstrate that adversarial noise exploits the underlying dictionary structure of data. This perspective provides a unified explanation for the cross-model and cross-image effectiveness of adversarial attacks, suggesting that vulnerability is an inherent property of systems that rely on sparse signal recovery.

Introduction

Deep neural networks (DNNs) are famously fragile. A tiny, invisible tweak to an image—an adversarial perturbation—can trick a world-class classifier into misidentifying a subject with high confidence. Two properties of these attacks are particularly significant for security and robustness:

  1. Universality: A single perturbation can fool a model across an entire dataset.
  2. Transferability: An attack designed to break one model often works against another, even if the architectures differ significantly.

While previous research has focused on the geometry of decision boundaries or specific network layers, this paper asks whether the vulnerability is inherent to the data itself. Specifically, the authors investigate whether the way natural images are represented—as sparse combinations of "atoms" in a dictionary—is the fundamental weakness that adversarial attacks exploit.

Methodology

The researchers bridged the gap between classical signal processing and modern deep learning through several key approaches:

Attacking Sparse Coders

To determine if adversarial sensitivity is exclusive to DNNs, the authors applied the Projected Gradient Descent (PGD) attack to classical sparse coding algorithms, including Orthogonal Matching Pursuit (OMP), LASSO, and the neural-network-based Learned Iterative Shrinkage Thresholding Algorithm (LISTA).

ConvLISTA and Dictionary Learning

To handle real-world data like CIFAR-10, the study utilized a convolutional version of LISTA (ConvLISTA) to learn the "dictionary"—the set of fundamental patterns—that represents the data. This allowed the researchers to analyze how perturbations interact with the learned structural components of the images.

The Dict-Attack (DA)

The authors introduced a novel, model-agnostic attack called the Dict-Attack. Instead of utilizing a classifier's gradients, DA analyzes the data's dictionary $D$ and identifies the direction that maximizes the "energy" of the representation. Mathematically, this involves finding the direction of the smallest singular value of the dictionary, effectively targeting the most unstable components of the representation.

Key Insights

Sparsity as a Common Denominator

The paper proves that even non-neural sparse coding algorithms suffer from adversarial sensitivity. This suggests that any system attempting to find a sparse representation of data is fundamentally vulnerable to specific types of noise that disrupt that sparsity.

Targeting the Dictionary

PGD attacks were shown to be highly correlated with dictionary atoms. Specifically, they align with "weak" directions in the dictionary (poorly conditioned sub-matrices), effectively "scrambling" the sparse code that the network relies on for classification. Qualitative analysis showed that while random noise only slightly nudges sparse coefficients, adversarial attacks cause "correct" components to vanish and "excess" components to appear, rewriting the data's internal representation.

A Unified Theory for Universality and Transferability

Because different images in a dataset (e.g., various images of "dogs") share the same underlying dictionary of visual features, an attack that exploits that dictionary will naturally be universal. Furthermore, since different models trained on the same data likely learn similar underlying representations of the data's structure, they share the same dictionary-based vulnerabilities, explaining why attacks transfer so effectively between architectures.

Experimental Results

The study validated its hypotheses across synthetic data, MNIST, CIFAR-10, and Tiny ImageNet. Key findings include:

  • Transferability to Classical Methods: Perturbations calculated to fool a LISTA network successfully transferred to OMP and LASSO, causing significantly higher reconstruction errors than random noise.
  • Dict-Attack Performance: The proposed DA, which knows nothing about the target classifier, outperformed standard Universal Adversarial Perturbations (UAP) on MNIST and CIFAR-10. On a WideResNet28 trained on CIFAR-10, DA consistently reduced accuracy more effectively than noise or existing semi-universal attacks across various attack budgets ($\epsilon$).

Conclusion and Future Work

This research suggests that adversarial vulnerability is deeply linked to the structural properties of natural data. By demonstrating that attacks target the dictionary used for sparse representation, the authors provide a new lens through which to view model robustness.

Future work may involve the development of "sparsity-aware" defenses. If attackers target the dictionary structure, robustness might be improved by forcing learned weights to be more orthogonal or by using sparse representation frameworks to denoise inputs before they reach classification layers. Ultimately, the path to robust AI may require a return to the fundamentals of how we represent and process signal data.

Summary updated

Abstract

The prominent success of neural networks, mainly in computer vision tasks, is increasingly shadowed by their sensitivity to small, barely perceivable adversarial perturbations in image input. In this work, we aim at explaining this vulnerability through the framework of sparsity. We show the connection between adversarial attacks and sparse representations, with a focus on explaining the universality and transferability of adversarial examples in neural networks. To this end, we show that sparse coding algorithms, and the neural network-based learned iterative shrinkage thresholding algorithm (LISTA) among them, suffer from this sensitivity, and that common attacks on neural networks can be expressed as attacks on the sparse representation of the input image. The phenomenon that we observe holds true also when the network is agnostic to the sparse representation and dictionary, and thus can provide a possible explanation for the universality and transferability of adversarial attacks.
BibTeX
@article{weitzner2023relationship,
  author = {Dana Weitzner and Raja Giryes},
  title = {{On the Relationship Between Universal Adversarial Attacks and Sparse Representations}},
  journal = {IEEE Open Journal of Signal Processing},
  year = {2023},
  doi = {10.1109/ojsp.2023.3244486},
}
Figure