Second Order Optimization for Adversarial Robustness and Interpretability

Theodoros Tsiligkaridis, Jay RobertsarXiv 2020

Abstract: Deep neural networks are easily fooled by small perturbations known as adversarial attacks. Adversarial Training (AT) is a technique aimed at learning features robust to such attacks and is widely regarded as a very effective defense. However, the computational cost of such training can be prohibitive as the network size and input dimensions grow. Inspired by the relationship between robustness and curvature, we propose a novel regularizer which incorporates first and second order information via a quadratic approximation to the adversarial loss. The worst case quadratic loss is approximated via an iterative scheme. It is shown that using only a single iteration in our regularizer achieves stronger robustness than prior gradient and curvature regularization schemes, avoids gradient obfuscation, and, with additional iterations, achieves strong robustness with significantly lower training time than AT. Further, it retains the interesting facet of AT that networks learn features which are well-aligned with human perception. We demonstrate experimentally that our method produces higher quality human-interpretable features than other geometric regularization techniques. These robust features are then used to provide human-friendly explanations to model predictions.

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success across various domains, yet they remain notoriously brittle. Small, carefully crafted "adversarial" perturbations can trick these models into misclassifying inputs with high confidence. The current gold standard for defense is Adversarial Training (AT), where the model is trained on these adversarial examples. However, AT is computationally grueling because it requires solving a complex optimization problem (typically via many steps of Projected Gradient Descent) for every single training batch.

Alternative "geometric" regularizers, which attempt to smooth the model's decision boundaries, are faster but often fail against strong attacks or suffer from gradient obfuscation—a phenomenon where the model hides its gradients to thwart attacks without providing true robustness. This research introduces SCORPIO (Second Order Robust Optimization), a method designed to bridge the gap between the speed of regularization and the true robustness of AT.

The SCORPIO Method

SCORPIO leverages second-order (curvature) information to enhance robustness efficiently. The core idea is to approximate the adversarial loss using a quadratic Taylor expansion.

  1. Quadratic Approximation: Instead of searching for the worst-case perturbation on the full, complex loss surface, SCORPIO searches on a local quadratic approximation that incorporates both the gradient (1st order) and the Hessian (2nd order) information.
  2. Frank-Wolfe Optimization: To find the optimal approximate attack, the method uses the Frank-Wolfe algorithm. This "projection-free" approach is particularly adept at handling different norm constraints (like $L_2$ or $L_\infty$) without the need for extensive hyperparameter tuning.
  3. Efficient Computation: Calculating a full Hessian matrix is computationally infeasible for large networks. SCORPIO utilizes finite difference approximations to compute Hessian-vector products. This allows the model to capture curvature information using only a few extra forward and backward passes.
  4. Curvature Regularization: By explicitly penalizing high curvature, SCORPIO forces the model to learn a "flatter" loss landscape, which is inherently more stable against perturbations.

Experimental Evaluation

The authors evaluated SCORPIO on two standard computer vision benchmarks: CIFAR-10 and SVHN (Street View House Numbers). The performance was measured against strong adversarial attacks, including multi-step PGD and black-box attacks like SimBA, to ensure the robustness was genuine.

Key Results

SCORPIO demonstrates a significant improvement in robustness over existing geometric regularizers. On CIFAR-10, it achieved an adversarial accuracy of approximately 66% against a strong PGD-100 attack, significantly outperforming prior schemes like CURE (~53%) and Gradient Regularization (~32%).

Robustness performance of SCORPIO compared to standard training, gradient regularization, CURE, and adversarial training on CIFAR-10 and SVHN datasets under $L^2$ and $L^\infty$ norms.

As shown in the figure above, SCORPIO (dark blue) consistently tracks the performance of full Adversarial Training (green) across different datasets and perturbation norms, while being much faster to train. Furthermore, black-box attack testing confirmed that SCORPIO provides true robustness rather than just hiding gradients.

Interpretability and Human-Aligned Features

One of the most striking benefits of SCORPIO is the quality of the features it learns. Standard models often rely on non-robust, high-frequency patterns that are unintelligible to humans. In contrast, SCORPIO-trained models produce saliency maps that focus on semantically meaningful parts of an image, such as the ears of a dog or the mast of a ship.

This alignment enables "Contrastive Explanations," where the model can justify its predictions using "Pertinent Positives" (features that support the label) and "Pertinent Negatives" (features that, if added, would change the label). For example, a ship might be identified by its mast, but adding "wings" would flip the prediction to an airplane. This makes the model's decision-making process much more transparent to human users.

Conclusion

SCORPIO represents a significant advancement in robust machine learning by providing a computationally efficient alternative to Adversarial Training. By penalizing curvature through second-order optimization, it achieves high levels of adversarial accuracy while fostering the development of human-interpretable features. Future work will focus on scaling these techniques to larger datasets like ImageNet and further refining the hyperparameter tuning process.

Summary updated

BibTeX
@misc{tsiligkaridis2020second,
  author = {Theodoros Tsiligkaridis and Jay Roberts},
  title = {{Second Order Optimization for Adversarial Robustness and Interpretability}},
  year = {2020},
  eprint = {2009.04923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.04923},
}
Figure