Neural Networks in Adversarial Setting and Ill-Conditioned Weight Space

Mayank Singh, Abhishek Sinha, Balaji KrishnamurthyarXiv 2018

Abstract

Recently, Neural networks have seen a huge surge in its adoption due to their ability to provide high accuracy on various tasks. On the other hand, the existence of adversarial examples have raised suspicions regarding the generalization capabilities of neural networks. In this work, we focus on the weight matrix learnt by the neural networks and hypothesize that ill conditioned weight matrix is one of the contributing factors in neural network's susceptibility towards adversarial examples. For ensuring that the learnt weight matrix's condition number remains sufficiently low, we suggest using orthogonal regularizer. We show that this indeed helps in increasing the adversarial accuracy on MNIST and F-MNIST datasets.

Introduction: The Fragility of Deep Learning

Deep Neural Networks (DNNs) have achieved remarkable success across various domains. However, their susceptibility to "adversarial examples"—inputs specifically crafted with imperceptible perturbations to cause misclassification—remains a significant hurdle for deployment in security-critical applications. This paper investigates the structural properties of neural network weight matrices to understand and mitigate this vulnerability.

What Problem Does This Paper Address?

The authors focus on the linear stability of neural network layers. In a standard layer computing $y = Wx + b$, the sensitivity of the output $y$ to small changes in the input $x$ is governed by the properties of the weight matrix $W$.

If $W$ is "ill-conditioned," it means that small perturbations in the input space can be amplified into large, erratic shifts in the output space. This numerical instability provides a gateway for adversarial attacks to hijack the model's logic.

Adversarial perturbations on MNIST digits at varying epsilon levels.

Methodology: Orthogonal Regularization

To address this instability, the authors propose controlling the condition number ($\kappa$) of the weight matrices during training.

  1. The Condition Number: In linear algebra, the condition number measures how much the output of a function can change for a small change in the input. An orthogonal matrix, where $W^T W = I$, has an ideal condition number of 1, representing perfect stability.
  2. The Regularizer: The authors introduce a penalty term to the loss function to push weights toward orthogonality: $$L_{cond} = \lambda(W^T W - I)$$ Here, $\lambda$ is a hyperparameter controlling the regularization strength. This approach aims to fix the underlying numerical instability rather than just defending against specific attack patterns.

Experimental Results

The proposed method was evaluated on the MNIST and Fashion-MNIST (F-MNIST) datasets.

Improved Robustness

The results demonstrate significant improvements in adversarial accuracy across various attack types, including FGSM, BIM, and Black-Box attacks. For instance, on the MNIST dataset, accuracy against a standard FGSM attack ($\epsilon = 0.2$) increased from 19.03% to 38.47% with regularization alone. When combined with adversarial training, the robustness reached 97.41%.

Fashion-MNIST adversarial examples demonstrating increasing noise levels.

Structural Stability

The regularizer successfully reduced the condition numbers of the weight matrices. In one MNIST experiment, the maximum condition number was reduced from 995.70 to 251.19. Importantly, this increased robustness did not come at the cost of "clean" accuracy; the models maintained their high performance on unperturbed test data (e.g., 99.16% on MNIST).

Conclusion and Future Work

This work highlights the importance of weight matrix conditioning in the adversarial robustness of neural networks. By enforcing orthogonality, models become structurally more resistant to input perturbations. While promising on MNIST-scale datasets, future research is needed to scale these techniques to deeper architectures like ResNets and more complex datasets like ImageNet, where enforcing orthogonality may be more computationally demanding.

Summary updated

Abstract

Recently, Neural networks have seen a huge surge in its adoption due to their ability to provide high accuracy on various tasks. On the other hand, the existence of adversarial examples have raised suspicions regarding the generalization capabilities of neural networks. In this work, we focus on the weight matrix learnt by the neural networks and hypothesize that ill conditioned weight matrix is one of the contributing factors in neural network's susceptibility towards adversarial examples. For ensuring that the learnt weight matrix's condition number remains sufficiently low, we suggest using orthogonal regularizer. We show that this indeed helps in increasing the adversarial accuracy on MNIST and F-MNIST datasets.
BibTeX
@misc{singh2018neural,
  author = {Mayank Singh and Abhishek Sinha and Balaji Krishnamurthy},
  title = {{Neural Networks in Adversarial Setting and Ill-Conditioned Weight Space}},
  year = {2018},
  eprint = {1801.00905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.00905},
}
Figure