Verifying the Causes of Adversarial Examples

Honglin Li, Yifei Fan, Frieder Ganz, Anthony J. Yezzi, Payam M. Barnaghi

Abstract

Deep neural networks are highly susceptible to adversarial examples—small, often imperceptible perturbations that lead to incorrect classifications with high confidence. This paper moves beyond the typical arms race of attacks and defenses to diagnose the fundamental causes of this fragility. Our findings suggest that adversarial vulnerability is driven by model linearity, the constraints of the softmax function, and the geometric partitioning of high-dimensional space. By decoupling output probabilities and controlling linearity, we provide empirical evidence for these underlying mechanisms.

Introduction

The fragility of deep neural networks (DNNs) is well-documented: a "panda" image can be transformed into a "gibbon" with 99% confidence through minimal pixel manipulation. Despite the proliferation of adversarial attacks and defensive strategies, the research community remains divided on the "root causes" of these vulnerabilities. Are they inherent statistical properties of our training objectives, or geometric artifacts of how networks draw decision boundaries in high-dimensional space?

This work seeks to provide a "telescope" for observing these high-dimensional phenomena. By isolating specific architectural and mathematical variables, we verify how linearity and probability constraints contribute to the existence and confidence of adversarial examples.

Methodology

We employ a hypothesis-driven approach to isolate the factors contributing to adversarial success:

  1. Linearity Control: We utilize varying levels of $L_2$ weight decay to adjust linear coefficients. This tests the hypothesis that high-dimensional linearity magnifies small input perturbations into large output shifts.
  2. Probability Decoupling: Standard classifiers utilize a Softmax layer, imposing a "one-sum" constraint where the sum of all class probabilities must equal 1.0. We replace this with Sigmoid activations and Binary Cross-Entropy (BCE) loss, allowing each class to be evaluated independently.
  3. Non-Linear Architectures: We introduce Multi-Layer Perceptron Probabilistic Neural Networks (MLP-PNN) and Density Estimation (DE) models. These replace final linear layers with similarity-based kernels to evaluate if density-based classification offers superior robustness.
  4. Data Cleaning: We identify "illusive samples"—training data consistently misclassified by shallow models—to test if removing these "hard" samples prevents the formation of "uncertain bridges" in the decision boundary.

Experimental Results and Analysis

The Impact of Linearity

Our experiments with weight decay demonstrate that while linearity is not the sole cause of accuracy drops under attack, it is the primary driver of high-confidence errors. As shown in Figure 1, increasing weight decay (which reduces linearity) helps maintain lower confidence levels in adversarial regions, even as accuracy declines.

Figure 1: Accuracy and confidence under FGSM attack for different weight decay (wd) values. Higher weight decay reduces the model's overconfidence in adversarial examples.

The Softmax Trap

The "one-sum" constraint of the softmax function forces a zero-sum game between classes. If an attack successfully suppresses the correct class, the probability mass is forced into incorrect categories, often leading to near-100% confidence in a wrong answer. By switching to Sigmoid/BCE, we decouple these probabilities.

Figure 2: Comparison of Softmax + Cross-Entropy vs. Sigmoid + Binary Cross-Entropy. The Sigmoid approach maintains significantly lower confidence on adversarial samples, creating a more "reliable" failure mode.

As illustrated in Figure 2, while accuracy still degrades under attack, the Sigmoid-based model does not exhibit the same extreme overconfidence as the Softmax model. This suggests that the "one-sum" constraint is a major culprit for the high-confidence nature of adversarial examples.

Key Insights

  • The "Bridge" Problem: Networks often create narrow "bridges" in high-dimensional space to connect disparate pockets of the same category. These bridges frequently pass through regions of low data density, providing easy paths for adversarial perturbations to cross decision boundaries.
  • Complexity Penalty: Robustness is inversely proportional to the number of target categories. More classes necessitate more decision boundaries, effectively increasing the "attack surface."
  • Geometric Destiny: The ratio of inter-class distance to intra-class distance ($d_{inter}/d_{intra}$) is a fundamental predictor of robustness. Models trained on datasets with naturally high separation (e.g., the "Band" dataset) are intrinsically more robust.

Conclusion and Future Work

This study confirms that adversarial examples are not a single-factor problem but arise from the intersection of model linearity, probability constraints, and high-dimensional geometry. Decoupling output probabilities via Sigmoid/BCE offers a path toward "reliable" classifiers that fail gracefully rather than with misplaced confidence.

Future research will focus on more effectively breaking the constraints on path-connected regions and refining Probabilistic Neural Network (PNN) architectures to scale beyond benchmark datasets like MNIST and CIFAR-10.

Summary updated

Abstract

The robustness of neural networks is challenged by adversarial examples that contain almost imperceptible perturbations to inputs which mislead a classifier to incorrect outputs in high confidence. Limited by the extreme difficulty in examining a high-dimensional image space thoroughly, research on explaining and justifying the causes of adversarial examples falls behind studies on attacks and defenses. In this paper, we present a collection of potential causes of adversarial examples and verify (or partially verify) them through carefully -designed controlled experiments. The major causes of adversarial examples include model linearity, one-sum constraint, and geometry of the categories. To control the effect of those causes, multiple techniques are applied such as L2 normalization, replacement of loss functions, construction of reference datasets, and novel models using multi-layer perceptron probabilistic neural networks (MLP-PNN) and density estimation (DE). Our experiment results show that geometric factors tend to be more direct causes and statistical factors magnify the phenomenon, especially for assigning high prediction confidence. We believe this paper will inspire more studies to rigorously investigate the root causes of adversarial examples, which in turn provide useful guidance on designing more robust models.
BibTeX
@inproceedings{li2020verifying,
  author = {Honglin Li and Yifei Fan and Frieder Ganz and Anthony J. Yezzi and Payam M. Barnaghi},
  title = {{Verifying the Causes of Adversarial Examples}},
  booktitle = {ICPR},
  year = {2020},
  url = {https://openreview.net/forum?id=z-QxBXRxvF},
}
Figure