DeeCLIP: A Robust and Generalizable Transformer-Based Framework for Detecting AI-Generated Images
Mamadou Keita, Wassim Hamidouche, Hessen Bougueffa Eutamene, Abdelmalik Taleb-Ahmed, Abdenour Hadid
TL;DR
DeeCLIP tackles the brittleness of AI-generated image detectors when facing unseen generators and real-world degradations. It introduces a robust transformer-based framework that fuses high- and low-level features via DeeFuser, fine-tunes the CLIP-ViT backbone with LoRA, and uses triplet loss to sculpt a discriminative embedding space. Empirically, it achieves 89.00% mean accuracy across 19 test subsets spanning GAN and diffusion models, with strong robustness to blur and compression and 78.99% accuracy on a completely new dataset, surpassing prior methods while using fewer trainable parameters. The approach supports zero-shot adaptation and practical deployment due to its parameter-efficient design and open-source availability.
Abstract
This paper introduces DeeCLIP, a novel framework for detecting AI-generated images using CLIP-ViT and fusion learning. Despite significant advancements in generative models capable of creating highly photorealistic images, existing detection methods often struggle to generalize across different models and are highly sensitive to minor perturbations. To address these challenges, DeeCLIP incorporates DeeFuser, a fusion module that combines high-level and low-level features, improving robustness against degradations such as compression and blurring. Additionally, we apply triplet loss to refine the embedding space, enhancing the model's ability to distinguish between real and synthetic content. To further enable lightweight adaptation while preserving pre-trained knowledge, we adopt parameter-efficient fine-tuning using low-rank adaptation (LoRA) within the CLIP-ViT backbone. This approach supports effective zero-shot learning without sacrificing generalization. Trained exclusively on 4-class ProGAN data, DeeCLIP achieves an average accuracy of 89.00% on 19 test subsets composed of generative adversarial network (GAN) and diffusion models. Despite having fewer trainable parameters, DeeCLIP outperforms existing methods, demonstrating superior robustness against various generative models and real-world distortions. The code is publicly available at https://github.com/Mamadou-Keita/DeeCLIP for research purposes.
