NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Art of Singular Vectors and Universal Adversarial Perturbations

Valentin Khrulkov, Ivan V. Oseledets

Abstract: Vulnerability of Deep Neural Networks (DNNs) to adversarial attacks has been attracting a lot of attention in recent studies. It has been shown that for many state of the art DNNs performing image classification there exist universal adversarial perturbations — image-agnostic perturbations mere addition of which to natural images with high probability leads to their misclassification. In this work we propose a new algorithm for constructing such universal perturbations. Our approach is based on computing the so-called (p, q)-singular vectors of the Jacobian matrices of hidden layers of a network. Resulting perturbations present interesting visual patterns, and by using only 64 images we were able to construct universal perturbations with more than 60 % fooling rate on the dataset consisting of 50000 images. We also investigate a correlation between the maximal singular value of the Jacobian matrix and the fooling rate of the corresponding singular vector, and show that the constructed perturbations generalize across networks.

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial perturbations—tiny, often invisible changes to an image that cause the model to misclassify it. While most attacks are tailored to a specific image, "universal" adversarial perturbations (UAPs) are even more dangerous: a single noise pattern that can be added to any image to break the model.

Presented at CVPR 2018, this research explores the mathematical "art" behind why these image-agnostic noise patterns fool networks. Moving away from iterative, data-heavy optimization, the authors frame the search for UAPs as a classic problem in linear algebra: finding the singular vectors of a network's Jacobian matrices.

Methodology: The Jacobian Singular Vector Approach

The authors hypothesize that an effective universal perturbation should significantly change the activations in the network's hidden layers. For a small perturbation $\epsilon$, the change in a hidden layer $f(x)$ can be approximated by the Jacobian matrix: $f(x + \epsilon) - f(x) \approx J(x)\epsilon$.

To find the most impactful $\epsilon$, they solve for the $(p, q)$-singular vector of the Jacobian, which maximizes the norm of the change in the feature map ($\Vert J(x)\epsilon \Vert_q$) subject to a constraint on the size of the perturbation ($\Vert \epsilon \Vert_p = L$). To make the perturbation universal, they stack the Jacobians of a small batch of images (e.g., 64) and find the dominant singular vector for the entire stack using a Stochastic Power Method.

Because Jacobian matrices for modern DNNs are too massive to store in memory, the authors utilize Pearlmutter’s R-operator. This allows for the computation of matrix-vector products using automatic differentiation without ever explicitly constructing the matrix, making the process highly efficient.

Visualizing Vulnerability

The generated perturbations are not merely random noise; they exhibit striking visual patterns, such as grids or textures, that resemble "feature visualizations."

Visual patterns of universal adversarial perturbations across different layers and architectures.

These patterns suggest that the attack works by over-stimulating specific low-level filters, such as edge detectors, in the early layers of the network. This "artistic" quality provides a visual intuition for the network's internal vulnerabilities.

Layer Vulnerability and Singular Values

Not all layers are equally vulnerable to these attacks. The authors discovered a strong correlation between the magnitude of the singular value of a layer's Jacobian and the resulting fooling rate. This provides a quantitative measure of a layer's robustness.

Distribution of maximal singular values across network layers for VGG and ResNet architectures.

As shown in the analysis of singular values across layers, perturbations calculated from earlier layers (e.g., block2_pool in VGG) often resulted in higher fooling rates than those from deeper layers. This "sweet spot" indicates where the network is most susceptible to universal noise.

Key Results and Efficiency

The proposed method was evaluated using the ILSVRC 2012 (ImageNet) validation set across standard architectures like VGG-16, VGG-19, and ResNet50. Key findings include:

  • High Fooling Rates: On VGG-19, the method achieved a 60% fooling rate using only 64 images. Previous state-of-the-art methods typically required thousands of images to reach similar performance.
  • Extreme Data Efficiency: Using as few as 16 to 64 images (less than 0.15% of the dataset) is sufficient to create a highly effective attack.
  • Computational Speed: The algorithm is highly efficient, generating a universal perturbation in roughly one minute on a single NVIDIA Tesla K80 GPU.
  • Double Universality: The perturbations generalize not only across images but also across different network architectures. A perturbation designed for VGG-19 often successfully fools ResNet50.

Conclusion

By framing universal adversarial perturbations as a singular vector problem, this work provides a principled and efficient method for exposing DNN vulnerabilities. While the focus is on the attack, the authors suggest that the singular values of Jacobians could serve as a regularizer during training to enhance network robustness in future work.

Summary updated

BibTeX
@inproceedings{khrulkov2018art,
  author = {Valentin Khrulkov and Ivan V. Oseledets},
  title = {{Art of Singular Vectors and Universal Adversarial Perturbations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=B1VyQpb_ZH},
}
Figure