Saved in:
Bibliographic Details
Main Authors: Ojha, Utkarsh, Li, Yuheng, Lee, Yong Jae
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2302.10174
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916184612405248
author Ojha, Utkarsh
Li, Yuheng
Lee, Yong Jae
author_facet Ojha, Utkarsh
Li, Yuheng
Lee, Yong Jae
contents With generative models proliferating at a rapid rate, there is a growing need for general purpose fake image detectors. In this work, we first show that the existing paradigm, which consists of training a deep network for real-vs-fake classification, fails to detect fake images from newer breeds of generative models when trained to detect GAN fake images. Upon analysis, we find that the resulting classifier is asymmetrically tuned to detect patterns that make an image fake. The real class becomes a sink class holding anything that is not fake, including generated images from models not accessible during training. Building upon this discovery, we propose to perform real-vs-fake classification without learning; i.e., using a feature space not explicitly trained to distinguish real from fake images. We use nearest neighbor and linear probing as instantiations of this idea. When given access to the feature space of a large pretrained vision-language model, the very simple baseline of nearest neighbor classification has surprisingly good generalization ability in detecting fake images from a wide variety of generative models; e.g., it improves upon the SoTA by +15.07 mAP and +25.90% acc when tested on unseen diffusion and autoregressive models.
format Preprint
id arxiv_https___arxiv_org_abs_2302_10174
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Towards Universal Fake Image Detectors that Generalize Across Generative Models
Ojha, Utkarsh
Li, Yuheng
Lee, Yong Jae
Computer Vision and Pattern Recognition
Machine Learning
With generative models proliferating at a rapid rate, there is a growing need for general purpose fake image detectors. In this work, we first show that the existing paradigm, which consists of training a deep network for real-vs-fake classification, fails to detect fake images from newer breeds of generative models when trained to detect GAN fake images. Upon analysis, we find that the resulting classifier is asymmetrically tuned to detect patterns that make an image fake. The real class becomes a sink class holding anything that is not fake, including generated images from models not accessible during training. Building upon this discovery, we propose to perform real-vs-fake classification without learning; i.e., using a feature space not explicitly trained to distinguish real from fake images. We use nearest neighbor and linear probing as instantiations of this idea. When given access to the feature space of a large pretrained vision-language model, the very simple baseline of nearest neighbor classification has surprisingly good generalization ability in detecting fake images from a wide variety of generative models; e.g., it improves upon the SoTA by +15.07 mAP and +25.90% acc when tested on unseen diffusion and autoregressive models.
title Towards Universal Fake Image Detectors that Generalize Across Generative Models
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2302.10174