Generalized Face Forgery Detection via Adaptive Learning for Pre-trained Vision Transformer

Authors: Anwei Luo, Rizhao Cai, Chenqi Kong, Yakun Ju, Xiangui Kang, Jiwu Huang, Alex C. Kot

Published: 2023-09-20 06:51:11+00:00

AI Summary

The paper introduces FA-ViT, a Forgery-aware Adaptive Vision Transformer, for generalized face forgery detection. It employs an adaptive learning paradigm that keeps pre-trained ViT parameters fixed while optimizing novel adaptive modules to capture global and local forgery features. This approach achieves state-of-the-art results in cross-dataset evaluations and enhances robustness against unseen perturbations.

Abstract

With the rapid progress of generative models, the current challenge in face forgery detection is how to effectively detect realistic manipulated faces from different unseen domains. Though previous studies show that pre-trained Vision Transformer (ViT) based models can achieve some promising results after fully fine-tuning on the Deepfake dataset, their generalization performances are still unsatisfactory. One possible reason is that fully fine-tuned ViT-based models may disrupt the pre-trained features [1, 2] and overfit to some data-specific patterns [3]. To alleviate this issue, we present a \\textbf{F}orgery-aware \\textbf{A}daptive \\textbf{Vi}sion \\textbf{T}ransformer (FA-ViT) under the adaptive learning paradigm, where the parameters in the pre-trained ViT are kept fixed while the designed adaptive modules are optimized to capture forgery features. Specifically, a global adaptive module is designed to model long-range interactions among input tokens, which takes advantage of self-attention mechanism to mine global forgery clues. To further explore essential local forgery clues, a local adaptive module is proposed to expose local inconsistencies by enhancing the local contextual association. In addition, we introduce a fine-grained adaptive learning module that emphasizes the common compact representation of genuine faces through relationship learning in fine-grained pairs, driving these proposed adaptive modules to be aware of fine-grained forgery-aware information. Extensive experiments demonstrate that our FA-ViT achieves state-of-the-arts results in the cross-dataset evaluation, and enhances the robustness against unseen perturbations. Particularly, FA-ViT achieves 93.83\\% and 78.32\\% AUC scores on Celeb-DF and DFDC datasets in the cross-dataset evaluation. The code and trained model have been released at: https://github.com/LoveSiameseCat/FAViT.


Key findings
FA-ViT achieves state-of-the-art results in cross-dataset evaluations, with notable AUC scores of 93.83% on Celeb-DF and 78.32% on DFDC. The model also demonstrates enhanced robustness against various real-world perturbations and unseen manipulation methods, significantly outperforming fully fine-tuned ViT models. The adaptive learning paradigm successfully preserves valuable pre-trained features while learning task-specific forgery-aware information.
Approach
The approach utilizes a pre-trained Vision Transformer (ViT) with its parameters frozen, augmented by specially designed adaptive modules. A Global Adaptive Module (GAM) models long-range interactions, while a Local Adaptive Module (LAM) explores local inconsistencies to capture forgery clues. Additionally, Fine-grained Adaptive Learning (FAL) guides these modules to discover subtle forgery-aware information by compacting genuine face representations through relationship learning in fine-grained pairs.
Datasets
FaceForensics++ (FF++), DeeperForensics-1.0 (DFR), Celeb-DF-v2 (CDF), WildDeepfake (WDF), DFDC-P, DFDC, DeepFakeDetection (DFD), FFIW-10K (FFIW)
Model(s)
Vision Transformer (ViT-Base pre-trained on ImageNet-21K) as backbone, integrated with Global Adaptive Module (GAM), Local Adaptive Module (LAM), and Fine-grained Adaptive Learning (FAL) to form FA-ViT.
Author countries
China, Singapore