Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Koutlis, Christos, Papadopoulos, Symeon
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929412420665344
author Koutlis, Christos
Papadopoulos, Symeon
author_facet Koutlis, Christos
Papadopoulos, Symeon
contents The recently developed and publicly available synthetic image generation methods and services make it possible to create extremely realistic imagery on demand, raising great risks for the integrity and safety of online information. State-of-the-art Synthetic Image Detection (SID) research has led to strong evidence on the advantages of feature extraction from foundation models. However, such extracted features mostly encapsulate high-level visual semantics instead of fine-grained details, which are more important for the SID task. On the contrary, shallow layers encode low-level visual information. In this work, we leverage the image representations extracted by intermediate Transformer blocks of CLIP's image-encoder via a lightweight network that maps them to a learnable forgery-aware vector space capable of generalizing exceptionally well. We also employ a trainable module to incorporate the importance of each Transformer block to the final prediction. Our method is compared against the state-of-the-art by evaluating it on 20 test datasets and exhibits an average +10.6% absolute performance improvement. Notably, the best performing models require just a single epoch for training (~8 minutes). Code available at https://github.com/mever-team/rine.
format Preprint
id arxiv_https___arxiv_org_abs_2402_19091
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection
Koutlis, Christos
Papadopoulos, Symeon
Computer Vision and Pattern Recognition
The recently developed and publicly available synthetic image generation methods and services make it possible to create extremely realistic imagery on demand, raising great risks for the integrity and safety of online information. State-of-the-art Synthetic Image Detection (SID) research has led to strong evidence on the advantages of feature extraction from foundation models. However, such extracted features mostly encapsulate high-level visual semantics instead of fine-grained details, which are more important for the SID task. On the contrary, shallow layers encode low-level visual information. In this work, we leverage the image representations extracted by intermediate Transformer blocks of CLIP's image-encoder via a lightweight network that maps them to a learnable forgery-aware vector space capable of generalizing exceptionally well. We also employ a trainable module to incorporate the importance of each Transformer block to the final prediction. Our method is compared against the state-of-the-art by evaluating it on 20 test datasets and exhibits an average +10.6% absolute performance improvement. Notably, the best performing models require just a single epoch for training (~8 minutes). Code available at https://github.com/mever-team/rine.
title Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2402.19091