Forensic Twins: Self-Supervised Residual Learning for AI-Generated Image Forensics
Javier Muñoz-Haro, Ruben Tolosana, Ruben Vera-Rodriguez, Aythami Morales, Julian Fierrez
Abstract
Detectors of AI-generated images are typically trained using samples from specific Generative AI architectures and degrade as soon as a new architecture emerges. Recent approaches have explored self-supervised pre-training as an alternative solution, yet standard frameworks work against the forensic task, since their augmentations overwrite the micro-statistics of image formation. This paper introduces Forensic Twins, a Self-Supervised Residual Learning (SSRL) framework whose pretext task removes shared image content between views. Each image is mapped through a forensic residual extractor, from which two spatially disjoint crops are drawn. Sharing no pixel, the two views leave the redundancy-reduction objective with a predominantly content-independent common signal, the stationary fingerprint of the image acquisition pipeline. The encoder is exclusively trained on real images; no AI-generated image is used to learn the representation. Experiments show competitive results in zero-shot, few-shot, and linear probing scenarios, reaching 97.21% AUC across 26 unseen AI generators, including GANs, diffusion models, and commercial systems. We also provide insightful analysis on the learned representation regarding unsupervised clustering on different AI generators and its forensic properties. Code, weights and exact splits are publicly available.
Create a lesson
Metadata
- Comments
- 9 pages + Supp. Material. 3 figures
Related papers
Scalable In-Domain Self-Supervised Foundation Model for Dense Representation Transfer in High-Resolution Plant Imaging
Shared title terminologycs.CVJunlin Guo, Sharmin Majumder, Isaac Lyngaas et al.
Reading, Not Adapting: Unlocking Frozen Visual Knowledge for AI-Generated Image Detection
Shared title terminologycs.CVYuncheng Guo, Ying Dong, Xiaodong Gu
Variation-aware Temporal Correspondence for Self-Supervised Video Representation Learning
Shared title terminologycs.CVYang Liu, Qianqian Xu, Peisong Wen et al.
GeoCAM: Self-Supervised Sonar-Optical Representation Learning via Geographic Overlap Supervision
Shared title terminologycs.CVFadi Abdeladhim Zidi, Andrea De Salve, Giuseppe Celeste et al.
Self-Supervised Perceptually Interpretable Monocular Depth Estimation
Shared title terminologycs.CVZain Ul Abidin, George Dimas, Dimitris K. Iakovidis
FARE: Forensic Acceptance Region Estimation for Catching Bait-and-Switch Image Generators
Shared title terminologycs.CVKai Yao, Marc Juarez