Robust CLIP-Based Detector for Exposing Diffusion Model-Generated Images

Santosh, Li Lin, Irene Amerini, Xin Wang, Shu Hu
4/19/2024
cs.CVcs.LGeess.IV

Official code: Purdue-M2/Robust_DM_Generated_Image_Detection (11 stars, MIT, last commit 2024-06-13).

Abstract

Diffusion models (DMs) have revolutionized image generation, producing high-quality images with applications spanning various fields. However, their ability to create hyper-realistic images poses significant challenges in distinguishing between real and synthetic content, raising concerns about digital authenticity and potential misuse in creating deepfakes. This work introduces a robust detection framework that integrates image and text features extracted by CLIP model with a Multilayer Perceptron (MLP) classifier. We propose a novel loss that can improve the detector's robustness and handle imbalanced datasets. Additionally, we flatten the loss landscape during the model training to improve the detector's generalization capabilities. The effectiveness of our method, which outperforms traditional detection techniques, is demonstrated through extensive experiments, underscoring its potential to set a new state-of-the-art approach in DM-generated image detection. The code is available at https://github.com/Purdue-M2/Robust_DM_Generated_Image_Detection.

View on arXivView PDF

Code Implementations(1)

MIT

This repository is the official implementation of our paper Robust Diffusion Model-Generated Image Detection with CLIP, accepted by MIPR 2024

113PythonApr 18, 20242 years agoMIT

Similar Papers

Cite this paper

@article{santosh2024robust,
  title  = {Robust CLIP-Based Detector for Exposing Diffusion Model-Generated Images},
  author = {Santosh and Li Lin and Irene Amerini and Xin Wang and Shu Hu},
  year   = {2024},
  eprint = {2404.12908},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.12908v2}
}

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

Discussion