NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AntifakePrompt: Prompt-Tuned Vision-Language Models are Fake Image Detectors

You-Ming Chang, Chen Yeh, Wei-Chen Chiu, Ning Yu

TL;DR

This paper introduces AntifakePrompt, a novel deepfake detection method that leverages Vision-Language Models (VLMs) and prompt tuning. By framing deepfake detection as a visual question answering task, AntifakePrompt achieves significantly improved accuracy on unseen generative models with a fraction of the training data and parameters compared to existing methods.

What Problem Does This Paper Address?

The rapid advancement of deep generative models has led to the creation of highly realistic "deepfakes," posing significant threats related to misinformation, copyright infringement, and erosion of trust. While deepfake detection techniques exist, they often struggle with generalizability, performing poorly on images generated by models they weren't trained on. This is particularly challenging with the emergence of new, sophisticated generative models like diffusion-based ones. The authors aim to overcome this limitation by developing a more robust and generalizable deepfake detector.

Methods

The core innovation of AntifakePrompt lies in its use of pre-trained Vision-Language Models (VLMs), specifically InstructBLIP, and a technique called "prompt tuning."

  • Vision-Language Models (VLMs): VLMs, which combine image understanding with language processing capabilities, are leveraged for their inherent zero-shot learning abilities and generalizability.
  • Visual Question Answering (VQA) Formulation: Deepfake detection is reframed as a VQA problem. The VLM is prompted with an image and a question like "Is this photo real?".
  • Prompt Tuning: Instead of fine-tuning the entire VLM, AntifakePrompt uses prompt tuning. This involves optimizing a small set of "soft prompt" embeddings (essentially, learnable words) that are prepended to the VLM's input. This allows the model to better understand the specific task of deepfake detection without requiring extensive retraining. The authors specifically tune a pseudo-word within the prompt to elicit a "Yes" or "No" answer.
  • Efficiency: The method freezes most of the VLM's parameters, only optimizing the soft prompt embeddings. This drastically reduces the number of trainable parameters (4864) compared to traditional fine-tuning approaches.

Datasets

The authors curated a comprehensive set of datasets for their experiments:

  • Real Datasets: Microsoft COCO (90K images for training) and Flickr30k (3K images for testing).
  • Fake Datasets: Images generated from 20 different generative models and 3 attack scenarios. These include:
  • Text-to-Image: SD2, SD3, SDXL, DeepFloyd IF, DALLE-2, DALLE-3, Playground v2.5, SGXL, GLIDE, DiffusionDB.
  • Image Stylization: ControlNet.
  • Image Inpainting: LaMa, SD2-Inpainting.
  • Super Resolution: LIIF, SD2-SuperResolution.
  • Face Swap: DeeperForensics, DFDC, FaceForensics++.
  • Image Attacks: Adversarial, Backdoor, Data Poisoning.

The paper emphasizes the creation of these diverse datasets as a valuable benchmark for future deepfake detection research.

Key Insights and Ideas

  • VLMs as Powerful Detectors: The study demonstrates that VLMs, when properly prompted, can be highly effective deepfake detectors, outperforming traditional methods, especially on unseen data.
  • Prompt Tuning's Efficiency: Prompt tuning offers a remarkably efficient way to adapt powerful VLMs for specific tasks like deepfake detection, requiring minimal trainable parameters and data.
  • Generalizability is Key: The authors highlight that traditional detectors, often trained on specific GAN artifacts, fail to generalize to newer diffusion-based models. AntifakePrompt's VLM-based approach inherently addresses this.
  • The Power of the "Right" Question: Framing the problem as a VQA task and carefully tuning the prompt (even with a single pseudo-word) significantly boosts performance, suggesting that how the model is "asked" is crucial.

Key Results

  • Significant Accuracy Improvement: AntifakePrompt achieved an average accuracy of 92.11% over unseen domains, a substantial improvement from the baseline of 71.06%.
  • Superior Performance on Held-Out Data: The method consistently outperformed recent baseline methods on datasets generated by unseen generative models.
  • Data and Parameter Efficiency: AntifakePrompt requires significantly less training data and trainable parameters compared to existing methods. For instance, it uses only 4864 trainable parameters, a stark contrast to millions used by other approaches.
  • Robustness to Attacks: The model showed strong performance even against adversarial, backdoor, and data poisoning attacks.

Limitations and Future Work

  • LaMa Dataset Performance: The authors noted a relatively lower performance on the LaMa inpainting dataset. While they showed improvement by including LaMa-generated images in training, this came at the cost of slightly reduced accuracy on real images.
  • Future Work: The paper suggests that the curated datasets can serve as benchmarks for future research. The success of AntifakePrompt also opens avenues for exploring other VLMs and prompt tuning strategies for deepfake detection.

Summary updated

BibTeX
@inproceedings{chang2025antifakeprompt,
  author = {You-Ming Chang and Chen Yeh and Wei-Chen Chiu and Ning Yu},
  title = {{AntifakePrompt: Prompt-Tuned Vision-Language Models are Fake Image Detectors}},
  booktitle = {BuildingTrust @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=TvSkPlDTVw},
}
Figure