[Paper Review] Reinforcing Adversarial Robustness using Model Confidence Induced by Adversarial Training
This paper proposes HCNN, a framework that enhances adversarial robustness by combining model confidence with nearest neighbor search to correct low-confidence adversarial predictions. It shows that adversarially trained models naturally induce confidence as a discriminator between correct and incorrect predictions, enabling effective defense even against strong attacks like Carlini-Wagner when combined with neighborhood search.
In this paper we study leveraging confidence information induced by adversarial training to reinforce adversarial robustness of a given adversarially trained model. A natural measure of confidence is $\|F({\bf x})\|_\infty$ (i.e. how confident $F$ is about its prediction?). We start by analyzing an adversarial training formulation proposed by Madry et al.. We demonstrate that, under a variety of instantiations, an only somewhat good solution to their objective induces confidence to be a discriminator, which can distinguish between right and wrong model predictions in a neighborhood of a point sampled from the underlying distribution. Based on this, we propose Highly Confident Near Neighbor (${ t HCNN}$), a framework that combines confidence information and nearest neighbor search, to reinforce adversarial robustness of a base model. We give algorithms in this framework and perform a detailed empirical study. We report encouraging experimental results that support our analysis, and also discuss problems we observed with existing adversarial training.
Motivation & Objective
- To investigate whether confidence in adversarially trained models can serve as a reliable discriminator between correct and incorrect predictions.
- To address the gap in robustness against strong adversarial attacks despite existing adversarial training.
- To propose a method that enhances robustness by combining confidence with local search in input space.
- To empirically validate that confidence is a strong indicator of prediction correctness in the neighborhood of natural data points.
Proposed method
- The framework uses the infinity norm of the model’s output, \|F(\mathbf{x})\|_{\infty}, as a measure of confidence to distinguish between correct and incorrect predictions.
- It introduces the \xi-Highly Confident Near Neighbor (HCNN_{\xi}) method, which searches for a point \mathbf{z} within a \xi-ball around \mathbf{x} that maximizes confidence while remaining close to \mathbf{x}.
- The optimization objective is \operatorname*{arg\,max}_{\mathbf{z} \in N(\mathbf{x},\xi)} (\|F(\mathbf{z})\|_{\infty} - \lambda|\mathbf{z} - \mathbf{x}|), balancing confidence and proximity.
- The method is applied to adversarial examples by attempting to map them back to high-confidence regions via local search.
- It reuses the robust ResNet model trained by Madry et al. as a base model and applies HCNN for end-to-end defense.
- The approach is evaluated against modified versions of PGD and CW attacks that attempt to exploit confidence information.
Experimental results
Research questions
- RQ1Does confidence in an adversarially trained model reliably distinguish between correct and incorrect predictions in a neighborhood of natural data points?
- RQ2Can confidence be leveraged as a discriminator to improve adversarial robustness beyond the base model?
- RQ3How effective is combining confidence with nearest neighbor search in correcting adversarial examples with low confidence?
- RQ4What are the limitations of current adversarial training formulations when the attack radius becomes large?
- RQ5Can a confidence-based defense remain effective against adaptive attacks that target low-confidence regions?
Key findings
- For small attack radii (e.g., \eta = \xi = 0.010), HCNN_{\xi} correctly classified 94 adversarial examples that were originally misclassified with changed labels, while misclassifying only 27 confidence-reduced examples.
- At \eta = \xi = 0.015, HCNN_{\xi} correctly predicted 114 label-changed adversarial examples, with only 20 wrong predictions on confidence-reduced examples.
- In 99.44% of cases at \eta = \xi = 0.010 and 98.94% at \eta = \xi = 0.015, the correct label was among the two highest-confidence predictions from the perturbed points.
- Confidence as a discriminator loses effectiveness at larger radii, such as 0.03, due to the inclusion of random noise in the \ell_{\infty} ball.
- The study identifies two key limitations of Madry et al.'s formulation: poor gradient search in large balls and over-regularization on noise, suggesting a need for trusted regions of limited size.
- The results indicate that confidence is a provably useful signal for robustness when combined with local search, offering a discriminative alternative to generative manifold-based defenses.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.