Abstract
Recent advances in Vision-Language Models (VLMs) have significantly improved the generalization capability of video deepfake detection by leveraging large-scale pretrained knowledge. However, most existing methods primarily focus solely on the visual encoder, while the few that leverage the text encoder still depend on fixed text prompts, limiting their ability to adapt to diverse forgery patterns.
To address this issue, we propose a robust deepfake detection framework that jointly exploits both the visual and text encoder. Specifically, we fine-tune the final transformer block of CLIP’s visual encoder, to produce discriminative patch embeddings for real and fake regions. Meanwhile, multiple replicated class tokens are fed into Weighted Token Aggregation (WTA) module, which aggregates complementary forgery cues into a discriminative representation. Furthermore, we introduce a Prompt Refinement Module, where misclassified images are fed into an auxiliary VLM to optimize the prompts. The optimized prompts are then encoded by the text encoder to produce more discriminative textual representations, thereby improving classification performance.
Extensive experiments on multiple datasets demonstrate that our method consistently outperforms existing state-of-the-art approaches while exhibiting strong cross-dataset generalization. More importantly, this work establishes a principled framework for jointly optimizing visual and textual representations in CLIP-based deepfake detection, providing a strong foundation for future research on adaptive vision-language forensics models.
Method
Misclassified frames reveal forgery cues that the current class prompts overlook. We use these frames to revise the descriptions of real and fake faces during training.

Framework overview

- Weighted Token Aggregation. Multiple class tokens gather visual cues in the last transformer block of CLIP ViT-L/14. Attention weights determine how much each token contributes to the global representation.
- Forgery-aware patch adaptation. Manipulation masks identify real and fake regions during training. Contrastive losses shape the patch embeddings, while map supervision aligns patch–text similarity with the annotated regions.
- Failure-driven prompt refinement. Qwen2.5-VL-3B-Instruct receives the current prompts and misclassified examples from each class. At inference, the detector reuses the final text features.
Prompt refinement across training
Successive prompts describe more specific cues, including jawline definition, mouth contours, and reflections. Each column traces the revisions for one class.

Quantitative Results
The detector is trained on FaceForensics++ (c23). The first two tables report cross-dataset ROC AUC. The third reports frame-level and video-level ROC AUC on the DF40 full-face synthesis subset. Higher values are better.
Frame-level AUC
| Method | Venue | CDF-v1 | CDF-v2 | DFDC | DFD | Avg. |
|---|---|---|---|---|---|---|
| Xception (Rossler et al. 2019) | ICCV’19 | 77.9 | 73.7 | 70.8 | 81.6 | 76.0 |
| X-ray (Li et al. 2020a) | CVPR’20 | 70.9 | 67.9 | 63.3 | 76.6 | 69.7 |
| FFD (Dang et al. 2020) | CVPR’20 | 78.4 | 74.4 | 70.3 | 80.2 | 75.8 |
| SPSL (Liu et al. 2021) | CVPR’21 | 81.5 | 76.5 | 70.4 | 81.2 | 77.4 |
| SRM (Luo et al. 2021) | CVPR’21 | 79.3 | 75.5 | 70.0 | 81.2 | 76.5 |
| Recce (Cao et al. 2022) | CVPR’22 | 76.8 | 73.2 | 71.3 | 81.2 | 75.6 |
| SBI (Shiohara and Yamasaki 2022) | CVPR’22 | 83.1 | 80.2 | 71.4 | 77.4 | 78.0 |
| UCF (Yan et al. 2023a) | ICCV’23 | 77.9 | 75.3 | 71.9 | 80.7 | 76.5 |
| ProDet (Cheng et al. 2024) | Neurips’24 | 90.9 | 84.5 | 72.4 | – | – |
| LSDA (Yan et al. 2024a) | CVPR’24 | 86.7 | 83.0 | 73.6 | 88.0 | 82.8 |
| RepDFD (Lin et al. 2025) | AAAI’25 | 83.0 | 80.0 | 77.3 | 85.8 | 81.5 |
| VLAForge† (Zhu et al. 2026) | CVPR’26 | 89.2 | 89.8 | 84.6 | 92.3 | 89.0 |
| Ours | – | 92.6 | 89.8 | 86.7 | 93.3 | 90.6 |
† Reproduced using the official code under consistent experimental settings.
Video-level AUC
| Method | Venue | CDF-v2 | DFDC | DFD |
|---|---|---|---|---|
| SBI (Shiohara and Yamasaki 2022) | CVPR’22 | 93.2 | 72.4 | 88.2 |
| TALL (Xu et al. 2023) | ICCV’23 | 83.1 | 69.3 | 83.3 |
| SeeABLE (Larue et al. 2023) | ICCV’23 | 87.3 | 75.9 | – |
| IID (Huang et al. 2023) | CVPR’23 | 83.8 | 70.0 | 93.9 |
| SFDG (Wang et al. 2023) | CVPR’23 | 75.8 | 73.6 | 88 |
| CADDM (Dong et al. 2023) | CVPR’23 | 93.9 | 73.9 | – |
| LAA-NET (Nguyen et al. 2024) | CVPR’24 | 95.4 | – | 80.0 |
| SAM (Choi et al. 2024) | CVPR’24 | 89.0 | – | 96.1 |
| ProDet (Cheng et al. 2024) | Neurips’24 | 92.6 | 70.7 | 90.1 |
| LSDA (Yan et al. 2024a) | CVPR’24 | 89.8 | 73.5 | 95.6 |
| CDFA (Lin et al. 2024) | ECCV’24 | 93.8 | 83.0 | 95.4 |
| Effort† (Yan et al. 2024b) | ICML’25 | 92.7 | 85.1 | 95.7 |
| Yan et al. (Yan et al. 2025) | CVPR’25 | 94.7 | 84.3 | 96.5 |
| FCG (Han et al. 2025) | CVPR’25 | 95.0 | 81.8 | – |
| RepDFD (Lin et al. 2025) | AAAI’25 | 89.9 | 81.0 | 95.1 |
| VLAForge† (Zhu et al. 2026) | CVPR’26 | 94.8 | 86.8 | 96.3 |
| Ours | – | 95.5 | 88.9 | 97.2 |
† Reproduced using the official code under consistent experimental settings.
Cross-generator Results
| Level | Method | VQGAN | StyleGAN | SiT | DiT | PixArt |
|---|---|---|---|---|---|---|
| Frame-level | RepDFD | 80.5 | 82.2 | 58.2 | 58.7 | 88.5 |
| VLAForge | 97.3 | 96.9 | 76.0 | 70.0 | 97.9 | |
| Ours | 99.7 | 98.9 | 82.3 | 77.7 | 99.1 | |
| Video-level | RepDFD | 85.0 | 86.3 | 69.3 | 58.9 | 94.8 |
| VLAForge | 99.1 | 96.9 | 84.0 | 80.3 | 99.3 | |
| Ours | 100 | 100 | 96.4 | 94.1 | 100 |
Qualitative Results
Patch–text similarity maps show which facial regions align with the fake prompt. Compare the predictions with the ground-truth mask across the four examples below.

Localization viewer
Sample A / D
