Robust Models are less Over-Confident

Julia Grabinski, Paul Gavrikov, Janis Keuper, Margret Keuper

TL;DR

Deep learning models are notoriously "confidently wrong," making them risky for real-world use. This paper reveals a silver lining to adversarial training (AT): while designed to resist attacks, AT has the significant side-effect of making models much less overconfident and better calibrated, even on clean, non-adversarial data.

The Reliability Gap in Standard CNNs

Standard Convolutional Neural Networks (CNNs) suffer from a major reliability gap. They tend to produce high-confidence scores (near 1.0) for their predictions, regardless of whether those predictions are actually correct. This overconfidence is particularly dangerous when a model encounters "out-of-distribution" data or malicious adversarial attacks.

While researchers have developed Adversarial Training (AT)—training models on perturbed images to make them "robust"—the community hasn't fully explored how these robust models behave in terms of their internal confidence. The authors investigate whether making a model harder to fool also makes it more "honest" about what it doesn't know.

Methodology: Measuring Model Honesty

The authors performed a massive empirical study, analyzing over 70 adversarially robust models and comparing them to their conventionally trained (non-robust) counterparts. The robust models were sourced from RobustBench, a standardized leaderboard for adversarial robustness, while the authors released their own "modelzoo" containing the non-robust counterparts.

They evaluated these models across three standard computer vision benchmarks (CIFAR-10, CIFAR-100, and ImageNet) using several key techniques:

  • Confidence Mapping: Plotting mean confidence on correct vs. incorrect predictions to see how well models "disentangle" certain successes from uncertain failures.
  • Calibration Metrics: Using Expected Calibration Error (ECE) to quantify how well a model’s predicted probabilities match its actual accuracy.
  • Error Detection: Using ROC curves to test if a model's confidence score could be used as a reliable "alarm" to reject incorrect predictions.
  • Ablation of Building Blocks: Analyzing how architectural choices, like Frequency Low Cut (FLC) pooling and learnable activation functions, impact confidence levels.
Confidence mapping on clean samples showing robust models disentangling correct from incorrect predictions better than non-robust models.

Key Insights and Results

The "Humble" Side-Effect

Adversarial training acts as a natural regularizer for confidence. Robust models are significantly less overconfident on false predictions compared to standard models, even when evaluating on "clean" data.

Comparison of overconfidence across Clean, PGD, and Squares samples. Robust models consistently exhibit lower overconfidence than non-robust models.

Dramatic Calibration Improvements

On CIFAR-10, non-robust models showed a staggering mean ECE of 0.6736, while their robust counterparts dropped to 0.1894. A lower ECE means the model's confidence is a much better reflection of its actual likelihood of being right.

Confidence as a Filter

Because robust models are less overconfident when they are wrong, their confidence scores can actually be used as a heuristic to detect and reject adversarial attacks or erroneous decisions. In white-box attack scenarios (like PGD), non-robust models completely fail to distinguish correct from incorrect predictions via confidence. Robust models, however, maintain a high Area Under the ROC Curve (AUC), meaning they effectively "know" when they are being fooled.

Architecture Matters

It’s not just the training data. Replacing standard Max Pooling with FLC pooling (which reduces aliasing) or using learnable activation functions (instead of standard ReLU) significantly improves a model's calibration. Furthermore, these trends hold true for larger datasets; on ImageNet, larger models (like Wide-ResNet-50-2) were the most successful at disentangling confidence between correct and incorrect predictions.

Limitations and Future Work

While robust models excel at detecting errors from gradient-based adversaries seen during training (like PGD), they exhibit a degree of attack overfitting. Their ability to detect errors is much weaker against black-box attacks (like Squares) that they haven't "seen" before, though they still remain less overconfident than standard models.

Additionally, the study relies primarily on Softmax confidence. The authors acknowledge that other uncertainty metrics (like Bayesian approaches) should be explored. Finally, while the CIFAR analysis was extensive, the number of available robust ImageNet models is still relatively small, making it harder to draw universal conclusions for high-resolution tasks.

Ultimately, the authors suggest that future research should stop treating "robustness" and "calibration" as separate goals and instead look for architectural building blocks that naturally improve both.

Summary updated

BibTeX
@inproceedings{grabinski2022robust,
  author = {Julia Grabinski and Paul Gavrikov and Janis Keuper and Margret Keuper},
  title = {{Robust Models are less Over-Confident}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=5K3uopkizS},
}
Figure