Towards Sustainable Universal Deepfake Detection with Frequency-Domain Masking

Chandler Timm C. Doloriel, Habib Ullah, Kristian Hovde Liland, Fadi Al Machot, Ngai-Man Cheung
12/8/2025
cs.CV

Official code: chandlerbing65nm/FakeImageDetection (43 stars, Apache-2.0, last commit 2026-02-03).

Abstract

Universal deepfake detection aims to identify AI-generated images across a broad range of generative models, including unseen ones. This requires robust generalization to new and unseen deepfakes, which emerge frequently, while minimizing computational overhead to enable large-scale deepfake screening, a critical objective in the era of Green AI. In this work, we explore frequency-domain masking as a training strategy for deepfake detectors. Unlike traditional methods that rely heavily on spatial features or large-scale pretrained models, our approach introduces random masking and geometric transformations, with a focus on frequency masking due to its superior generalization properties. We demonstrate that frequency masking not only enhances detection accuracy across diverse generators but also maintains performance under significant model pruning, offering a scalable and resource-conscious solution. Our method achieves state-of-the-art generalization on GAN- and diffusion-generated image datasets and exhibits consistent robustness under structured pruning. These results highlight the potential of frequency-based masking as a practical step toward sustainable and generalizable deepfake detection. Code and models are available at https://github.com/chandlerbing65nm/FakeImageDetection.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of "Frequency Masking for Universal DeepFake Detection" and "Towards Sustainable Universal Deepfake Detection with Frequency-Domain Masking"

435Shell, PythonJun 19, 20238 months agoApache-2.0

Similar Papers

Cite this paper

@article{doloriel2025towards,
  title  = {Towards Sustainable Universal Deepfake Detection with Frequency-Domain Masking},
  author = {Chandler Timm C. Doloriel and Habib Ullah and Kristian Hovde Liland and Fadi Al Machot and Ngai-Man Cheung},
  year   = {2025},
  eprint = {2512.08042},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.08042v3}
}

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

Discussion