Papers › Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence

Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence

5 Jan 2024arXiv:2401.02718archive 2025-07-28

Stephen Obadinma, Xiaodan Zhu, Hongyu Guo

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

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.02718")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 4 ran · honoured contract; 7 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

phenetos/calibrationattack officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 11 ran; 4 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · honoured contract
7ran
3unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from phenetos/calibrationattack. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cuda_transfer phenetos/calibrationattack/train_models.py official repository ran no licence file found · pointer only · 1367aac1053a1fad · report
dense_to_onehot phenetos/calibrationattack/utils.py official repository ran no licence file found · pointer only · 176dfa1e026fb136 · report
ensure_numpy phenetos/calibrationattack/recalibration.py official repository ran · honoured contract no licence file found · pointer only · 2bd69793c2565f55 · report
get_aug phenetos/calibrationattack/get_data.py official repository ran no licence file found · pointer only · a829230c6819d6c9 · report
get_transform phenetos/calibrationattack/get_data.py official repository ran no licence file found · pointer only · b0af5000c1b303cf · report
get_transform_torchvision phenetos/calibrationattack/get_data.py official repository ran no licence file found · pointer only · de59e4240a700352 · report
len0 phenetos/calibrationattack/recalibration.py official repository ran fingerprinted no licence file found · pointer only · b30c11e674538e2f · report
meta_pseudo_gaussian_pert phenetos/calibrationattack/calibration_attack.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 4ca7ef6d76dc7319 · report
one_hot_encode_v2 phenetos/calibrationattack/utils.py official repository ran no licence file found · pointer only · 0817f8b0f831deaf · report
p_selection phenetos/calibrationattack/calibration_attack.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 053d874dd6c8872d · report
pseudo_gaussian_pert_rectangles phenetos/calibrationattack/calibration_attack.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · c7544861060c462d · report
get_model phenetos/calibrationattack/train_models.py official repository unverified no licence file found · pointer only · f71380bf77811194 · report
is_numpy_object phenetos/calibrationattack/recalibration.py official repository unverified no licence file found · pointer only · b6f12dce7894cb0e · report
one_hot_encode phenetos/calibrationattack/utils.py official repository unverified no licence file found · pointer only · 77933604fbca56e7 · report

Tasks

Decision Making

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections