Color Matters: Demosaicing-Guided Color Correlation Training for Generalizable AI-Generated Image Detection
Nan Zhong, Yiran Xu, Mian Zou
TL;DR
This work tackles the generalization gap in AI-generated image detectors by exploiting camera imaging pipeline cues. It introduces DCCT, a demosaicing-guided, self-supervised pretraining framework that learns stable color-correlation features from high-frequency residuals, formalized with a bound on the 1-Wasserstein distance between photographic and AI-generated distributions. By freezing dual conditional networks and training a lightweight classifier on their outputs, DCCT achieves state-of-the-art generalization across more than 20 unseen generators and demonstrates robustness to benign post-processing. The approach highlights the value of camera-aware pretraining for reliable detection in the face of rapidly evolving generative models and lays groundwork for extending to diverse sensor designs.
Abstract
As realistic AI-generated images threaten digital authenticity, we address the generalization failure of generative artifact-based detectors by exploiting the intrinsic properties of the camera imaging pipeline. Concretely, we investigate color correlations induced by the color filter array (CFA) and demosaicing, and propose a Demosaicing-guided Color Correlation Training (DCCT) framework for AI-generated image detection. By simulating the CFA sampling pattern, we decompose each color image into a single-channel input (as the condition) and the remaining two channels as the ground-truth targets (for prediction). A self-supervised U-Net is trained to model the conditional distribution of the missing channels from the given one, parameterized via a mixture of logistic functions. Our theoretical analysis reveals that DCCT targets a provable distributional difference in color-correlation features between photographic and AI-generated images. By leveraging these distinct features to construct a binary classifier, DCCT achieves state-of-the-art generalization and robustness, significantly outperforming prior methods across over 20 unseen generators.
