cs.CVNov 26, 2026

Spatiotemporal Message Flow Adapter for Generalizable Face Forgery Detection

Authors: Kairui Shang, Xiang Wang, Jiaran Zhou, Yuezun Li

Organizations: School of Computer Science and Technology, Ocean University of China

Abstract

Adapting CLIP has emerged as a promising direction for generalizable face forgery detection. Recent methods typically design spatial adapters to identify forgery traces within individual frames or temporal adapters to detect inconsistencies across frames. As this line is still in its early stages, how to jointly model spatiotemporal cues with CLIP remains an open challenge. In this paper, we propose the Spatiotemporal Message Flow Adapter (STFlow), a framework that integrates spatial and temporal forgery evidence through bidirectional message flow between CLIP and its adapters. Our method contains three key designs: 1) a Spatial Adapter that uses two groups of learnable queries to provide precise guidance toward facial components and capture diverse forgery traces. 2) a Temporal Adapter that captures inter-frame inconsistencies by applying self-attention along the temporal dimension. 3) a Bidirectional Message Flow mechanism that allows both adapters to exchange information with CLIP and thereby enables indirect communication between adapters. We evaluate our method on five widely used datasets and compare it with recent representative detectors. Experimental results demonstrate its effectiveness in improving generalization. We have released the code at https://github.com/OUC-VAS/STFlow.

Figures & tables

Explore similar work

Apr 19, 2026

Generalizable Face Forgery Detection via Separable Prompt Learning

Detecting face forgeries using CLIP has recently emerged as a promising and increasingly popular research direction. Owing to its rich visual knowledge acquired through large-scale pretraining, most existing methods typically rely on the visual encoder of CLIP, while paying limited attention to the text modality. Given the instructive nature of the text modality, we posit that it can be leveraged to instruct Deepfake detection with meticulous design. Accordingly, we shift the focus from the visual modality to the text modality and propose a new Separable Prompt Learning strategy (SePL) that enables CLIP to serve as an effective face forgery detector. The core idea of SePL is to disentangle forgery-specific and forgery-irrelevant information in images via two types of prompt learning, with the former enhancing detection. To achieve this disentangle, we describe a cross-modality alignment strategy and a set of dedicated objectives. Extensive experiments demonstrate that, with this simple adaptation, our method achieves competitive and even superior performance compared to other methods under both cross-dataset and cross-method evaluation, highlighting its strong generalizability. The codes have been released at https://github.com/OUC-YER/SePL-DeepfakeDetection
Oct 21, 2026

Beyond Shortcut Learning: Hierarchical Spatial Prototype Regularization for Face Forgery Detection

Recent advances in generative models have enabled highly realistic face forgeries, yet generalizing deepfake detectors to unseen manipulation pipelines remains a major challenge. One critical yet underexplored issue is that the learned forensic representation itself may fail to remain stable across different manipulation sources. In this paper, we provide new evidence that naively fine-tuned vision models suffer from severe forensic representation collapse: their extracted cues are often entangled with unstable, dataset-specific artifacts, resulting in structurally fragile representations and poor cross-domain generalization. Leveraging this insight, we propose Hierarchical Spatial Prototype (HSP) regularization, which explicitly models the forgery manifold by learning a structured prototype subspace over spatial features. We further introduce prototype orthogonality and second-order assignment balance, which jointly preserve the geometric independence of latent forgery factors and promote high-effective-rank utilization of the forensic representation, thereby reducing reliance on dataset-specific shortcuts. Empirical results demonstrate that our method substantially improves generalizability, yielding average frame-level AUC gains of 5.6% and 5.3% in the cross-dataset and cross-manipulation settings, respectively. Moreover, when used as a plug-in module, HSP boosts the average video-level AUC of existing state-of-the-art detectors to 95.3% (+1.8%). These results demonstrate the practical value of HSP as an easy-to-adopt regularization module for enhancing deepfake detectors.
Oct 12, 2026

EviStress: Evidence Stress Learning for Generalizable Face Forgery Detection with Textual Explanations

The rapid spread of face forgeries on the Web challenges the credibility of visual content. In practical Web environments, manipulated media originate from evolving generation pipelines and undergo diverse processing during dissemination, making reliable authenticity assessment under unseen manipulations and visual changes a critical challenge. We observe that a standard LoRA-adapted CLIP detector exhibits uneven patch-level decision dependence, concen trating a disproportionate share of class-specific relevance on a small fraction of visual patches. To improve robustness to variations in such highly dependent evidence, we propose EviStress, a two-stage framework for generalizable face forgery detection with textual explanations. In the first stage, Evidence-Targeted Patch Perturbation (ETPP) estimates patch dependence from global, relational, and semantic cues and assigns positively correlated perturbation probabilities, explicitly stress-testing highly dependent visual evidence during training. We further introduce Discriminative Variation Preservation (DVP), which constrains the residual between clean and perturbed representations to retain authenticity discriminative information. In the second stage, Intrinsic Evidence Instruction Tuning (IEIT) transfers the adapted CLIP encoder into LLaVA as its vision tower and performs parameter-efficient multimodal instruction tuning, enabling authenticity prediction and textual explanation directly from the learned forgery-sensitive representation without an external detector. Experiments demonstrate improved cross-dataset and cross-method generalization and corruption robustness, with the multimodal model providing authenticity predictions and human-readable explanations.