[Paper Review] Improving Calibration through the Relationship with Adversarial Robustness
This paper proposes AR-AdaLS, a method that improves model calibration by adaptively smoothing training labels based on each example's adversarial robustness. By identifying that adversarially unrobust inputs are more likely to be miscalibrated, AR-AdaLS applies stronger label smoothing to these vulnerable examples, leading to significantly better calibration—especially under distributional shift—without inference latency and with improved stability.
Neural networks lack adversarial robustness, i.e., they are vulnerable to adversarial examples that through small perturbations to inputs cause incorrect predictions. Further, trust is undermined when models give miscalibrated predictions, i.e., the predicted probability is not a good indicator of how much we should trust our model. In this paper, we study the connection between adversarial robustness and calibration and find that the inputs for which the model is sensitive to small perturbations (are easily attacked) are more likely to have poorly calibrated predictions. Based on this insight, we examine if calibration can be improved by addressing those adversarially unrobust inputs. To this end, we propose Adversarial Robustness based Adaptive Label Smoothing (AR-AdaLS) that integrates the correlations of adversarial robustness and calibration into training by adaptively softening labels for an example based on how easily it can be attacked by an adversary. We find that our method, taking the adversarial robustness of the in-distribution data into consideration, leads to better calibration over the model even under distributional shifts. In addition, AR-AdaLS can also be applied to an ensemble model to further improve model calibration.
Motivation & Objective
- To investigate the relationship between adversarial robustness and model calibration, particularly whether unrobust inputs are more likely to be miscalibrated.
- To improve model calibration by differentiating supervision based on adversarial robustness of training examples.
- To develop a scalable, inference-efficient method that enhances calibration without increasing latency.
- To extend the method to ensemble models for further calibration gains under distributional shift.
- To evaluate the impact of adversarial robustness precision on calibration performance.
Proposed method
- AR-AdaLS adaptively softens training labels based on the adversarial robustness of each input, with more robust examples receiving less smoothing.
- Adversarial robustness is measured by the magnitude of perturbation needed to fool the model, used to group inputs into robustness subsets.
- Label smoothing is applied per subset, with higher vulnerability leading to greater label softening to reduce overconfidence.
- The method uses pre-computed or on-the-fly adversarial robustness estimates, with on-the-fly providing better performance at higher computational cost.
- AR-AdaLS is extended to ensembles via 'AR-AdaLS of Ensemble', applying adaptive smoothing to each base model in the ensemble.
- The approach integrates adversarial robustness as a proxy for uncertainty, improving calibration and stability.
Experimental results
Research questions
- RQ1Is there a significant correlation between adversarial robustness and model calibration across different datasets and architectures?
- RQ2Can improving calibration be achieved by applying adaptive label smoothing based on adversarial robustness of training examples?
- RQ3How does the precision of adversarial robustness estimation affect the calibration performance of AR-AdaLS?
- RQ4Does AR-AdaLS improve calibration on distributionally shifted data compared to standard label smoothing and ensembling?
- RQ5Can AR-AdaLS further enhance calibration when applied to deep ensemble models?
Key findings
- Adversarially unrobust inputs are significantly more likely to be poorly calibrated and unstable, with higher ECE and prediction variance.
- On CIFAR-100, AR-AdaLS reduces ECE from 6.1 (vanilla) to 2.3 and cECE from 18.2 to 13.2 on corrupted data, outperforming standard label smoothing and temperature scaling.
- Using on-the-fly adversarial robustness improves calibration over pre-computed robustness, with cECE dropping to 13.2 vs. 14.2 in ablation studies.
- AR-AdaLS with 10 robustness subsets achieves stable performance, with minimal improvement beyond R=10, indicating robustness to subset count.
- AR-AdaLS reduces prediction variance across independent runs, improving model stability in practical deployments.
- When applied to ensembles, AR-AdaLS of Ensemble further improves calibration beyond standard ensembling, especially on shifted data.
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.