DeCLIP: Decoding CLIP representations for deepfake localization
Stefan Smeu, Elisabeta Oneata, Dan Oneata
TL;DR
DeCLIP tackles local deepfake localization and cross-generator generalization by decoding frozen CLIP embeddings with a learnable convolutional decoder to produce pixel-level manipulation masks. Vanilla CLIP features struggle on locally manipulated images, but incorporating a larger convolutional decoder and integrating multiple backbones yields strong localization with notable out-of-domain generalization, including challenging LDM-inpainted data. The work provides a thorough ablation across backbones, feature layers, and decoder architectures, showing that larger decoders and backbone ensembles improve performance and robustness. The findings suggest that latent-space fingerprints from diffusion-based methods can act as useful signals for generalization, and the authors release code to foster further research in robust, interpretable deepfake localization.
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.
