Reinforcing Adversarial Robustness using Model Confidence Induced by Adversarial Training

Xi Wu, Uyeong Jang, Jiefeng Chen, Lingjiao Chen, Somesh Jha

Introduction

Adversarial training does more than just make models robust; it fundamentally alters how they express uncertainty. In adversarially trained models, confidence scores transform into highly reliable "discriminators" capable of distinguishing between correct and incorrect predictions. By leveraging this property, researchers introduce the Highly Confident Near Neighbor (HCNN) framework, which reinforces robustness by searching for nearby high-confidence regions to correct adversarial perturbations.

The Problem: The "Gray Zone" of Robust Models

Despite the success of adversarial training—specifically the min-max formulation popularized by Madry et al.—deep neural networks remain vulnerable to sophisticated attacks. Even robust models often possess a "gray zone" where they make incorrect predictions with low confidence.

Most existing defenses treat a model's output as a simple discrete label, ignoring the rich information contained in the confidence level (the maximum value of the softmax output). This paper demonstrates that adversarial training implicitly encourages a "separation property," where high-confidence regions for different classes are pushed far apart. Exploiting this property can yield a significantly more resilient defense.

Methodology

The authors introduce several key concepts to harness model confidence:

  1. Probabilistic Separation Property: For a well-trained model, there should be no high-confidence incorrect predictions in the immediate neighborhood of a natural data point. The standard min-max adversarial training objective naturally encourages this property.
  2. Highly Confident Near Neighbor (HCNN): Given a test point $x$, this framework searches its local neighborhood for a point $z$ that maximizes a combination of model confidence and proximity to $x$.
  3. Most Confident Neighbor (MCN): A simplified version of HCNN that finds the point in the neighborhood with the highest confidence, regardless of exact distance.
  4. Confidence-Based Rejection: A defense layer where the model refuses to classify a point if its confidence falls below a threshold ($p_0$). It effectively outputs "I don't know" rather than a wrong answer.
  5. Attacks as Defenses: To solve the HCNN optimization problem during inference, the authors repurpose gradient-based techniques (like PGD)—typically used for generating attacks—to find high-confidence "trusted" regions.

Key Results on CIFAR-10

The empirical study focuses on the CIFAR-10 dataset, utilizing the robust ResNet model provided by Madry et al. as a baseline.

Confidence-Based Rejection

In natural models, adversaries can easily find points that are both wrong and highly confident. In adversarially trained models, confidence becomes a strong proxy for correctness. Applying a simple rejection rule proved highly effective. For a perturbation radius of $\eta = 0.010$, applying a confidence threshold of $p = 0.99$ reduced the Adversarially Wrong Prediction Ratio (AWPR) from 11% down to 0%, while still correctly classifying 72.6% of natural images.

AWPR reduction using confidence-based rejection

Label Recovery via MCN

The MCN algorithm successfully "recovered" correct labels for adversarial examples by navigating to the most confident nearby point. For instance, at a perturbation radius of $\eta = 0.015$, MCN correctly re-classified 114 examples where the base model's label had been successfully flipped by an attacker (recorded as "Label change" for the 1st confident point).

MCN recovery results showing label changes and confidence reductions

Limitations and Future Work

While promising, the confidence-based approach has limitations:

  • The 0.03 Boundary: The defense's effectiveness drops sharply as the attack radius approaches $0.03$ (the radius used during the base model's training). At this limit, the model loses control over its confidence discriminator.
  • Gradient Masking: HCNN might introduce "gradient masking," making it hard for gradient-based attacks to find adversarial points without actually removing them. The authors attempted to mitigate this by testing against confidence-aware attacks.
  • Computational Cost: Running an optimization process like HCNN/MCN for every single inference is computationally expensive compared to a standard forward pass.

Future adversarial training methods may need modifications to better handle larger radii, perhaps by explicitly encouraging low confidence outside of small, trusted neighborhoods.

Summary updated

BibTeX
@inproceedings{wu2018reinforcing,
  author = {Xi Wu and Uyeong Jang and Jiefeng Chen and Lingjiao Chen and Somesh Jha},
  title = {{Reinforcing Adversarial Robustness using Model Confidence Induced by Adversarial Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=ry-o73WubS},
}
Figure