FakeFormer: Efficient Vulnerability-Driven Transformers for Generalisable Deepfake Detection

Dat Nguyen, Marcella Astrid, Enjie Ghorbel, Djamila Aouada
10/29/2024
cs.CV

Official code: 10Ring/FakeFormer (32 stars, last commit 2025-11-27).

Abstract

Recently, Vision Transformers (ViTs) have achieved unprecedented effectiveness in the general domain of image classification. Nonetheless, these models remain underexplored in the field of deepfake detection, given their lower performance as compared to Convolution Neural Networks (CNNs) in that specific context. In this paper, we start by investigating why plain ViT architectures exhibit a suboptimal performance when dealing with the detection of facial forgeries. Our analysis reveals that, as compared to CNNs, ViT struggles to model localized forgery artifacts that typically characterize deepfakes. Based on this observation, we propose a deepfake detection framework called FakeFormer, which extends ViTs to enforce the extraction of subtle inconsistency-prone information. For that purpose, an explicit attention learning guided by artifact-vulnerable patches and tailored to ViTs is introduced. Extensive experiments are conducted on diverse well-known datasets, including FF++, Celeb-DF, WildDeepfake, DFD, DFDCP, and DFDC. The results show that FakeFormer outperforms the state-of-the-art in terms of generalization and computational cost, without the need for large-scale training datasets. The code is available at \url{https://github.com/10Ring/FakeFormer}.

View on arXivView PDF

Code Implementations(1)

10Ring/FakeFormerOfficial100%

The official implementation for FakeFormer: Efficient Vulnerability-Driven Transformers for Generalisable Deepfake Detection

320Shell, PythonMay 20, 202410 months agoNOASSERTION

Similar Papers

Cite this paper

@article{nguyen2024fakeformer,
  title  = {FakeFormer: Efficient Vulnerability-Driven Transformers for Generalisable Deepfake Detection},
  author = {Dat Nguyen and Marcella Astrid and Enjie Ghorbel and Djamila Aouada},
  year   = {2024},
  eprint = {2410.21964},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.21964v2}
}

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

Discussion