Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning

Hao Tan, jun lan, Zichang Tan, Senyuan Shi, Ajian Liu, Chuanbiao Song, Huijia Zhu, Weiqiang Wang, Jun Wan, Zhen Lei

Introduction

Deepfake detection faces a critical bottleneck: models trained on homogeneous, low-quality datasets often fail spectacularly when confronted with novel forgery techniques or high-quality "in-the-wild" images. This discrepancy between training environments and the real-world "arms race" of generative AI leads to models that overfit to specific, known artifacts. When these detectors encounter a brand-new generative architecture (Cross-Model), a novel manipulation like face relighting (Cross-Forgery), or images from a different social media platform (Cross-Domain), their performance plummets.

Furthermore, most existing detectors operate as "black boxes." They provide a binary "real or fake" label without explaining the rationale behind their decision. This lack of transparency makes them difficult to trust in high-stakes industrial, journalistic, or legal scenarios.

To address these challenges, researchers introduce HydraFake, a rigorous benchmark for out-of-distribution (OOD) generalization, and VERITAS, a Multi-Modal Large Language Model (MLLM) based detector that employs "pattern-aware reasoning" to emulate human forensic analysis.

The HydraFake Dataset

To properly evaluate modern deepfake detectors, the authors constructed HydraFake, a 100,000-image dataset (50k real, 50k fake) designed specifically for hierarchical Out-of-Distribution (OOD) testing. It includes:

  • Classic Deepfakes: Standard datasets like FF++ and FFIW, which mostly feature low-resolution manipulations.
  • Advanced Deepfakes: Reimplemented state-of-the-art methods, including Face Restoration, Relighting, and Personalization.
  • In-the-wild Forgeries: High-quality images crawled from social media and generated by commercial applications like GPT-4o and Dreamina.

The evaluation protocol restricts the training set to three basic forgery types, while testing spans four progressively difficult levels: In-Domain, Cross-Model, Cross-Forgery, and Cross-Domain.

Methodology: Internalizing Forensic Reasoning

The core innovation of VERITAS is a two-stage training pipeline designed to turn a general MLLM into a specialized forensic expert by internalizing a structured reasoning process.

1. Pattern-Guided Cold-Start First, the model is fine-tuned on 36k samples to learn a specific, human-like reasoning format: Fast Judgment $\rightarrow$ Planning $\rightarrow$ Reasoning $\rightarrow$ Self-Reflection $\rightarrow$ Conclusion. To prevent the model from merely memorizing answers or providing vague explanations, the authors employ Mixed Preference Optimization (MiPO). This steers the model toward precise, fine-grained reasoning traces and penalizes "non-preferred" outputs, such as correct answers backed by vague reasoning.

2. Pattern-Aware Exploration (P-GRPO) Next, the model undergoes Reinforcement Learning (RL) using a modified version of Group Relative Policy Optimization. Instead of solely rewarding classification accuracy, the authors introduce a "pattern-aware reward." The model receives higher rewards for reaching the correct answer through active planning or self-reflection. Conversely, it is penalized for "overthinking"—using these complex patterns but ultimately arriving at the wrong conclusion.

Comparison of reasoning traces between VERITAS and other MLLMs on an unseen domain image.

Key Insights

  • Reasoning as a Generalization Tool: By forcing the model to follow a structured forensic process, it learns to identify high-level semantic and structural inconsistencies (e.g., "cognitive violations of physical laws") rather than overfitting to specific pixel-level artifacts that might disappear in the next generation of AI models.
  • The Value of Self-Reflection: The "Self-Reflection" pattern is crucial. It allows the model to overturn an initial "fast judgment" if it spots a subtle artifact later in the analysis, mimicking the human "wait a minute..." moment when examining a highly convincing fake.
  • Robustness without Augmentation: Remarkably, VERITAS demonstrates high robustness to common perturbations like JPEG compression and Gaussian blur. Even though it wasn't explicitly trained on these augmentations, its reliance on high-level reasoning makes it naturally resilient to low-level image degradation.

Results and Performance

VERITAS sets a new standard for deepfake detection, particularly in challenging, unseen environments:

  • State-of-the-Art Accuracy: VERITAS achieved an average accuracy of 90.7% across all HydraFake splits, representing a 6.0% gain over the previous best detector.
  • OOD Superiority: While traditional detectors struggle with unseen forgeries (Cross-Forgery), VERITAS maintained a 90.3% accuracy. In the most difficult Cross-Domain scenarios, it achieved 82.2%, significantly outperforming competitors.
  • Beating General MLLMs: VERITAS surpassed Gemini-2.5-Pro by 11.8% and GPT-4o by over 30% in detection accuracy, proving that general-purpose reasoning is insufficient for deepfake detection; specialized forensic training is essential.

Limitations and Future Work

While VERITAS represents a significant leap forward, it currently only analyzes static images. Detecting deepfake videos, which introduce temporal artifacts, is a critical next step. Additionally, the model experiences performance dips on very low-resolution images where the visual details necessary for complex reasoning are degraded. Future work may explore a "collaborative system" where MLLMs work alongside smaller, specialized vision models to handle both high-level reasoning and low-level pixel distribution modeling simultaneously.

Summary updated

BibTeX
@inproceedings{tan2026veritas,
  author = {Hao Tan and jun lan and Zichang Tan and Senyuan Shi and Ajian Liu and Chuanbiao Song and Huijia Zhu and Weiqiang Wang and Jun Wan and Zhen Lei},
  title = {{Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5VXJPS1HoM},
}
Figure