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
International Conference on Learning Representations 2026 · Oral
Overview
The proliferation of AI-generated content (AIGC), particularly deepfakes, presents an escalating societal and technological challenge. This talk introduces Veritas, an innovative deepfake detection framework that addresses a critical limitation of current methods: their inability to generalize effectively to out-of-distribution (OOD) scenarios. While existing detectors often perform well on in-domain or cross-model tests, they falter significantly when confronted with fundamentally new forgery types or unseen domains from real-world applications. Veritas, developed by a team including Hao Tan, jun lan, and others, tackles this by integrating Multimodal Large Language Models (MLMMs) with a novel pattern-aware reasoning mechanism.

Key moments
- 0:00 Introduction: Deepfake detection challenges and motivation
- 2:00 HydraFake dataset and Veritas detector introduction
- 3:30 Existing SOTA detectors fail on OOD scenarios
- 4:00 Veritas's pattern-aware reasoning inspired by human thinking
- 6:00 Two-stage training to prevent memorization and ensure reasoning
- 7:15 Veritas's strong performance and generalization to AIGC
- 9:00 Combining machine perception with structured human-like reasoning
Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning
Speakers: Hao Tan, jun lan, Zichang Tan, Senyuan Shi, Ajian Liu, Chuanbiao Song, Huijia Zhu, Weiqiang Wang, Jun Wan, Zhen Lei
Conference: ICLR 2026
YouTube: https://slideslive.com/39062117
Overview
The proliferation of AI-generated content (AIGC), particularly deepfakes, presents an escalating societal and technological challenge. This talk introduces Veritas, an innovative deepfake detection framework that addresses a critical limitation of current methods: their inability to generalize effectively to out-of-distribution (OOD) scenarios. While existing detectors often perform well on in-domain or cross-model tests, they falter significantly when confronted with fundamentally new forgery types or unseen domains from real-world applications. Veritas, developed by a team including Hao Tan, jun lan, and others, tackles this by integrating Multimodal Large Language Models (MLMMs) with a novel pattern-aware reasoning mechanism.
The core motivation behind Veritas stems from two key observations: the inadequacy of current deepfake detection benchmarks for real-world deployment, and the superficial nature of LLM-based explanations in existing systems. The research team highlights that training on diverse data often paradoxically leads to a slight drop in performance for many methods, underscoring a fundamental generalization gap. Veritas proposes a solution that mimics human-like reasoning processes, organizing complex decision-making into structured patterns like fast judgment, planning, and self-reflection. This approach not only significantly boosts detection accuracy in challenging OOD settings, such as cross-forgery and cross-domain scenarios, but also introduces HydraFake, a new, more rigorous dataset and evaluation protocol designed to push the boundaries of deepfake detection research. The authors have fully open-sourced their training data, model, and code, contributing a substantial resource to the ML community.
Background
▶ Watch: Introduction: Deepfake detection challenges and motivation (0:00)
The rapid advancement of AIGC technologies has led to a parallel arms race in deepfake detection. However, the field faces significant hurdles in developing robust and deployable solutions. A primary issue identified by the Veritas team is the mismatch between current deepfake detection benchmarks and real-world operational challenges. Standard protocols typically involve training models on a single dataset and evaluating them on a few others. In practice, however, detection systems must contend with dynamic and complex OOD scenarios, including deepfakes generated by entirely new models, novel forgery types that manipulate faces in previously unseen ways, and content originating from diverse, unfamiliar domains such as those found on the web or in commercial applications. This fundamental disconnect often results in existing methods failing to scale effectively; surprisingly, performance can even degrade slightly as training data becomes more abundant and diverse, rather than improving generalization.
Beyond data and evaluation protocols, the architectural limitations of current deepfake detectors also contribute to the generalization problem. Many state-of-the-art approaches primarily rely on a smaller vision backbone for making the actual detection decision, while Language Models (LLMs) are often relegated to a post-hoc role, providing explanations after the fact. While these LLMs can generate plausible and coherent explanations for a model's prediction, this setup does not fundamentally enhance the model's intrinsic generalization capabilities. The decision-making process remains largely confined to the vision component, which struggles with OOD variations. Consequently, such methods often produce convincing narratives without actually improving the core task of reliably identifying unseen deepfakes. This deficiency underscores the need for a more integrated approach where reasoning is central to the detection process, rather than an afterthought. Early attempts with zero-shot MLMMs, for instance, demonstrate this challenge, achieving average accuracies as low as 58.3% for models like InternVL2-8B and remaining below 75% for even advanced closed-source models such as GPT-4o and Gemini 15 Pro, confirming the inherent difficulty of deepfake detection for current general-purpose models.
Key Findings
▶ Watch: Existing SOTA detectors fail on OOD scenarios (3:30)
The Veritas project introduces several pivotal contributions that significantly advance the state of deepfake detection:
- HydraFake Dataset: A novel and highly rigorous deepfake detection dataset is introduced, designed to address the limitations of existing benchmarks. HydraFake features hierarchical generalization testing and a more realistic evaluation protocol. It combines classic deepfake sources with public high-quality data and deepfakes reproduced using advanced techniques. Crucially, it expands beyond traditional manipulations to include recent and diverse categories such as face restorations, face relighting, identity-preserve personalization, generative face swapping, deepfakes produced by visual autoregressive models, and content from commercial applications like GPT-4o, Dreamina, and Hello AI. This comprehensive dataset provides an unprecedented challenge for OOD generalization.
- Veritas: MLMM-based Detector with Pattern-Aware Reasoning: The core innovation is Veritas, a Multimodal Large Language Model (MLMM)-based deepfake detector that integrates pattern-aware reasoning. Inspired by human cognitive processes, Veritas organizes the detection reasoning into distinct patterns: fast judgment, planning, reasoning, reflection, and conclusion. This structured approach allows the model to conduct a more logical and holistic analysis of potential deepfakes, moving beyond simple feature detection.
- Enhanced OOD Generalization: Veritas demonstrates substantial improvements in challenging out-of-distribution (OOD) settings, particularly in cross-forgery and cross-domain scenarios. While existing state-of-the-art detectors perform reasonably well on cross-model scenarios (generalizing to different generative models), they experience significant performance degradation when confronted with fundamentally new types of manipulations or unseen content domains. Veritas consistently outperforms these baselines, showcasing its ability to truly generalize.
- Novel Two-Stage Training Pipeline: To ensure the model learns to reason faithfully for deepfake detection rather than merely memorizing training data shortcuts, Veritas employs a sophisticated two-stage training pipeline. This pipeline includes mixed-non-preference optimization during the cold-start phase, which uses different kinds of hallucination as non-preference anchors to steer the model towards faithful perception. Subsequently, during the Reinforcement Learning (RL) process, a pattern-aware reward mechanism is introduced. Unlike methods that reward arbitrary reasoning length, this mechanism incentivizes helpful self-reflection and planning while penalizing unnecessary reflection, promoting adaptive reasoning at the pattern level.
- Broad Generalization Beyond Facial Deepfakes: An intriguing finding is Veritas's ability to generalize beyond its training on facial deepfake data to general AIGC detection tasks. An example provided in the talk illustrates how the model can identify a potentially odd detail in an authentic document image (e.g., a dog's position) but then explicitly reflect that this anomaly does not violate the broader structure of a real edited document, demonstrating controlled reasoning rather than trigger-based detection.
- Open-Source Contribution: The authors have fully open-sourced the training data, the Veritas model, and its associated code, providing a valuable resource for the research community to build upon and further explore robust deepfake detection methodologies.
Technical Deep Dive
▶ Watch: Veritas's pattern-aware reasoning inspired by human thinking (4:00)
At the heart of Veritas lies its innovative integration of Multimodal Large Language Models (MLMMs) with a structured, pattern-aware reasoning framework. The base architecture for Veritas leverages an MLMM, specifically mentioning InternVL2-8B as a foundational component. This choice signifies a move towards models capable of processing and reasoning over both visual and textual information, a critical step beyond traditional vision-only detectors.
The most distinctive technical aspect is the pattern-aware reasoning mechanism, which draws inspiration from human cognitive processes when evaluating authenticity. The authors posit that humans typically follow a structured thinking process: an initial fast judgment based on first impressions, followed by identifying prominent features for a preliminary conclusion. For more challenging cases, a layered analysis and deeper thinking, including self-reflection, are engaged to support or overturn the initial judgment. Veritas formalizes this into five distinct thinking patterns:
- Fast Judgment: Making an initial assessment based on immediate visual cues.
- Planning: Strategizing how to approach the detection task, identifying areas for deeper investigation.
- Reasoning: Conducting a detailed analysis, examining specific features, inconsistencies, or anomalies. This might involve generating detailed descriptions of facial features or identifying inconsistencies in lighting or texture.
- Reflection: Critically evaluating the reasoning process and initial judgments. This is where the model might discover anomalies or reconcile conflicting evidence. For instance, an example shows the model discovering "anomalies on the badge" in an image, contributing to a more holistic reason.
- Conclusion: Arriving at a final decision regarding the authenticity of the image based on the preceding steps.
This structured approach contrasts sharply with generic MLMMs, which might either make incorrect decisions or rely on weak, superficial cues (e.g., "skin looks smooth," "image feels stylized"). Veritas, by design, is encouraged to produce more holistic and robust reasons, such as "example facial features" in its reasoning part and discovering "anomalies" during self-reflection. Experimental results confirm that this pattern-aware reasoning provides superior generalization, particularly in cross-forgery and cross-domain scenarios, compared to mere post-hoc explanations or flexible but unstructured reasoning.
To ensure the model genuinely learns to reason for deepfake detection rather than memorizing superficial patterns or training data shortcuts, the authors devised a sophisticated two-stage training pipeline:
- Cold-Start with Mixed-Non-Preference Optimization: The initial phase follows a standard cold-start approach but introduces mixed-non-preference optimization. This technique is designed to mitigate "reasoning shortcuts," where a model might output a correct answer with a generic explanation (e.g., "skin texture is over-smooth, image is too perfect, so it's fake"). Such generic explanations are often indicative of memorization rather than true understanding, hindering generalization to OOD samples. Mixed-non-preference optimization addresses this by using different kinds of "hallucination" – incorrect but plausible-sounding model outputs – as non-preference anchors. By explicitly training the model to distinguish between faithful perception and these hallucinated non-preferences, it is steered towards a more accurate and robust understanding of authentic and manipulated content.
- Reinforcement Learning (RL) with Pattern-Aware Reward Mechanism: Following the cold-start, the model undergoes an RL phase. Unlike previous methods that might encourage adaptive reasoning simply through rewarding the length of explanations, Veritas introduces a pattern-aware reward mechanism. This mechanism operates on the principle that absolute reasoning length is not the critical factor. Instead, the focus is on incentivizing specific, helpful thinking patterns. The model is rewarded for engaging in beneficial self-reflection and planning, which are crucial for adaptive reasoning in complex scenarios. Conversely, it is penalized for "unnecessary reflection" or superficial reasoning that does not contribute to a robust decision. This targeted reward structure enables adaptive reasoning at the granular pattern level, significantly enhancing performance on challenging OOD scenarios by fostering a deeper, more structured analytical capability.
This combination of a powerful MLMM backbone, a human-inspired reasoning framework, and a meticulously designed training pipeline allows Veritas to combine the high-level semantic understanding capabilities of humans with the pixel-level perceptual evidence that machines can discern, leading to a more robust and generalizable deepfake detection system.
Experimental Setup & Results
▶ Watch: Veritas's strong performance and generalization to AIGC (7:15)
The evaluation of Veritas was conducted using the newly introduced HydraFake dataset, designed specifically to challenge the generalization capabilities of deepfake detectors under realistic OOD conditions.
HydraFake Dataset Composition and Protocol:
The dataset is a rich compilation from three main sources:
- Classic Deepfake Datasets: Traditional benchmarks providing a foundation.
- Public High-Quality Deepfake Data: Incorporating more recent and sophisticated publicly available deepfakes.
- Reproduced Advanced Deepfake Techniques: The authors actively reproduced cutting-edge deepfake generation methods to ensure the dataset includes the latest manipulation types.
Beyond traditional face swapping or manipulation, HydraFake includes diverse and challenging categories:
- Face restorations
- Face relighting
- Identity-preserve personalization
- Generative face swapping
- Deepfakes produced by visual autoregressive models
- Content from commercial applications like GPT-4o, Dreamina, and Hello AI
The evaluation protocol is hierarchical and designed for rigorous generalization testing:
- Training Set: Contains abundant sources but is deliberately restricted to only three basic forgery types during the model training phase. This restriction forces the model to learn generalizable features rather than memorizing specific forgery artifacts.
- Evaluation Levels: Testing is divided into four distinct levels:
- In-domain: Testing on data similar to the training distribution.
- Cross-model: Generalizing to deepfakes generated by different models but of known forgery types.
- Cross-forgery: Generalizing to fundamentally new and unseen types of manipulations.
- Cross-domain: Generalizing to deepfakes from entirely new, unseen domains (e.g., commercial apps, web data).
Baselines and Comparative Analysis:
Veritas was benchmarked against three groups of detectors:
- Vision-only deepfake detectors: Traditional methods relying solely on visual features.
- Zero-shot MLMMs: General-purpose multimodal models evaluated without specific deepfake training. Examples include InternVL2-8B, GPT-4o, and Gemini 15 Pro.
- MLMM-based forgery detectors: Other specialized deepfake detectors that incorporate MLMMs.
Headline Results:
- Challenge of Existing Methods: Under the rigorous HydraFake evaluation settings, existing state-of-the-art detectors demonstrate a clear pattern: they perform reasonably well on cross-model scenarios but degrade significantly on cross-forgery and cross-domain settings. This confirms that current methods can generalize to different generative models but not to fundamentally new kinds of manipulations, highlighting a critical challenge.
- Zero-Shot MLMM Insufficiency: Zero-shot MLMMs proved largely insufficient for deepfake detection. The base model, InternVL2-8B, achieved only 58.3% average accuracy. Even advanced closed-source models like GPT-4o and Gemini 15 Pro remained below 75% average accuracy, underscoring the difficulty of the task for general-purpose AI.
- Veritas's Substantial Gains: The Veritas model achieved substantial gains over all previous methods, particularly in the challenging cross-forgery and cross-domain scenarios where other models struggled significantly (often dropping below 85% accuracy). This validates the effectiveness of the pattern-aware reasoning and the specialized training pipeline.
- Effectiveness of Training Strategies: Ablation studies further demonstrated the individual and combined effectiveness of the proposed training strategies, including mixed-non-preference optimization and the pattern-aware reward mechanism, in contributing to Veritas's superior generalization capabilities.
- General AIGC Detection: An interesting and important finding was Veritas's ability to generalize well to general AIGC detection, even though it was primarily trained on facial deepfake data. An example cited involved an authentic document image where the model noticed a "slightly odd" dog position but explicitly reflected that this detail did not "violate the broader structure of the real edit document." This demonstrates a sophisticated, controlled reasoning process rather than a mere "trigger-based" detection, suggesting broad applicability beyond its initial scope.
These results collectively demonstrate that Veritas represents a significant leap forward in building deepfake detection systems that are robust, generalizable, and capable of addressing the evolving landscape of AI-generated content.
Practical Implications
▶ Watch: Combining machine perception with structured human-like reasoning (9:00)
The development of Veritas and the HydraFake dataset carries significant practical implications for various stakeholders involved in the AI/ML ecosystem, from model builders to infrastructure teams and deployers.
For Practitioners and Infra Teams:
Veritas directly addresses the most pressing challenge in real-world deepfake detection: out-of-distribution (OOD) generalization. For infrastructure teams deploying detection systems, this means a much more robust and reliable defense against novel deepfake generators, unseen manipulation techniques, and content originating from new, evolving domains. Instead of constantly retraining or deploying new models for every emergent deepfake variant, Veritas offers a framework that can adapt and reason about previously unseen threats. This leads to reduced operational overhead and increased confidence in detection capabilities in dynamic, adversarial environments. The ability to generalize to commercial applications like GPT-4o and Dreamina is particularly relevant, as these platforms increasingly generate content that could be misused.
For Model Builders and Researchers:
Veritas provides a powerful blueprint for designing future deepfake detectors and, more broadly, for building robust AI systems that require nuanced reasoning. It highlights the limitations of current approaches where MLMMs are used merely for post-hoc explanations. Instead, it advocates for an integrated approach where reasoning is central to the decision-making process. Model builders can learn from the pattern-aware reasoning framework, understanding how to structure an MLMM's analytical process to mimic human-like cognitive patterns (fast judgment, planning, reflection). The novel two-stage training pipeline, including mixed-non-preference optimization and the pattern-aware reward mechanism, offers concrete strategies for mitigating reasoning shortcuts and fostering faithful, adaptive reasoning in complex tasks. This research encourages a shift from mere pattern recognition to deeper, context-aware understanding.
Tradeoffs and Limitations:
While Veritas offers substantial improvements, certain tradeoffs and limitations are inherent:
- Computational Cost: MLMMs, especially those with sophisticated reasoning capabilities, are inherently more computationally intensive than simpler vision-only models. Training and inference with such models require significant computational resources (GPUs/TPUs), which could be a barrier for smaller organizations or edge deployments.
- Data Dependence: Although Veritas demonstrates strong OOD generalization, its robust performance is built upon the diverse and challenging HydraFake dataset. While the training protocol restricts basic forgery types, the model still benefits from exposure to a wide array of deepfake categories during dataset construction. Acquiring and curating such high-quality, diverse, and representative data remains a substantial challenge.
- The "Human Perception Limit" Question: The authors acknowledge an interesting open question: "if highly realistic deepfakes are already hard for human to identify, would reasoning still work?" They hypothesize that Veritas combines machine's superior pixel-level perceptual evidence with a structured, human-like reasoning framework, potentially offering capabilities beyond human psychological limits. However, the ultimate efficacy against perfectly undetectable deepfakes remains an area for future investigation. This implies that while Veritas pushes the boundary, it does not offer a definitive end-all solution to the deepfake problem, especially as generative models continue to improve.
- Complexity of Reasoning Interpretation: While Veritas produces more holistic reasons, interpreting the full reasoning chain of a complex MLMM can still be challenging compared to simpler, more transparent models. This might impact debuggability or auditability in highly sensitive applications.
In essence, Veritas provides a critical step towards deployable deepfake detection, offering a more resilient and intelligent defense mechanism. It pushes the field to consider reasoning as a core component of AI intelligence rather than a mere explanatory layer, setting a new standard for generalization in adversarial domains.
Key Takeaways
- Deepfake detection faces critical out-of-distribution (OOD) generalization challenges, particularly in cross-forgery and cross-domain scenarios, where existing methods struggle significantly.
- Veritas introduces a novel Multimodal Large Language Model (MLMM)-based deepfake detector that employs pattern-aware reasoning, mimicking human cognitive processes (fast judgment, planning, reasoning, reflection, conclusion) to achieve robust generalization.
- The HydraFake dataset is a new, rigorous benchmark incorporating diverse and advanced deepfake types (e.g., commercial apps, visual autoregressive models) with a hierarchical evaluation protocol designed to test true OOD generalization.
- Veritas utilizes a sophisticated two-stage training pipeline: mixed-non-preference optimization to mitigate reasoning shortcuts and a pattern-aware reward mechanism in RL to incentivize beneficial reflection and planning, fostering adaptive and faithful reasoning.
- The model achieves substantial gains over state-of-the-art baselines on challenging OOD settings and demonstrates promising generalization capabilities for general AIGC detection beyond facial deepfakes.
- By combining machine's perceptual evidence with a structured, human-like reasoning framework, Veritas offers a potential for deepfake detection capabilities that extend beyond human psychological limits.
About the Speaker(s)
The work on Veritas was presented by Zifan on behalf of the principal authors. The research team behind this significant contribution includes Hao Tan, jun lan, Zichang Tan, Senyuan Shi, Ajian Liu, Chuanbiao Song, Huijia Zhu, Weiqiang Wang, Jun Wan, and Zhen Lei. While specific titles or affiliations for all authors were not detailed in the presentation, their collective expertise has led to this advanced deepfake detection framework and its associated resources.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026