Transfer Learning of Real Image Features with Soft Contrastive Loss for Fake Image Detection

Ziyou Liang, Weifeng Liu, Run Wang, Mengjie Wu, Boheng Li +3 more
3/25/2024
cs.CVcs.CR
contrastive-ssl

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

In the last few years, the artifact patterns in fake images synthesized by different generative models have been inconsistent, leading to the failure of previous research that relied on spotting subtle differences between real and fake. In our preliminary experiments, we find that the artifacts in fake images always change with the development of the generative model, while natural images exhibit stable statistical properties.

Show full abstract

In this paper, we employ natural traces shared only by real images as an additional target for a classifier. Specifically, we introduce a self-supervised feature mapping process for natural trace extraction and develop a transfer learning based on soft contrastive loss to bring them closer to real images and further away from fake ones. This motivates the detector to make decisions based on the proximity of images to the natural traces. To conduct a comprehensive experiment, we built a high-quality and diverse dataset that includes generative models comprising GANs and diffusion models, to evaluate the effectiveness in generalizing unknown forgery techniques and robustness in surviving different transformations. Experimental results show that our proposed method gives 96.2% mAP significantly outperforms the baselines. Extensive experiments conducted on popular commercial platforms reveal that our proposed method achieves an accuracy exceeding 78.4%, underscoring its practicality for real-world application deployment.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liang2024transfer,
  title  = {Transfer Learning of Real Image Features with Soft Contrastive Loss for Fake Image Detection},
  author = {Ziyou Liang and Weifeng Liu and Run Wang and Mengjie Wu and Boheng Li and Yuyang Zhang and Lina Wang and Xinyi Yang},
  year   = {2024},
  eprint = {2403.16513},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.16513v2}
}

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/2403.16513.svg)](https://codeofpaper.com/paper/2403.16513)

Discussion