FAMSeC: A Few-shot-sample-based General AI-generated Image Detection Method

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xu, Juncong, Yang, Yang, Fang, Han, Liu, Honggu, Zhang, Weiming
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912075191681024
author Xu, Juncong
Yang, Yang
Fang, Han
Liu, Honggu
Zhang, Weiming
author_facet Xu, Juncong
Yang, Yang
Fang, Han
Liu, Honggu
Zhang, Weiming
contents The explosive growth of generative AI has saturated the internet with AI-generated images, raising security concerns and increasing the need for reliable detection methods. The primary requirement for such detection is generalizability, typically achieved by training on numerous fake images from various models. However, practical limitations, such as closed-source models and restricted access, often result in limited training samples. Therefore, training a general detector with few-shot samples is essential for modern detection mechanisms. To address this challenge, we propose FAMSeC, a general AI-generated image detection method based on LoRA-based Forgery Awareness Module and Semantic feature-guided Contrastive learning strategy. To effectively learn from limited samples and prevent overfitting, we developed a Forgery Awareness Module (FAM) based on LoRA, maintaining the generalization of pre-trained features. Additionally, to cooperate with FAM, we designed a Semantic feature-guided Contrastive learning strategy (SeC), making the FAM focus more on the differences between real/fake image than on the features of the samples themselves. Experiments show that FAMSeC outperforms state-of-the-art method, enhancing classification accuracy by 14.55% with just 0.56% of the training samples.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13156
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FAMSeC: A Few-shot-sample-based General AI-generated Image Detection Method
Xu, Juncong
Yang, Yang
Fang, Han
Liu, Honggu
Zhang, Weiming
Computer Vision and Pattern Recognition
The explosive growth of generative AI has saturated the internet with AI-generated images, raising security concerns and increasing the need for reliable detection methods. The primary requirement for such detection is generalizability, typically achieved by training on numerous fake images from various models. However, practical limitations, such as closed-source models and restricted access, often result in limited training samples. Therefore, training a general detector with few-shot samples is essential for modern detection mechanisms. To address this challenge, we propose FAMSeC, a general AI-generated image detection method based on LoRA-based Forgery Awareness Module and Semantic feature-guided Contrastive learning strategy. To effectively learn from limited samples and prevent overfitting, we developed a Forgery Awareness Module (FAM) based on LoRA, maintaining the generalization of pre-trained features. Additionally, to cooperate with FAM, we designed a Semantic feature-guided Contrastive learning strategy (SeC), making the FAM focus more on the differences between real/fake image than on the features of the samples themselves. Experiments show that FAMSeC outperforms state-of-the-art method, enhancing classification accuracy by 14.55% with just 0.56% of the training samples.
title FAMSeC: A Few-shot-sample-based General AI-generated Image Detection Method
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.13156