Skip to content
ModelListedExternal
Download

Deepfake Detection

This repository contains the model for the paper:

KindOtherVersionRevision 521c54a

Model source

Kind
Other
File size
1.13 GB
Version
vRevision 521c54a
Updated
Sep 28, 2026
Downloads
0
Source
Hugging Face

Source description

Unlocking the Hidden Potential of CLIP in Generalizable Deepfake Detection

arXiv Badge GitHub Badge

This repository contains the model for the paper:

Unlocking the Hidden Potential of CLIP in Generalizable Deepfake Detection

Abstract

This paper tackles the challenge of detecting partially manipulated facial deepfakes, which involve subtle alterations to specific facial features while retaining the overall context, posing a greater detection difficulty than fully synthetic faces. We leverage the Contrastive Language-Image Pre-training (CLIP) model, specifically its ViT-L/14 visual encoder, to develop a generalizable detection method that performs robustly across diverse datasets and unknown forgery techniques with minimal modifications to the original model. The proposed approach utilizes parameter-efficient fine-tuning (PEFT) techniques, such as LN-tuning, to adjust a small subset of the model's parameters, preserving CLIP's pre-trained knowledge and reducing overfitting. A tailored preprocessing pipeline optimizes the method for facial images, while regularization strategies, including L2 normalization and metric learning on a hyperspherical manifold, enhance generalization. Trained on the FaceForensics++ dataset and evaluated in a cross-dataset fashion on Celeb-DF-v2, DFDC, FFIW, and others, the proposed method achieves competitive detection accuracy comparable to or outperforming much more complex state-of-the-art techniques. This work highlights the efficacy of CLIP's visual encoder in facial deepfake detection and establishes a simple, powerful baseline for future research, advancing the field of generalizable deepfake detection.

Results

Generalization of models trained on the FF++ dataset to unseen datasets and forgery methods. Reported values are video-level AUROC. Results of other methods are taken from their original papers. Values with * are taken from the other papers.

ModelYearPublicationCDFv2DFDDFDCFFIWDSv1
LipForensics2021CVPR82.4--73.5----
FTCN2021ICCV86.9--74.074.47*--
RealForensics2022CVPR86.9--75.9----
SBI2022CVPR93.1882.6872.4284.83--
AUNet2023CVPR92.7799.2273.8281.45--
StyleDFD2024CVPR89.096.1------
LSDA2024CVPR91.1--77.072.4*--
LAA-Net2024CVPR95.498.4386.94----
AltFreezing2024CVPR89.598.599.4----
NACO2024ECCV89.5--76.7----
TALL++2024IJCV91.96--78.51----
UDD2025arXiv93.1395.5181.21----
Effort2025arXiv95.696.584.392.1--
KID2025arXiv95.7499.4675.7782.53--
ForensicsAdapter2025arXiv95.797.287.2----
Proposed2025arXiv96.6298.087.1591.5292.01

Example

See usage examples in our github project

Cite

@article{yermakov-2025-deepfake-detection,
    title={Unlocking the Hidden Potential of CLIP in Generalizable Deepfake Detection}, 
    author={Andrii Yermakov and Jan Cech and Jiri Matas},
    year={2025},
    eprint={2503.19683},
    archivePrefix={arXiv},
    primaryClass={cs.CV},
    url={https://arxiv.org/abs/2503.19683}, 
}

Sources

1 source
Hugging FacePrimaryVersion 521c54a774618af4e3a0f9a506fa3288f220b970
huggingface.co/morhadi/deepfake-detection/tree/521c54a774618af4e3a0f9a506fa3288f220b970

Verified Sep 28

Model artifacts

1 artifact

model.ckpt

ckpt · 1.13 GB · SHA-256 57a0d00f2f5b…9955 · Hugging Face

Download file

Source excerpts

2 excerpts

--- license: mit tags: - pytorch - endpoints-template - deepfake-detection pipeline_tag: image-classification widget: - src: "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/infrence-examples-text2img-dark.png" example_title: "Deepfake Image Example" --- # Unlocking the Hidden Potential of CLIP in Generalizable Deepfake Detection [![arXiv Badge](https://img.shields.io/badge/arXiv-B31B1B?logo=arxiv&logoColor=FFF)](https://arxiv.org/abs/2503.19683) [![GitHub Badge](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=fff)](https://github.com/yermandy/deepfake-detection) This repository contains the model for the paper: **[Unlocking the Hidden Potential of CLIP in Generalizable Deepfake Detection](https://arxiv.org/abs/2503.19683)** ## Abstract > This paper tackles the challenge of detecting partially manipulated facial deepfakes, which involve subtle alterations to specific facial features while retaining the overall context, posing a greater detection difficulty than fully synthetic faces. We leverage the Contrastive Language-Image Pre-training (CLIP) model, specifically its ViT-L/14 visual encoder, to develop a generalizable detection method that performs robustly across diverse datasets and unknown forgery techniques with minimal modifications to the original model. The proposed approach utilizes parameter-efficient fine-tuning (PEFT) techniques, such as LN-tuning, to adjust a small subset of the model's parameters, preserving CLIP's pre-trained knowledge and reducing overfitting. A tailored preprocessing pipeline optimizes the method for facial images, while regularization strategies, including L2 normalization and metric learning on a hyperspherical manifold, enhance generalization. Trained on the FaceForensics++ dataset and evaluated in a cross-dataset fashion on Celeb-DF-v2, DFDC, FFIW, and others, the proposed method achieves competitive detection accuracy comparable to or outperforming much more complex state-of-the-art techniques. This work highlights the efficacy of CLIP's visual encoder in facial deepfake detection and establishes a simple, powerful baseline for future research, advancing the field of generalizable deepfake detection. ## Results Generalization of models trained on the FF++ dataset to unseen datasets and forgery methods. Reported values are **video-level AUROC**. Results of...

Source context: 0 downloads · 0 likes · Pipeline image-classification · Repo morhadi/deepfake-detection