AdaptPrompt: Parameter-Efficient Adaptation of VLMs for Generalizable Deepfake Detection
Yichen Jiang, Mohammed Talha Alam, Sohail Ahmed Khan, Duc-Tien Dang-Nguyen, Fakhri Karray
TL;DR
The paper addresses the generalization gap in deepfake detection across unseen generators by introducing Diff-Gen, a diffusion-based dataset, and AdaptPrompt, a CLIP-based, parameter-efficient detector that jointly tunes visual adapters and textual prompts while keeping the backbone frozen. A key insight is that pruning the final CLIP transformer block preserves high-frequency artifacts, enabling effective detection of diffusion-model fingerprints. Across 25 test sets spanning GANs, diffusion models, and commercial tools, AdaptPrompt, especially the v2 variant, achieves state-of-the-art performance with minimal trainable parameters and demonstrates strong few-shot generalization and source attribution. The work provides a robust, scalable approach for generalizable deepfake detection and highlights diffusion-based training as a superior supervision signal for universal forensic models.
Abstract
Recent advances in image generation have led to the widespread availability of highly realistic synthetic media, increasing the difficulty of reliable deepfake detection. A key challenge is generalization, as detectors trained on a narrow class of generators often fail when confronted with unseen models. In this work, we address the pressing need for generalizable detection by leveraging large vision-language models, specifically CLIP, to identify synthetic content across diverse generative techniques. First, we introduce Diff-Gen, a large-scale benchmark dataset comprising 100k diffusion-generated fakes that capture broad spectral artifacts unlike traditional GAN datasets. Models trained on Diff-Gen demonstrate stronger cross-domain generalization, particularly on previously unseen image generators. Second, we propose AdaptPrompt, a parameter-efficient transfer learning framework that jointly learns task-specific textual prompts and visual adapters while keeping the CLIP backbone frozen. We further show via layer ablation that pruning the final transformer block of the vision encoder enhances the retention of high-frequency generative artifacts, significantly boosting detection accuracy. Our evaluation spans 25 challenging test sets, covering synthetic content generated by GANs, diffusion models, and commercial tools, establishing a new state-of-the-art in both standard and cross-domain scenarios. We further demonstrate the framework's versatility through few-shot generalization (using as few as 320 images) and source attribution, enabling the precise identification of generator architectures in closed-set settings.
