Forgery-aware Adaptive Transformer for Generalizable Synthetic Image Detection

Huan Liu, Zichang Tan, Chuangchuang Tan, Yunchao Wei, Yao Zhao +1 more
2/14/2026

No official code found. Best implementation: Michel-liu/FatFormer (136 stars, Apache-2.0, last commit 2024-08-15).

Abstract

In this paper, we study the problem of generalizable syn-thetic image detection, aiming to detect forgery images from diverse generative methods, e.g., GANs and diffusion mod-els. Cutting-edge solutions start to explore the benefits of pre-trained models, and mainly follow the fixed paradigm of solely training an attached classifier, e.g., combining frozen CLIP-ViT with a learnable linear layer in UniFD [43]. However, our analysis shows that such a fixed paradigm is prone to yield detectors with insufficient learning regarding forgery representations. We attribute the key challenge to the lack of forgery adaptation, and present a novel forgery-aware adaptive transformer approach, namely FatFormer. Based on the pre-trained vision-language spaces of CLIP, FatFormer introduces two core designs for the adaption to build generalized forgery representations. First, motivated by the fact that both image and frequency analysis are es-sential for synthetic image detection, we develop a forgery-aware adapter to adapt image features to discern and inte-grate local forgery traces within image and frequency do-mains. Second, we find that considering the contrastive ob-jectives between adapted image features and text prompt embeddings, a previously overlooked aspect, results in a nontrivial generalization improvement. Accordingly, we in-troduce language-guided alignment to supervise the forgery adaptation with image and text prompts in FatFormer. Ex-periments show that, by coupling these two designs, our approach tuned on 4-class ProGAN data attains a remarkable detection performance, achieving an average of 98% accu-racy to unseen GANs, and surprisingly generalizes to un-seen diffusion models with 95% accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR 2024] The official repo for Forgery-aware Adaptive Transformer for Generalizable Synthetic Image Detection

1366PythonFeb 28, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2026forgeryaware,
  title  = {Forgery-aware Adaptive Transformer for Generalizable Synthetic Image Detection},
  author = {Huan Liu and Zichang Tan and Chuangchuang Tan and Yunchao Wei and Yao Zhao and Jingdong Wang},
  year   = {2026},
  eprint = {2312.16649},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.16649},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.16649.svg)](https://codeofpaper.com/paper/2312.16649)

Discussion