Your AI-Generated Image Detector Can Secretly Achieve SOTA Accuracy, If Calibrated

Muli Yang, Gabriel James Goenawan, Henan Wang, Huaiyuan Qin, Chenghao Xu +5 more
2/2/2026
cs.CVcs.AIcs.LG

Official code: muliyangm/AIGI-Det-Calib (14 stars, last commit 2025-12-20).

Abstract

Despite being trained on balanced datasets, existing AI-generated image detectors often exhibit systematic bias at test time, frequently misclassifying fake images as real. We hypothesize that this behavior stems from distributional shift in fake samples and implicit priors learned during training. Specifically, models tend to overfit to superficial artifacts that do not generalize well across different generation methods, leading to a misaligned decision threshold when faced with test-time distribution shift. To address this, we propose a theoretically grounded post-hoc calibration framework based on Bayesian decision theory. In particular, we introduce a learnable scalar correction to the model's logits, optimized on a small validation set from the target distribution while keeping the backbone frozen. This parametric adjustment compensates for distributional shift in model output, realigning the decision boundary even without requiring ground-truth labels. Experiments on challenging benchmarks show that our approach significantly improves robustness without retraining, offering a lightweight and principled solution for reliable and adaptive AI-generated image detection in the open world. Code is available at https://github.com/muliyangm/AIGI-Det-Calib.

View on arXivView PDF

Code Implementations(1)

Code for AIGI-Det-Calib [AAAI 2026]

140PythonNov 8, 202510 months ago
ai-generated-images

Similar Papers

Cite this paper

@article{yang2026your,
  title  = {Your AI-Generated Image Detector Can Secretly Achieve SOTA Accuracy, If Calibrated},
  author = {Muli Yang and Gabriel James Goenawan and Henan Wang and Huaiyuan Qin and Chenghao Xu and Yanhua Yang and Fen Fang and Ying Sun and Joo-Hwee Lim and Hongyuan Zhu},
  year   = {2026},
  eprint = {2602.01973},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.01973v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.01973.svg)](https://codeofpaper.com/paper/2602.01973)

Discussion