A Method for Computing Class-wise Universal Adversarial Perturbations

Tejus Gupta, Abhishek Sinha, Nupur Kumari, Mayank Singh, Balaji KrishnamurthyarXiv 2019

Introduction

Deep neural networks (DNNs) are notoriously vulnerable to adversarial examples—small, often imperceptible perturbations that lead to incorrect classifications. A significant threat is the Universal Adversarial Perturbation (UAP), a single noise pattern that can fool a model across a wide variety of inputs. Traditional methods for generating UAPs are computationally intensive, typically requiring iterative optimization and access to original training data. This paper proposes a novel, data-independent approach to generate class-wise UAPs using a closed-form mathematical expression, significantly reducing computation time.

Methodology

The proposed method leverages the observation that DNN decision boundaries are surprisingly linear. By treating the network as a linear classifier, the authors derive a closed-form solution for the adversarial perturbation.

Network Linearization

To facilitate direct computation, the authors create a "proxy" network. This involves removing non-linear activation functions (e.g., ReLUs) and replacing max-pooling layers with average-pooling. This linearized model allows for the calculation of gradients without the complexities of non-linear backpropagation.

Target Approximation

Since the attack is image-agnostic, the objective is to find a direction that minimizes the logit of the correct class relative to the average of all other classes. The final perturbation for a specific class is computed by taking the gradient of the linearized proxy network with respect to a random input vector. This process requires no training data or hyperparameter tuning.

Experimental Results

Computational Efficiency

The most striking advantage of the proposed method is its speed. By bypassing iterative loops, the attack generation time is reduced by orders of magnitude.

Comparison of attack computation time between the proposed method and iterative optimization.

As shown in the figure above, computing a perturbation for VGG-16 takes only 8 seconds with the proposed method, compared to approximately 1000 seconds for state-of-the-art iterative methods like those by Mopuri et al. (2017).

Fooling Effectiveness

Despite the linear approximation, the method achieves significant fooling rates across various architectures. On ImageNet, fooling rates typically range between 34% and 51%.

Distribution of fooling ratios across ImageNet classes.

The distribution of fooling ratios across ImageNet classes (shown above) indicates that while some classes are highly susceptible, others exhibit inherent robustness. This vulnerability profile is consistent across different model architectures, suggesting that certain classes are fundamentally easier to target with universal noise.

Transferability and Robustness

The generated perturbations demonstrate high cross-model transferability. For instance, a perturbation crafted for ResNet-18 can effectively fool VGG-16 and ResNet-50 in a black-box setting. Furthermore, the authors observed that adversarial training significantly reduces the linearity of decision boundaries, which explains why linear-based attacks are less effective against robust models.

Limitations

A primary constraint of class-specific perturbations is the requirement for the adversary to know the ground-truth class of the input to apply the most effective noise. However, this can be circumvented in scenarios where the goal is to suppress a specific prediction (e.g., ensuring a network never identifies a "stop sign") regardless of the input.

Conclusion

This work introduces a highly efficient, data-free method for generating class-wise universal adversarial perturbations. By exploiting the inherent linearity of DNN decision boundaries, the approach provides a fast way to evaluate model vulnerabilities. The findings underscore the importance of understanding the geometric properties of neural networks to develop more robust defenses.

Summary updated

BibTeX
@misc{gupta2019method,
  author = {Tejus Gupta and Abhishek Sinha and Nupur Kumari and Mayank Singh and Balaji Krishnamurthy},
  title = {{A Method for Computing Class-wise Universal Adversarial Perturbations}},
  year = {2019},
  eprint = {1912.00466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.00466},
}
Figure