BENet: A Cross-domain Robust Network for Detecting Face Forgeries via Bias Expansion and Latent-space Attention

Weihua Liu, Jianhua Qiu, Said Boumaraf, Chaochao Lin, Pan liyuan, Lin Li, Mohammed Bennamoun, Naoufel WerghiarXiv 2024 · DOI

Abstract

BENet (Bias Expansion Network) is a novel deepfake detection framework that uses an autoencoder to intentionally amplify reconstruction errors in forged faces while keeping real faces invariant. By combining this "bias expansion" with multi-scale latent attention and a threshold-based detector, it achieves state-of-the-art robustness across unseen forgery techniques and environmental perturbations.

Introduction

The "arms race" between deepfake creators and detectors is intensifying. While current detectors perform well on specific datasets, they face two massive hurdles: generalization and robustness. Most models are trained as simple binary classifiers. If they are trained on GAN-generated faces, they often fail when encountering a different "domain," such as high-fidelity FaceSwap. This is the cross-domain problem. Furthermore, real-world media is often degraded by compression, noise, or blurring—factors that cause standard detectors to lose accuracy rapidly. The authors of BENet aim to create a model that doesn't just look for specific "tells" but instead learns the fundamental statistical distribution of real faces to better spot anything that deviates from it.

Methodology

BENet introduces three core components that move beyond standard classification:

Bias Expansion Module (BEM)

At its heart is an autoencoder. Unlike standard autoencoders that try to reconstruct every input perfectly, BENet uses a custom Bias Expansion Loss ($L_{be}$). This loss forces the model to reconstruct real faces with high fidelity (invariance) while intentionally amplifying the reconstruction errors (bias) when it encounters a forged face. This makes the "forgery clues" much louder for the subsequent classifier.

Latent-Space Attention (LSA)

To catch subtle, fine-grained manipulations, the authors developed a multi-scale attention mechanism. It compares feature maps between the encoder and decoder across several layers. By capturing variances in the latent space at different scales, the model can spot inconsistencies in both skin texture (fine-scale) and facial structure (large-scale).

Cross-domain Detector

During inference, the model calculates a "bias pixel discrepancy." The authors observed that fake faces exhibit a "long-tail" distribution of errors. They implemented a Bias-against-Threshold filter: if an image's reconstruction error exceeds a threshold (calibrated to cover 95% of training data), it is automatically flagged as a potential "unknown" forgery.

Overview of the BENet architecture, highlighting the Bias Expansion Module (A), Latent-space Attention (B), and Cross-domain Detector (C).

Experimental Results

The authors evaluated BENet on four major benchmarks: FaceForensics++ (FF++), Celeb-DF, DFFD (Diverse Fake Face Dataset), and DFDC (DeepFake Detection Challenge). BENet demonstrates significant leads over previous SOTA models like RECCE and F3-Net:

  • Cross-Dataset Superiority: When trained on FF++ (Low Quality) and tested on the difficult DFDC dataset, BENet achieved a 78.75% AUC, outperforming the next best competitor by nearly 10%.
  • Intra-Dataset Accuracy: It reached 98.72% AUC on the low-quality version of FF++, a scenario where most models struggle due to compression artifacts.
  • Resilience to Noise: In perturbation tests (adding blur, Gaussian noise, or pixelation), BENet showed the lowest "AUC decay." For example, under heavy compression, BENet's performance dropped by only 0.7%, while other models dropped by over 20-40%.
Visual representation of various environmental perturbations (levels 1-5) used to evaluate the robustness of BENet.

Discussion and Limitations

The most clever insight is the "Bias Expansion." Instead of hoping a classifier finds a needle in a haystack, the BEM essentially turns the needle into a neon sign by making the autoencoder "fail" specifically on forged regions. By treating deepfake detection as an anomaly detection task, the model is better prepared for "zero-day" forgery techniques it hasn't seen in training.

However, the authors identify two main areas for improvement:

  • Extreme Conditions: Very low-resolution images or those with extreme dimness can still lead to False Negatives, as the autoencoder might lack the information to generate a meaningful bias.
  • Occlusions: Elements like sunglasses, hands covering the face, or heavy graffiti can trigger False Positives. The model sees these as "anomalies" relative to the learned distribution of real faces and may flag them as forgeries.

Future work should focus on better discerning between "natural" occlusions and "deliberate" falsifications to reduce the false positive rate.

Summary updated

Abstract

In response to the growing threat of deepfake technology, we introduce BENet, a Cross-Domain Robust Bias Expansion Network. BENet enhances the detection of fake faces by addressing limitations in current detectors related to variations across different types of fake face generation techniques, where ``cross-domain" refers to the diverse range of these deepfakes, each considered a separate domain. BENet's core feature is a bias expansion module based on autoencoders. This module maintains genuine facial features while enhancing differences in fake reconstructions, creating a reliable bias for detecting fake faces across various deepfake domains. We also introduce a Latent-Space Attention (LSA) module to capture inconsistencies related to fake faces at different scales, ensuring robust defense against advanced deepfake techniques. The enriched LSA feature maps are multiplied with the expanded bias to create a versatile feature space optimized for subtle forgeries detection. To improve its ability to detect fake faces from unknown sources, BENet integrates a cross-domain detector module that enhances recognition accuracy by verifying the facial domain during inference. We train our network end-to-end with a novel bias expansion loss, adopted for the first time, in face forgery detection. Extensive experiments covering both intra and cross-dataset demonstrate BENet's superiority over current state-of-the-art solutions.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Celeb-DF · cross-dataset testBENetAUC77.86%split: test · cross-dataset
Source quote
L246: The results reported in \cref{tab:crossdataLQ} demonstrate the robustness of BENet in cross-dataset evaluation, surpassing its competitors with substantial AUC scores of 77.86%, 76.59%, and 78.75% on Celeb-DF, DFFD, and DFDC, respectively.
DFFD · cross-dataset testBENetAUC76.59%split: test · cross-dataset
Source quote
L246: The results reported in \cref{tab:crossdataLQ} demonstrate the robustness of BENet in cross-dataset evaluation, surpassing its competitors with substantial AUC scores of 77.86%, 76.59%, and 78.75% on Celeb-DF, DFFD, and DFDC, respectively.
DFDC · cross-dataset testBENetAUC78.75%split: test · cross-dataset
Source quote
L246: The results reported in \cref{tab:crossdataLQ} demonstrate the robustness of BENet in cross-dataset evaluation, surpassing its competitors with substantial AUC scores of 77.86%, 76.59%, and 78.75% on Celeb-DF, DFFD, and DFDC, respectively.
FF++ · train DF, test FSBENetTest AUC80.75%split: test · cross-manipulation · test-manipulation=FS · train-manipulation=DF
Source quote
L300: \multirow{4}{*}{} │ \multicolumn{2}{l}{BENet (ours)} │ 99.86\ \ │ 80.75\ \ │ 78.42\ \ │ 75.48\ \
BibTeX
@misc{liu2024benet,
  author = {Weihua Liu and Jianhua Qiu and Said Boumaraf and Chaochao Lin and Pan liyuan and Lin Li and Mohammed Bennamoun and Naoufel Werghi},
  title = {{BENet: A Cross-domain Robust Network for Detecting Face Forgeries via Bias Expansion and Latent-space Attention}},
  year = {2024},
  eprint = {2412.07431},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.07431},
}
Figure