Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence
Stephen Obadinma, Xiaodan Zhu, Hongyu Guo
TL;DR
This paper investigates calibration attacks that target model confidence without flipping predictions, revealing a new class of adversarial threats. It formalizes four attack forms (underconfidence, overconfidence, maximum miscalibration, random confidence) and evaluates them under black-box and white-box settings on CNNs and Vision Transformers, showing substantial miscalibration with minimal accuracy loss. The authors also explore defenses, introducing Calibration Attack Adversarial Training (CAAT) and Compression Scaling (CS), and assess a broad set of recalibration methods using $ECE$ and $KS$ metrics, noting that the maximum miscalibration attack can theoretically reach an upper bound of $1 - q/K$. Results demonstrate that calibration attacks can induce severe miscalibration across architectures and data, while current defenses and recalibration strategies show significant limitations, underscoring the need for robust countermeasures in safety-critical deployments.
Abstract
In this work, we highlight and perform a comprehensive study on calibration attacks, a form of adversarial attacks that aim to trap victim models to be heavily miscalibrated without altering their predicted labels, hence endangering the trustworthiness of the models and follow-up decision making based on their confidence. We propose four typical forms of calibration attacks: underconfidence, overconfidence, maximum miscalibration, and random confidence attacks, conducted in both black-box and white-box setups. We demonstrate that the attacks are highly effective on both convolutional and attention-based models: with a small number of queries, they seriously skew confidence without changing the predictive performance. Given the potential danger, we further investigate the effectiveness of a wide range of adversarial defence and recalibration methods, including our proposed defences specifically designed for calibration attacks to mitigate the harm. From the ECE and KS scores, we observe that there are still significant limitations in handling calibration attacks. To the best of our knowledge, this is the first dedicated study that provides a comprehensive investigation on calibration-focused attacks. We hope this study helps attract more attention to these types of attacks and hence hamper their potential serious damages. To this end, this work also provides detailed analyses to understand the characteristics of the attacks. Our code is available at https://github.com/PhenetOs/CalibrationAttack
