Any-Resolution AI-Generated Image Detection by Spectral Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Karageorgiou, Dimitrios, Papadopoulos, Symeon, Kompatsiaris, Ioannis, Gavves, Efstratios
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912299855380480
author Karageorgiou, Dimitrios
Papadopoulos, Symeon
Kompatsiaris, Ioannis
Gavves, Efstratios
author_facet Karageorgiou, Dimitrios
Papadopoulos, Symeon
Kompatsiaris, Ioannis
Gavves, Efstratios
contents Recent works have established that AI models introduce spectral artifacts into generated images and propose approaches for learning to capture them using labeled data. However, the significant differences in such artifacts among different generative models hinder these approaches from generalizing to generators not seen during training. In this work, we build upon the key idea that the spectral distribution of real images constitutes both an invariant and highly discriminative pattern for AI-generated image detection. To model this under a self-supervised setup, we employ masked spectral learning using the pretext task of frequency reconstruction. Since generated images constitute out-of-distribution samples for this model, we propose spectral reconstruction similarity to capture this divergence. Moreover, we introduce spectral context attention, which enables our approach to efficiently capture subtle spectral inconsistencies in images of any resolution. Our spectral AI-generated image detection approach (SPAI) achieves a 5.5% absolute improvement in AUC over the previous state-of-the-art across 13 recent generative approaches, while exhibiting robustness against common online perturbations. Code is available on https://mever-team.github.io/spai.
format Preprint
id arxiv_https___arxiv_org_abs_2411_19417
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Any-Resolution AI-Generated Image Detection by Spectral Learning
Karageorgiou, Dimitrios
Papadopoulos, Symeon
Kompatsiaris, Ioannis
Gavves, Efstratios
Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
Recent works have established that AI models introduce spectral artifacts into generated images and propose approaches for learning to capture them using labeled data. However, the significant differences in such artifacts among different generative models hinder these approaches from generalizing to generators not seen during training. In this work, we build upon the key idea that the spectral distribution of real images constitutes both an invariant and highly discriminative pattern for AI-generated image detection. To model this under a self-supervised setup, we employ masked spectral learning using the pretext task of frequency reconstruction. Since generated images constitute out-of-distribution samples for this model, we propose spectral reconstruction similarity to capture this divergence. Moreover, we introduce spectral context attention, which enables our approach to efficiently capture subtle spectral inconsistencies in images of any resolution. Our spectral AI-generated image detection approach (SPAI) achieves a 5.5% absolute improvement in AUC over the previous state-of-the-art across 13 recent generative approaches, while exhibiting robustness against common online perturbations. Code is available on https://mever-team.github.io/spai.
title Any-Resolution AI-Generated Image Detection by Spectral Learning
topic Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
url https://arxiv.org/abs/2411.19417