Published July 4, 2024 | Version v1
Conference paper Open

Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection

  • 1. Centre for Research and Technology Hellas

Description

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.

Files

rine_main.pdf

Files (3.8 MB)

Name Size Download all
md5:c53e695e73e373c963ed91b73a2f1315
3.7 MB Preview Download
md5:7c14f384abfdaae73cb0a5b089b78af2
103.0 kB Preview Download

Additional details

Funding

vera.ai – vera.ai: VERification Assisted by Artificial Intelligence 101070093
European Commission
AI4Media – A European Excellence Centre for Media, Society and Democracy 951911
European Commission

Software

Repository URL
https://github.com/mever-team/rine
Programming language
Python