你的AI生成图像检测器可以秘密实现SOTA精度,如果校准
Your AI-Generated Image Detector Can Secretly Achieve SOTA Accuracy, If Calibrated
AI总结:
本文提出基于贝叶斯决策理论的后处理校准框架,通过可学习标量修正提升AI生成图像检测的鲁棒性,无需重新训练。
摘要:
尽管在平衡数据集上进行训练,现有的AI生成图像检测器在测试时往往表现出系统偏差,经常将伪造图像误判为真实。我们假设这种行为源于伪造样本的分布偏移和训练过程中学习的隐含先验。具体来说,模型倾向于过拟合于表面特征,这些特征在不同生成方法之间泛化能力较差,导致在面对测试时的分布偏移时决策阈值错位。为了解决这个问题,我们提出了一种基于贝叶斯决策理论的理论支撑的后处理校准框架。特别是,我们引入了一个可学习的标量修正,用于修正模型的logits,该修正在目标分布的小验证集上进行优化,同时保持骨干网络冻结。这种参数调整补偿了模型输出中的分布偏移,即使不需要真实标签,也能重新对齐决策边界。在具有挑战性的基准测试中,我们的方法显著提高了鲁棒性,而无需重新训练,提供了一种轻量且原理明确的解决方案,用于在开放世界中可靠和适应的AI生成图像检测。代码可在https://github.com/muliyangm/AIGI-Det-Calib获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。