FiSeR: Fine-Grained Source Representations for Cross-Domain AI Image Detection

Shan Zhang, Yongxin He, Mingming Zhang, Huiwen Tian, Lei Ma
5/30/2026
cs.CV
contrastive-ssl

Official code: heyongxin233/FiSeR (5 stars, Python, MIT, last commit 2026-07-20).

Abstract

Real-world synthetic image detectors often generalize poorly under domain shift despite strong in-domain performance. Using unsupervised UMAP projections, we find that natural and synthetic features remain partially separable on unseen datasets, yet performance still drops, suggesting that the classification head overfits to training-domain artifacts.

Show full abstract

Therefore, the key is to learn more transferable representations so that the decision criterion is more stable and robust to domain shifts. Based on the structural fact that synthetic images are produced by diverse generators, we propose a hierarchical contrastive learning framework that improves the separability between natural and synthetic images while preserving generator identity information. It jointly optimizes (i) a coarse contrastive objective between natural and synthetic images and (ii) a fine contrastive objective among synthetic images using generator identities. Trained on WildFake, our method achieves an average AUROC gain of +10.22 on cross-domain evaluation over Chameleon, AIGIBench, Community Forensics, and GenImage under the same settings as the strong baseline DIRE. For few-shot adaptation, we freeze the backbone and fit an SVM head on 10 labeled samples per class, improving AUROC by +10.64 on AIGIBench and +17.41 on Chameleon, averaged over 12 widely used detectors. Our code is publicly available at: https://github.com/heyongxin233/FiSeR.

View on arXivView PDF

Code Implementations(1)

heyongxin233/FiSeROfficial100%
MIT

[ICML 2026] FiSeR: Fine-Grained Source Representations for Cross-Domain AI Image Detection

50Python, ShellMay 8, 20264 months agoMIT
ai-image-detectionicml2026

Similar Papers

Cite this paper

@article{zhang2026fiser,
  title  = {FiSeR: Fine-Grained Source Representations for Cross-Domain AI Image Detection},
  author = {Shan Zhang and Yongxin He and Mingming Zhang and Huiwen Tian and Lei Ma},
  year   = {2026},
  eprint = {2606.00606},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00606v2}
}

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/2606.00606.svg)](https://codeofpaper.com/paper/2606.00606)

Discussion