Manifold Assumption and Defenses Against Adversarial Perturbations

Xi Wu, Uyeong Jang, Lingjiao Chen, Somesh Jha

Abstract

Adversarial training is a cornerstone of robust deep learning, yet its internal effects on model behavior are often overlooked. This paper demonstrates that robust training induces a "confidence gap," where incorrect predictions are significantly more likely to have low confidence. By formalizing this as a probabilistic separation property, the authors introduce the Highly Confident Near Neighbor (HCNN) framework. HCNN utilizes model confidence to either reject adversarial inputs or "repair" them by re-embedding them into high-confidence regions of the data manifold.

Introduction

Despite the impressive performance of deep neural networks, they remain susceptible to adversarial perturbations—minimal, often imperceptible changes to inputs that trigger misclassification. While adversarial training (e.g., the min-max formulation by Madry et al.) improves robustness, models still struggle against sophisticated, adaptive attacks.

Most existing defenses treat the model as a black box that merely outputs a label. This research shifts the focus to the model's internal confidence (softmax output). The central hypothesis is that while standard models often produce "confident wrong" predictions, adversarial training makes it significantly harder for an adversary to find points that are both misclassified and highly confident.

The Probabilistic Separation Property

The authors formalize the structural changes induced by adversarial training through the $(p, q, \delta)$-separation property. A model satisfies this property if, for a natural data point, the probability of finding a "wrong" prediction with confidence higher than $p$ within a neighborhood of radius $\delta$ is at most $q$.

Theoretical analysis suggests that Madry’s min-max adversarial training objective naturally encourages models to satisfy this property. In essence, the training process implicitly regularizes the model to be uncertain in regions where it is likely to be incorrect.

Highly Confident Near Neighbor (HCNN)

Building on the separation property, the authors propose the Highly Confident Near Neighbor (HCNN) defense framework. Given an input $x$ that may be adversarial, HCNN searches its local neighborhood $N(x, \xi)$ for a point $z$ that maximizes a combination of model confidence and proximity to the original input:

$$\text{HCNN}_\xi(F, x) \equiv \arg \max_{z \in N(x, \xi)} (\|F(z)\|_\infty - \lambda |z - x|)$$

This optimization effectively "repairs" the input by moving it toward a high-confidence region, which likely corresponds to the true data manifold. A simpler variant of this defense is Confidence-Based Rejection, where the model outputs a "reject" symbol ($\perp$) if the confidence at a point falls below a threshold $p_0$.

Experimental Evaluation

The framework was evaluated on the CIFAR-10 dataset using both a standard "natural" ResNet and a robust ResNet trained with the Madry objective.

Quantifying Separation

To test the separation property, the authors attempted to find "confident wrong" points within a radius of $\delta = 0.03$. The results highlighted a stark difference between the two models.

Comparison of "confident wrong" points in natural vs. adversarially trained models.

As shown in the table above, the natural model was easily fooled into high-confidence errors for nearly all samples. In contrast, the robust model maintained the separation property for over 90% of the test cases.

Defense Effectiveness

The confidence-based rejection method proved highly effective for the robust model. For small attack radii ($\eta = 0.01$), setting a confidence threshold of $p=0.99$ reduced the Adversarially Wrong Prediction Ratio (AWPR) from 11% to 0%.

Performance of confidence-based rejection on a robust model across different attack radii ($\eta$) and confidence thresholds ($p$).

While the rejection mechanism significantly lowers the error rate under attack, it does come with a trade-off in recall on natural data (e.g., 72.6% recall at $p=0.99$). However, for many safety-critical applications, rejecting an uncertain input is preferable to a confident misclassification.

Discussion and Limitations

The study reveals that adversarial training implicitly forces models to lower their confidence on adversarial points, even when the label remains incorrect. This suggests that confidence is a meaningful discriminator in robust models, aligned with the manifold assumption—natural data lies on low-dimensional manifolds where the model should be confident, while adversarial perturbations push data into low-confidence "off-manifold" regions.

However, limitations remain. As the attack radius increases (e.g., toward $\delta = 0.03$ on CIFAR-10), the robust model's control over confidence begins to degrade. Additionally, HCNN introduces computational overhead at inference time due to the required optimization step. Finally, while the authors tested against confidence-aware attacks, the risk of "gradient masking" necessitates ongoing research to ensure these defenses remain robust against future adaptive adversaries.

Summary updated

BibTeX
@inproceedings{wu2018manifold,
  author = {Xi Wu and Uyeong Jang and Lingjiao Chen and Somesh Jha},
  title = {{Manifold Assumption and Defenses Against Adversarial Perturbations}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=ry-o73WubS},
}
Figure