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

Art of singular vectors and universal adversarial perturbations

Valentin Khrulkov, Ivan Oseledets

TL;DR

This paper introduces a highly efficient method for generating universal adversarial perturbations (UAPs)—image-agnostic noise that causes deep neural networks to misclassify images. By computing the $(p, q)$-singular vectors of the Jacobian matrices of a network's hidden layers, the authors achieve a fooling rate of over 60% on ImageNet using a tiny sample of just 64 images, drastically reducing the data requirement compared to prior techniques.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks, where subtle, engineered noise added to an input causes the model to fail. While most attacks are tailored to a specific image, recent work revealed the existence of universal adversarial perturbations (UAPs): a single noise pattern that can be added to any image to trigger a misclassification.

However, existing algorithms to construct UAPs are data-hungry and computationally expensive, requiring iterative optimization over thousands of images. This paper addresses this bottleneck by proposing a mathematically elegant and data-efficient approach to uncover these universal vulnerabilities using the geometric properties of the network's hidden layer representations.

Methods

The authors approximate the non-linear transformations of a DNN's hidden layers using their Jacobian matrices. Because adversarial perturbations are typically very small in magnitude, a first-order Taylor expansion holds well: the change in a layer's output can be approximated by multiplying the Jacobian matrix by the perturbation vector.

To maximize this disruption across a batch of images, the problem is formulated as finding the $(p, q)$-singular vector of the stacked Jacobian matrices. Calculating this directly is computationally impossible for deep networks—storing the full Jacobian matrix for a single batch on VGG-19 would require roughly 30 terabytes of memory.

To bypass this, the authors introduce the Stochastic Power Method (SPM). Instead of computing the full matrix, SPM relies solely on matrix-vector products (matvecs). They implement these matvecs efficiently in a fraction of a second using automatic differentiation via Pearlmutter’s R-operator.

Datasets

The method was evaluated using the ILSVRC 2012 validation dataset (commonly known as ImageNet), utilizing 50,000 images spanning 1,000 distinct classes. Crucially, the universal perturbations were constructed using a tiny random subset of just 64 images from this dataset.

Key Insights and Ideas

  • Data Hyper-Efficiency: A network's universal vulnerability can be extracted from an incredibly small amount of data. Analyzing less than 0.15% of the dataset (64 images) is sufficient to create an attack that generalizes to thousands of unseen images and classes.
  • Disrupting "Image Understanding": The generated perturbations display striking, visually appealing geometric patterns (see Figure 1). These patterns closely resemble feature visualizations of early convolutional layers responsible for edge detection. This suggests the attack succeeds by systematically destroying the network's low-level edge-detection capabilities.
Figure 1: Universal adversarial perturbations constructed using various layers of various DNNs.
  • Cross-Architecture Generalization: The perturbations are "doubly universal." Not only do they apply to any image, but a perturbation calculated for one network architecture (e.g., VGG-19) transfers effectively to entirely different architectures (e.g., ResNet50), occasionally even outperforming the target network's native perturbations.

Key Results

  • High Fooling Rates: Using only 64 images to generate the perturbation, the authors achieved a 60% fooling rate on VGG-19 and a 52% fooling rate on VGG-16. For ResNet50, the maximum fooling rate reached 44%.
  • Rapid Convergence: The Stochastic Power Method converges extremely quickly, typically requiring fewer than 60 iterations to find an accurate singular value approximation (see Figure 3).
Figure 3: Convergence of the (∞, 10)-singular value. Rel- ative error of the singular value w.r.t iteration number is shown.
  • Robustness to Batch Size: The performance is remarkably stable regardless of batch size. Reducing the batch size from 64 down to just 16 images still yielded a powerful 56% fooling rate on VGG-19 (see Figure 5).
Figure 5: Dependence of the fooling rate on the batch size. block2 pool layer in VGG-19 was used for the experi- ment.

Limitations and Future Work

While the method is exceptionally fast and data-efficient, the authors note that a higher singular value in a given layer does not automatically guarantee a higher fooling rate, indicating that the relationship between layer depth, singular values, and network vulnerability is complex.

For future work, the authors propose leveraging these $(p, q)$-singular values as a quantitative metric for neural network robustness. They hypothesize that incorporating the singular values of early layers directly into the network's regularization loss during training could pave the way for new, highly effective adversarial defense mechanisms.

Summary updated

BibTeX
@inproceedings{khrulkov2018art,
  author = {Valentin Khrulkov and Ivan 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