Skip to main content
QUICK REVIEW

[Paper Review] Generalizable Synthetic Image Detection via Language-guided Contrastive Learning

Haiwei Wu, Jiantao Zhou|arXiv (Cornell University)|May 23, 2023
Digital Media Forensic DetectionComputer Science7 citations
TL;DR

This paper proposes LASTED, a language-guided contrastive learning framework for generalizable synthetic image detection. By augmenting images with semantic textual labels ('Real Photo', 'Synthetic Painting', etc.) and formulating detection as an identification task, LASTED achieves state-of-the-art generalization, outperforming prior methods by +22.66% accuracy and +15.24% AUC on unseen generation models.

ABSTRACT

The heightened realism of AI-generated images can be attributed to the rapid development of synthetic models, including generative adversarial networks (GANs) and diffusion models (DMs). The malevolent use of synthetic images, such as the dissemination of fake news or the creation of fake profiles, however, raises significant concerns regarding the authenticity of images. Though many forensic algorithms have been developed for detecting synthetic images, their performance, especially the generalization capability, is still far from being adequate to cope with the increasing number of synthetic models. In this work, we propose a simple yet very effective synthetic image detection method via a language-guided contrastive learning. Specifically, we augment the training images with carefully-designed textual labels, enabling us to use a joint visual-language contrastive supervision for learning a forensic feature space with better generalization. It is shown that our proposed LanguAge-guided SynThEsis Detection (LASTED) model achieves much improved generalizability to unseen image generation models and delivers promising performance that far exceeds state-of-the-art competitors over four datasets. The code is available at https://github.com/HighwayWu/LASTED.

Motivation & Objective

  • To address the critical challenge of detecting increasingly realistic AI-generated images, especially across diverse and unseen synthetic models.
  • To improve detector generalization beyond existing classification-based approaches that fail on out-of-distribution generation models.
  • To develop a forensic detection method that leverages language supervision and contrastive learning for more robust, discriminative feature learning.
  • To reframe synthetic image detection as an identification problem rather than a multi-class classification task, enhancing performance on limited data.

Proposed method

  • Augment training images with carefully designed textual labels: 'Real Photo', 'Real Painting', 'Synthetic Photo', 'Synthetic Painting' to create image-text pairs.
  • Train a joint image-text encoder using contrastive learning to align matching image-text pairs and disentangle semantic concepts.
  • Formulate detection as an identification task—determining whether images belong to the same category (real or synthetic)—rather than predicting specific classes.
  • Replace the final linear classifier used in prior works with a feature extraction head optimized for discriminative representation learning.
  • Use a contrastive loss to maximize similarity between positive image-text pairs and minimize it for negative pairs, enabling robust feature learning.
  • Leverage CLIP-inspired architecture with dual encoders for images and text, enabling zero-shot generalization to unseen models.

Experimental results

Research questions

  • RQ1Can language-guided contrastive learning improve the generalization of synthetic image detectors across diverse, unseen generation models?
  • RQ2Does reformulating synthetic image detection as an identification task instead of multi-class classification lead to better performance and robustness?
  • RQ3Can carefully designed textual labels serve as effective supervisory signals for forensic feature learning when real images lack natural language annotations?
  • RQ4How does LASTED compare to state-of-the-art methods in terms of accuracy and AUC on unseen GAN and diffusion model generations?
  • RQ5To what extent does the proposed method generalize to unseen image types, such as medical or satellite images?

Key findings

  • LASTED achieves a +22.66% accuracy gain and +15.24% AUC gain over state-of-the-art competitors on unseen image generation models.
  • The model maintains high average AP of 97.5% across 10 diverse testing cases, including GANs, DMs, and deepfake models.
  • LASTED significantly outperforms existing methods on SAN and Deepfake datasets, where prior detectors show poor generalization.
  • The identification-based formulation enables the model to extract highly discriminative features even from limited training data.
  • The use of language supervision via textual labels enhances semantic decoupling and improves optimization of forensic representations.
  • The method generalizes well across diverse image types, though performance may decline on unseen domains like medical or satellite imagery without additional training data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.