DeCLIP: Decoding CLIP representations for deepfake localization

Stefan Smeu, Elisabeta Oneata, Dan Oneata
9/12/2024
cs.CVcs.LG

No official code found. Best implementation: bit-ml/DeCLIP (20 stars, last commit 2025-07-03).

Abstract

Generative models can create entirely new images, but they can also partially modify real images in ways that are undetectable to the human eye. In this paper, we address the challenge of automatically detecting such local manipulations. One of the most pressing problems in deepfake detection remains the ability of models to generalize to different classes of generators. In the case of fully manipulated images, representations extracted from large self-supervised models (such as CLIP) provide a promising direction towards more robust detectors. Here, we introduce DeCLIP, a first attempt to leverage such large pretrained features for detecting local manipulations. We show that, when combined with a reasonably large convolutional decoder, pretrained self-supervised representations are able to perform localization and improve generalization capabilities over existing methods. Unlike previous work, our approach is able to perform localization on the challenging case of latent diffusion models, where the entire image is affected by the fingerprint of the generator. Moreover, we observe that this type of data, which combines local semantic information with a global fingerprint, provides more stable generalization than other categories of generative methods.

View on arXivView PDF

Code Implementations(1)

bit-ml/DeCLIPCommunity100%
203Python, Jupyter NotebookSep 3, 20241 years ago

Similar Papers

Cite this paper

@article{smeu2024declip,
  title  = {DeCLIP: Decoding CLIP representations for deepfake localization},
  author = {Stefan Smeu and Elisabeta Oneata and Dan Oneata},
  year   = {2024},
  eprint = {2409.08849},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.08849v2}
}

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

Discussion