DomainForensics: Exposing Face Forgery across Domains via Bi-directional Adaptation

Qingxuan Lv, Yuezun Li, Junyu Dong, Sheng Chen, Hui Yu, Shu Zhang · DOI

Introduction

The rapid evolution of generative models has created a persistent "cat-and-mouse" game between DeepFake creators and forensic detectors. While state-of-the-art detectors achieve near-perfect accuracy on known datasets, they frequently fail when encountering unseen generative techniques—a phenomenon known as the "domain gap." In real-world deployments, a detector trained on one specific forgery type often sees its performance plummet from over 99% AUC to near-random levels (50-60%) when faced with a new domain.

Comparison of traditional forensics versus the proposed DomainForensics approach, highlighting the performance gap in target domains.

To address this, we propose DomainForensics, a framework that treats cross-domain forgery detection as an unsupervised domain adaptation (UDA) problem. Instead of relying solely on data augmentation to predict future forgeries, DomainForensics utilizes a bi-directional learning strategy to bridge the gap between labeled source data and unlabeled target samples from the wild.

Methodology

The architecture of DomainForensics is built upon a dual-branch Vision Transformer (ViT) backbone designed to capture both visual and frequency-domain artifacts.

Dual-Branch Feature Extraction

The model processes input faces through two distinct paths:

  1. Visual Branch: Extracts features from standard RGB patches to identify visible manipulation artifacts.
  2. Frequency Branch: Utilizes Discrete Cosine Transform (DCT) to uncover subtle mathematical inconsistencies often left by generative processes, which may be invisible to the naked eye.

Bi-directional Adaptation

The core innovation lies in the two-stage adaptation process that ensures the model generalizes without forgetting previously learned features.

The Bi-directional Adaptation framework, showing the forward adversarial alignment and the backward self-distillation stages.
  1. Forward Adaptation: This stage employs a standard UDA approach. A domain discriminator attempts to distinguish between features from the labeled source domain and the unlabeled target domain. The feature extractor is trained adversarially to "confuse" the discriminator, thereby aligning the feature distributions of both domains.
  2. Backward Adaptation: To prevent the loss of critical forgery-specific knowledge during alignment, we introduce a teacher-student self-distillation phase. The model (student) is trained to mimic the predictions of its previous state (teacher) on target data. This process "mines" forgery traces specific to the new domain and adapts this refined knowledge back to the source domain, ensuring the model retains its original detection capabilities while gaining new ones.

Experimental Results

DomainForensics was evaluated across several rigorous benchmarks, including FaceForensics++ (FF++), Celeb-DF, and DFDCP, to simulate various real-world domain shifts.

Cross-Manipulation and Cross-Dataset Performance

On the FF++ dataset, adapting between different manipulation types (e.g., Deepfakes to Face2Face), DomainForensics achieved an impressive 99.08% AUC, a massive improvement over the baseline's 69.43%. In cross-dataset evaluations—training on FF++ and testing on the high-quality Celeb-DF—the model reached 90.22% AUC, rivaling or exceeding complex temporal-based models.

Robustness to Compression

A significant challenge in digital forensics is video compression. DomainForensics demonstrates high resilience in low-quality (LQ) scenarios. For instance, in the DF → F2F adaptation task on compressed video, it maintained a 92.13% AUC. This robustness is attributed to the Vision Transformer's ability to capture long-range dependencies, which are more stable under heavy compression than local pixel-level features.

Conclusion

DomainForensics represents a strategic shift in face forgery detection. By leveraging unlabeled data through bi-directional adaptation, the framework effectively "mines" the common denominators of forgery across domains. While the method requires a representative sample of unlabeled target data, its "plug-and-play" nature and superior performance in cross-domain and low-quality scenarios make it a powerful tool for modern forensic applications.

Citation: Lv, Q., Li, Y., Dong, J., Chen, S., Yu, H., Zhou, H., & Zhang, S. (2024). DomainForensics: Exposing Face Forgery across Domains via Bi-directional Adaptation. arXiv:2312.10680v2.

Summary updated

BibTeX
@article{lv2024domainforensics,
  author = {Qingxuan Lv and Yuezun Li and Junyu Dong and Sheng Chen and Hui Yu and Huiyu Zhou and Shu Zhang},
  title = {{DomainForensics: Exposing Face Forgery across Domains via Bi-directional Adaptation}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2024},
  url = {https://openreview.net/forum?id=b1wYdu08KD},
}
Figure