Relative Patch Response Learning for Generalizable AI-Generated Image Detection
Tianyu Wang, Ouxiang Li, Yanbin Hao, Zhenhua Tang, Shuo Wang
Abstract
Generative models can now synthesize highly realistic images, simultaneously increasing the risks of misinformation and visual forgery. Therefore, detecting AI-generated images becomes more essential, and a reliable detector must generalize to unseen generators and stay robust to unseen perturbations in the wild. Existing detectors are typically trained on either independently collected real and generated images or aligned real-generated pairs designed to mitigate content bias. Building on aligned pairs, recent methods form a mixed view by replacing some patches of the real image with their generated counterparts. However, we find that self-attention lets real and generated patches interact, so the feature of each patch no longer reflects its own source alone. This contextual shift makes a per-patch source label an imprecise target. To this end, we propose Relative Patch Response Learning (PRL). Instead of labeling each patch, PRL compares the same patch across two mixed views of an aligned pair and learns from its patch response, the change of its score between the views. (i) To give precise supervision under the contextual shift, a relative response objective measures the responses of source-changed patches against those of source-unchanged patches, which respond to the shift alone. (ii) To provide a reliable reference for the shift, a reference coherence objective keeps each group of source-unchanged patches moving as a whole. (iii) Since the two views contain different amounts of generated content, an area ranking objective asks the view with the larger generated area to have a higher mean patch score. Extensive experiments demonstrate the superior performance of PRL, which surpasses the best prior methods by 4.3% and 5.9% in average balanced accuracy across eight standard and three in-the-wild benchmarks, respectively.
Create a lesson
Metadata
- Comments
- 19 pages, 6 figures, 13 tables
Related papers
Out-of-distribution AI-generated image detection with zero-phase deconvolution for residual whitening
Shared title terminologycs.CVYusuf Yigit Pilavcı, Antoine Mallet, Vincent Itier et al.
EvoKnow: Continual Knowledge Evolution for AI-Generated Image Detection
Shared title terminologycs.CVZhiheng Peng, Wenwei Jin, Yangshi Ge et al.
Spe3DUp: Faithful Trajectory Distillation for Fast Image-to-3D Generation
Shared title terminologycs.CVLiangchao Xu, Jiaye Fu, Youtian Lin et al.
An Image Detectability Field as a Viewpoint Utility for 2D-3D Localization in Sparse Maps
Shared title terminologycs.CVHan Sun, Jun Li, Christy Jie Liang
Detectable by Design: Learning a Continuous 3D Saliency Field from 2D Detector Responses
Shared title terminologycs.CVHan Sun, Jun Li, Christy Jie Liang
Hijacking 3D Generation: Targeted Adversarial Attacks against Image-to-3D Models via Prefix Trajectory Alignment
Shared title terminologycs.CVYilong Yang, Jiale Teng, Yule Liu et al.