Improved Detection of Adversarial Attacks via Penetration Distortion Maximization

Shai Rozenberg, Gal Elidan, Ran El-YanivarXiv 2019

Abstract

Deep Neural Networks (DNNs) are vulnerable to adversarial attacks, where small, imperceptible perturbations to inputs can cause misclassification. This paper presents MadNet, a training framework based on the Maximal Adversarial Distortion (MAD) principle. MadNet enhances adversarial robustness by optimizing the geometry of the model's embedding space. By simultaneously maximizing the distance between class clusters and minimizing the network's sensitivity to input changes (Jacobian norm), MadNet significantly increases the minimum distortion required to fool the model. Experimental results on MNIST and CIFAR-10 demonstrate that MadNet achieves superior robustness against state-of-the-art attacks while maintaining or improving accuracy on clean data.

Introduction

Adversarial attacks exploit the "twitchy" nature of standard Deep Neural Networks. In a typical training regime, internal representations of different classes often reside in close proximity within the embedding space. Furthermore, high sensitivity to input perturbations means that a small step in the input space can lead to a large leap across decision boundaries. This combination provides attackers with a low-cost path to manipulate model outputs.

MadNet addresses these vulnerabilities by regularizing the network's internal geometry. The goal is to create a decision landscape where classes are represented as compact, well-separated "islands," and the transitions between these islands are smooth and slow.

The MAD Principle and MadNet Architecture

The core theoretical foundation of this work is the Maximal Adversarial Distortion (MAD) principle. The authors establish that the minimum distortion ($\epsilon$) necessary to successfully attack a network is approximately bounded by the ratio of the embedding margin to the Jacobian norm of the network.

Embedding proximity correlates with adversarial confusion.

To operationalize this principle, the MadNet framework utilizes a multi-component loss function, $L_{MAD}$, during the training phase:

  • Cross-Entropy Loss ($L_{CE}$): Maintains baseline classification performance on clean data.
  • Siamese Loss: Employs a Siamese training procedure to penalize high cosine similarity between embeddings of different classes, effectively pushing them apart.
  • Reduce Variance Loss ($L_{RVL}$): Minimizes the intra-class variance, forcing the model to group instances of the same class into tight, compact regions.
  • Jacobian Reduction Loss: Explicitly penalizes large gradients with respect to the input, ensuring the model's output changes smoothly.

Experimental Results

The effectiveness of MadNet was evaluated using MNIST, CIFAR-10, and CIFAR-100 datasets against a suite of adversarial attacks, including Fast Gradient Sign Method (FGSM), Basic Iterative Method (BIM), Projected Gradient Descent (PGD), and the Carlini & Wagner (C&W) attack.

On the MNIST dataset, MadNet achieved an adversarial accuracy of 98.4% under PGD attacks, a stark contrast to the 10.6% achieved by standard models. On CIFAR-10, MadNet maintained 92.4% accuracy against the potent C&W attack, whereas the vanilla baseline dropped to 0%. Notably, MadNet does not suffer from the "robustness-accuracy trade-off" common in other defense methods; it achieved 94.2% clean accuracy on CIFAR-10, slightly exceeding the baseline's 93%.

t-SNE visualization comparing standard Cross-Entropy (CE) training with MadNet.

The geometric impact of MadNet is clearly visible in t-SNE visualizations of the embedding space. As shown in the figures, MadNet produces significantly more isolated and compact class clusters compared to standard Cross-Entropy training. This is quantitatively reflected in the Davies-Bouldin Index (DBI), which drops from 0.98 in the baseline to 0.1 in MadNet, indicating much higher cluster separation.

Conclusion

MadNet introduces a principled approach to adversarial defense by focusing on the geometric properties of the embedding space. By maximizing the required adversarial distortion through the MAD principle, the model becomes inherently more resilient to perturbations. Future work will investigate the impact of higher-order curvature and the potential benefits of applying MAD optimization to intermediate network layers.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNIST · adversarial robustnessMadNet (Adv training)accuracy98.4%+18.2 vs baselinesplit: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.15 · iterations=10
Source quote
L392: PGD (\epsilon=0.15) │ 0.6 │ 62.5 │ 83.4 │ 80.2 │ 98.4
CIFAR-10 · adversarial robustnessMadNet (Adv training)accuracy85%+9.3 vs baselinesplit: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.01 · iterations=10
Source quote
L410: PGD (\epsilon=0.01) │ 0 │ 60.1 │ 68.8 │ 75.7 │ 85
CIFAR-100 · adversarial robustnessMadNet (Adv training)accuracy76%+21 vs baselinesplit: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.005 · iterations=10
Source quote
L424: PGD (\epsilon=0.005) │ 8 │ 42.2 │ 53.4 │ 55 │ 76
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
MNIST · adversarial robustnessMustafa et al. (Adv training) baselineaccuracy80.2%split: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.15 · iterations=10
Source quote
L392: PGD (\epsilon=0.15) │ 0.6 │ 62.5 │ 83.4 │ 80.2 │ 98.4
CIFAR-10 · adversarial robustnessMustafa et al. (Adv training) baselineaccuracy75.7%split: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.01 · iterations=10
Source quote
L410: PGD (\epsilon=0.01) │ 0 │ 60.1 │ 68.8 │ 75.7 │ 85
CIFAR-100 · adversarial robustnessMustafa et al. (Adv training) baselineaccuracy55%split: test · adversarial-training · attack=PGD · subset=1,000 correctly classified test images · epsilon=0.005 · iterations=10
Source quote
L424: PGD (\epsilon=0.005) │ 8 │ 42.2 │ 53.4 │ 55 │ 76
BibTeX
@misc{rozenberg2019improved,
  author = {Shai Rozenberg and Gal Elidan and Ran El-Yaniv},
  title = {{Improved Detection of Adversarial Attacks via Penetration Distortion Maximization}},
  year = {2019},
  eprint = {1911.00870},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00870},
}
Figure