Abstract
Adversarial training yields robust models against a specific threat model, e.g., $L_\infty$ adversarial examples. Typically robustness does not generalize to previously unseen threat models, e.g., other $L_p$ norms, or larger perturbations. Our confidence-calibrated adversarial training (CCAT) tackles this problem by biasing the model towards low confidence predictions on adversarial examples. By allowing to reject examples with low confidence, robustness generalizes beyond the threat model employed during training. CCAT, trained only on $L_\infty$ adversarial examples, increases robustness against larger $L_\infty$, $L_2$, $L_1$ and $L_0$ attacks, adversarial frames, distal adversarial examples and corrupted examples and yields better clean accuracy compared to adversarial training. For thorough evaluation we developed novel white- and black-box attacks directly attacking CCAT by maximizing confidence. For each threat model, we use $7$ attacks with up to $50$ restarts and $5000$ iterations and report worst-case robust test error, extended to our confidence-thresholded setting, across all attacks.
The Generalization Gap in Adversarial Training
Deep neural networks are notoriously vulnerable to adversarial examples—small, often imperceptible perturbations that trigger misclassification. The current gold standard for defense is Adversarial Training (AT), where a model is trained on adversarial examples generated during the training loop.
However, AT suffers from a significant "overfitting" problem: a model trained to resist $L_\infty$ attacks (perturbations limited by a maximum per-pixel change) usually fails against $L_2$ or $L_1$ attacks, or even $L_\infty$ attacks with a slightly larger radius than seen during training. This occurs because standard AT forces the model to be highly confident in the correct class even when the input is perturbed. This paper introduces Confidence-Calibrated Adversarial Training (CCAT) to build defenses that generalize to "unseen" attacks by rethinking model confidence.
Methodology: Confidence-Calibrated Adversarial Training (CCAT)
The core idea of CCAT is to bias the model toward a uniform (low-confidence) distribution as the input moves further away from the clean data. Instead of forcing the model to predict the correct label with high confidence for all adversarial examples within a ball of radius $\epsilon$, CCAT uses a target distribution that is a convex combination of the true label and a uniform distribution.
As the perturbation $\delta$ increases, the target becomes more uniform, controlled by a "power transition" function: $\lambda(\delta) := (1 - \min(1, \|\delta\|_\infty / \epsilon))^\rho$. During inference, the model uses a confidence threshold $\tau$. If the maximum predicted probability for any class is below $\tau$, the input is rejected. This allows the model to effectively "say I don't know" when faced with unfamiliar perturbations.
To evaluate CCAT properly, the authors developed PGD-Conf, an adaptive attack that directly maximizes the model's confidence in any incorrect class. This is more effective against CCAT than standard cross-entropy attacks because CCAT's objective is specifically to minimize that confidence.
Key Insights: Generalization through Extrapolation
Standard AT tries to "fix" the decision boundary locally, which often leads to high-confidence misclassifications just outside the training radius. CCAT, by contrast, teaches the model a "smooth exit" toward uncertainty. This behavior extrapolates much better to regions of the input space the model didn't see during training.
As shown in interpolation experiments, CCAT turns confidence into a reliable indicator of whether an input is "out-of-distribution" or adversarial. This also helps preserve clean accuracy, as the model is not forced to make high-confidence decisions on ambiguous inputs near the decision boundary.
Experimental Results
CCAT demonstrated superior generalization across almost all "unseen" categories compared to standard AT:
- Unseen $L_p$ Norms: On SVHN, a model trained on $L_\infty$ using standard AT had a robust error of 99.4% against $L_2$ attacks. CCAT reduced this error to 29.0%.
- Larger Perturbations: When the $L_\infty$ attack radius was doubled beyond the training value, CCAT's robust error on SVHN was 53.1%, compared to 88.4% for standard AT.
- Corruptions: On CIFAR10-C (common corruptions), CCAT achieved an error of 8.5%, outperforming both standard AT (16.2%) and even a normally trained model (12.3%).
Conclusion
CCAT provides a promising path toward models that generalize robustness beyond the specific threat models used during training. By calibrating confidence to decay as inputs deviate from the training distribution, CCAT enables effective rejection of adversarial and corrupted inputs while maintaining high clean accuracy.
Summary updated