Leveraging Hierarchical Image-Text Misalignment for Universal Fake Image Detection

Daichi Zhang, Tong Zhang, Jianmin Bao, Shiming Ge, Sabine SüsstrunkarXiv 2025 · DOI

Abstract

The rapid evolution of generative models has made the detection of AI-generated content a critical challenge. Traditional forensic methods often rely on visual artifacts specific to certain architectures, which limits their generalization to unseen models. This paper introduces ITEM (Hierarchical Image-Text Misalignment), a novel detection framework that leverages the joint vision-language space of CLIP. By measuring semantic misalignment between an image and its textual description at both global and local levels, ITEM achieves superior generalization across diverse generative paradigms (GANs, Diffusion, Deepfakes) and demonstrates remarkable robustness against common image perturbations.

Introduction

Generative AI has reached a level of sophistication where visual artifacts are increasingly difficult for humans and traditional detectors to identify. Most current forensic tools focus on low-level pixel anomalies or frequency-domain fingerprints. However, these features are often tied to specific generator architectures, such as the upsampling layers in GANs. Consequently, when a new model is released, these detectors often fail because they have overfitted to the "fingerprints" of older models.

We propose a shift from visual-only detection to a multi-modal approach. Our key observation is that while fake images may appear visually plausible, they often exhibit semantic misalignment with their corresponding textual descriptions. For instance, a GAN might generate a bicycle with a nonsensical frame structure, or a Diffusion model might omit subtle contextual details mentioned in a prompt.

Figure 1: Semantic misalignment across different generative models. Fake images often contain local artifacts (e.g., distorted bicycle frames or faucets) or omit subtle contextual details, leading to higher misalignment with their captions compared to real images.

Methodology

The ITEM framework utilizes a pre-trained Vision-Language Model (VLM), specifically CLIP, to quantify the distance between visual content and linguistic semantics.

1. Multi-modal Feature Extraction

For a given input image, the system first generates a descriptive caption using BLIP-2. Simultaneously, it uses GLIP to identify and crop individual objects within the image based on the generated text.

2. Hierarchical Misalignment Calculation

The core innovation is a two-tiered approach to measuring distance:

  • Global Distance: Measures the misalignment between the entire image and the full caption.
  • Local Distance: Measures the misalignment between specific cropped objects and their corresponding labels in the text.

3. Distance Metric and Classification

Rather than using raw cosine similarity, the authors normalize the embeddings and calculate the vector difference. This ensures that high semantic similarity consistently results in a small distance "D," making it a more reliable discriminative feature. These global and local distance vectors are concatenated and fed into a simple two-layer MLP head for binary classification.

Experimental Results

ITEM was trained on a subset of the CNNDetection dataset (ProGAN) and evaluated on several unseen benchmarks, including UniformerDiffusion, DiffusionForensics, GenImage, and Deepfakes.

Superior Generalization

ITEM outperformed state-of-the-art universal detectors, achieving an average improvement of 11.33% AP over DIRE and 1.71% AP over UniFD across various unseen models. Even when trained only on GAN images, ITEM successfully detected Diffusion-generated images with high precision.

Robustness to Perturbations

ITEM showed remarkable resilience to image degradation. While visual-only detectors' performance plummeted when images were blurred or compressed, ITEM's accuracy remained stable, suggesting that semantic misalignment is a more "permanent" feature of fake images than low-level pixel artifacts.

Conclusion

ITEM represents a significant step toward universal fake image detection by focusing on semantic consistency rather than architecture-specific artifacts. By leveraging the hierarchical relationship between images and text, ITEM provides a robust and generalizable solution for identifying AI-generated content across various generative paradigms. Future work will explore the application of this multi-modal approach to video and audio forensics.

Summary updated

BibTeX
@misc{zhang2025leveraging,
  author = {Daichi Zhang and Tong Zhang and Jianmin Bao and Shiming Ge and Sabine Süsstrunk},
  title = {{Leveraging Hierarchical Image-Text Misalignment for Universal Fake Image Detection}},
  year = {2025},
  eprint = {2511.00427},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.00427},
}
Figure