Combating Pattern and Content Bias: Adversarial Feature Learning for Generalized AI-Generated Image Detection

Haifeng Zhang, Qinghui He, Xiuli Bi, Bo Liu · 2026

Read Combating Pattern and Content Bias: Adversarial Feature Learning for Generalized AI-Generated Image Detection by Haifeng Zhang, Qinghui He, Xiuli Bi, Bo Liu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-12353.txt.

Introduction

Zhang and five colleagues propose adversarial feature learning in many dimensions to generalize AI-generated image detection across models. Training data push detectors toward specific generative patterns and content instead of traits shared across generators, a bias the framework counters with an adversarial branch between real-fake discrimination and bias learning. By curbing pattern and content bias it captures basic real-versus-generated differences. It beats leading methods by 10.89 percent in accuracy and 8.57 percent in average precision, and tops 80 percent accuracy even when trained on only 320 images.

Catalog record

CREATORHaifeng Zhang, Qinghui He, Xiuli Bi, Bo Liu
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE61054
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.12353

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Combating Pattern and Content Bias: Adversarial Feature Learning for Generalized AI-Generated Image Detection Thanks: This work was supported in part by the National Science Foundation of China under Grants 62376064, 62536002, 62561160098 and 62576060, and by the National Natural Science Foundation of China Joint Key Project under Grants U24B20173, and by the Chongqing Graduate Research and Innovation Project under Grant CYB25261. (Corresponding author: Bo Liu and Bin Xiao.) Thanks: Haifeng Zhang and Qinghui He are with the Chongqing Key Laboratory of Image Cognition, School of Computer Science and Technology, Chongqing University of Posts and Telecommunications, Chongqing 400065, China (e-mail: [email protected]; [email protected]). Thanks: Xiuli Bi and Bo Liu are with the School of Artificial Intelligence, Chongging Key Laboratory of Image Cognition, Chongging University of Posts and Telecommunications, Chongqing 400065, China (email: [email protected]; [email protected]). Thanks: Chi-Man Pun is with the Faculty of Science and Technology of the University of Macau, Macau 999078, China (e-mail: [email protected]). Thanks: Bin Xiao is with the Chongqing Key Laboratory of Image Cognition, School of Artificial Intelligence, Chongqing University of Posts and Telecommunications, Chongqing 400065, China and also with the Jinan Inspur Data Technology Co., Ltd., Jinan 250101, China (e-mail: [email protected]). Haifeng Zhang, Qinghui He, Xiuli Bi, Bo Liu Abstract In recent years, the rapid development of generative artificial intelligence technology has significantly lowered the barrier to creating high-quality fake images, posing a serious challenge to information authenticity and credibility. Existing generated image detection methods typically enhance generalization through model architecture or network design. However, their generalization performance remains susceptible to data bias, as the training data may drive models to fit specific generative patterns and content rather than the common features shared by images from different generative models (asymmetric bias learning). To address this issue, we propose a Multi-dimensional Adversarial Feature Learning (MAFL) framework. The framework adopts a pretrained multimodal image encoder as the feature extraction backbone, constructs a real–fake feature learning network, and designs an adversarial bias-learning branch equipped with a multi-dimensional adversarial loss, forming an adversarial training mechanism between authenticity-discriminative feature learning and bias feature learning. By suppressing generation-pattern and content biases, MAFL guides the model to focus on the generative features shared across different generative models, thereby effectively capturing the fundamental differences between real and generated images, enhancing cross-model generalization, and substantially reducing the reliance on large-scale training data. Through extensive experimental validation, our method outperforms existing state-of-the-art approaches by 10.89% in accuracy and 8.57% in Average Precision (AP). Notably, even when trained with only 320 images, it can still achieve over 80% detection accuracy on public datasets. I Introduction The rapid development of generative artificial intelligence has significantly lowered the barrier to creating high-quality generated images [ 1 ] , [ 2 ] . With the continuous advancement of deep generative models, AI-generated image technology has garnered widespread attention [ 3 ] , [ 4 ] . Even individuals without professional technical knowledge can easily generate highly realistic images. While this presents tremendous opportunities for fields such as visual arts, it also poses significant risks, including the spread of misinformation [ 5 ] , [ 6 ] . Therefore, there is an urgent need to develop AI-generated image detection frameworks capable of effectively distinguishing between real and generated images. Earlier detection methods [ 7 , 8 , 9 , 10 ] primarily focused on identifying specific artifacts left by generative models in the spatial or frequency domains, such as grid artifacts introduced during network upsampling. These methods achieve strong performance when detecting images generated by traditional GANs or early diffusion models, but these methods exhibit significant performance degradation when confronted with images produced by recently popular generative models that belong to different model families from those used during training. Meanwhile, diffusion-reconstruction-based detection methods [ 11 , 12 ] demonstrate high accuracy in detecting diffusion-generated images, yet similarly suffer from notable performance drops when applied to GAN-generated images. As deep generative models continue to rapidly evolve, the core challenge faced by current generative image detectors has increasingly shifted toward generalization ability [ 13 , 14 ] , especially when dealing with generative models unseen during training. Inspired by the substantial improvements in generalization performance brought by large-scale pretrained multimodal models in image classification tasks, recent studies [ 15 ] , [ 16 ] , [ 3 ] , [ 17 ] have begun leveraging such pretrained multimodal models for generative image detection, achieving better generalization than traditional approaches. However, these methods remain fundamentally data-driven. Given the high diversity in generative patterns and content within generative image detection, the training data itself plays a crucial role in determining generalization ability. Nonetheless, existing approaches tend to focus on optimizing model architectures or exploring different image representation domains in hopes of capturing more general and fine-grained discriminative features, while often overlooking the potential generalization limitations introduced by the training data. Through an in-depth analysis of the above approaches, we identify a common generalization bottleneck induced by the training data. From the perspectives of generative patterns and image content, this limitation can be primarily attributed to two aspects: (1) Generative pattern bias: Due to differences in training data, internal network architectures, and generative mechanisms, different generative models typically exhibit distinctive generative artifacts and inherent stylistic tendencies, such as artistic, cinematic, or photorealistic styles. During detector training, the limited diversity of generative models in the training set often causes the detector to over-rely on the specific generative patterns associated with the seen models as primary decision cues. As a result, the detector may fail to correctly classify images generated by models with different generative patterns. (2) Content bias: Instead of learning the fundamental generative characteristics that distinguish real images from generated ones, detectors tend to exploit simpler but less generalizable features—such as semantic content—as shortcuts for classification, which leads to erroneous predictions. For example, when a real image contains content that frequently appears in generated images within the training set, the detector may incorrectly classify it as a generated image. We collectively refer to these phenomena as asymmetric bias learning. As shown in Fig. 1 (a)-(b), this problem severely undermines the generalization ability of existing generated image detection models. Fig. 1: (Color best viewed.) This illustration shows the problems of traditional methods under the asymmetric bias learning phenomenon and our proposed solution. (a) Traditional detectors (e.g., CLIP + classifier) tend to over-rely on the specific generative patterns of particular generative models when performing real/fake classification. (b) Such reliance on specific generative patterns makes the model prone to generalization failure when encountering unseen generative patterns. (c)–(e) MAFL introduces an adversarial mechanism between the real/fake classification task and the specific-pattern classification task, guiding the model to extract common generative features that characterize different generative models. These features are free from model-specific characteristics, thereby enabling stronger generalization when facing unseen generative models. To correct this undesirable behavior, we enforce the model to learn the common features shared by images from different generative models—features that transcend specific patterns and content and are crucial for distinguishing between real and generated images. As a concrete implementation of this concept, we introduce a novel approach called the MAFL. This framework leverages an adversarial training mechanism to prevent the model from overfitting to generative patterns and content,

Read the complete text