Identity-Aware Vision-Language Model for Explainable Face Forgery Detection

Junhao Xu, Jingjing Chen, Yang Jiao, Jiacheng Zhang, Zhiyu Tan, Hao Li, Yu-Gang Jiang

TL;DR

This paper introduces a personalized vision-language model (VLM) framework for face forgery detection that simultaneously tackles low-level visual artifacts and high-level semantic inconsistencies (like an individual participating in an implausible activity). By dynamically encoding identity-specific priors into just 10 specialized tokens and utilizing a lightweight detection adapter, the model achieves 94.25% accuracy and provides human-readable explanations without requiring resource-intensive full-model fine-tuning.

What Problem Does This Paper Address?

Traditional deepfake and face forgery detectors suffer from two major flaws. First, they rely almost exclusively on low-level visual cues (like pixel anomalies or compression artifacts). While effective against known manipulation methods, they fail to generalize when confronted with novel, high-quality generation techniques where the pixels look pristine. Second, they are completely blind to semantic context—they cannot tell if an image is fake based on the fact that the person depicted is wearing impossible clothing or performing an uncharacteristic action.

Conversely, while general Vision-Language Models (VLMs) excel at high-level semantic reasoning, they struggle to spot subtle pixel-level artifacts. Furthermore, adapting a VLM to recognize specific individuals typically requires heavy supervised fine-tuning (SFT), which is computationally expensive and risks "catastrophic forgetting" of previously learned identities.

Comparison of traditional detectors vs. the proposed approach on known and novel forgeries.

Methods

The authors propose a personalized VLM framework built on top of LLaVA-1.6-13B that integrates multi-level features using two main components:

  1. Personalized Identity Prior Injection: Instead of fine-tuning the entire model, the framework learns identity-specific knowledge using two specialized identifier tokens: <id_a> (for appearance attributes like facial features and hairstyle) and <id_b> (for behavioral patterns and typical contexts). Each identifier maps to a small set of learnable "soft tokens" that capture subtle visual details hard to describe in text.
  2. Detection Adapter for Low-Level Artifacts: To prevent the model from losing pixel-level forgery clues, a lightweight adapter extracts features from the shallow layers of the vision encoder. These early layers retain critical information about noise patterns and compression boundaries that deep semantic layers typically discard.

During inference, the model combines these low-level adapter tokens with standard visual tokens and identity tokens to perform chain-of-thought (CoT) reasoning, outputting both a binary authenticity judgment and a natural language explanation.

Overview of the proposed framework architecture.

Datasets

Because no existing identity-centric datasets were tailored for explainable VLM forgery detection, the authors introduced a new benchmark called IDImage.

  • Composition: It tracks 20 diverse public figures from politics and entertainment.
  • Training Split: Contains ~279 real images per individual and forgeries generated via SimSwap (GAN-based face swapping) and PhotoMaker (diffusion-based generation).
  • Test Split: Uses entirely different generation methods—Roop, StoryMaker, and PuLID—to strictly evaluate how well the model generalizes to unseen forgery techniques.
Data curation and annotation pipeline for the IDImage dataset.

Key Insights and Ideas

  • Shallow Features Matter: Standard VLMs optimize their vision encoders for deep semantic understanding, which inadvertently wipes out the low-level noise patterns crucial for deepfake detection. Pulling features from early layers bypasses this issue.
  • Decoupling Appearance and Behavior: Splitting identity into distinct appearance (<id_a>) and behavioral (<id_b>) tokens yields better performance than using a single unified identity token. It allows the language model to isolate physical anomalies from contextual ones.
  • Soft Tokens Beat Hard Text: Forcing a VLM to rely on human-written text descriptions or raw reference images for personalization often leads to overgeneralization or poor multimodal alignment. Continuous soft tokens act as a much more precise identity anchor.

Key Results

  • State-of-the-Art Performance: The proposed model achieved 94.25% accuracy and a 94.08% F1 score on the IDImage test set, outperforming traditional detectors (like ESSP and NPR) and beating fine-tuned VLMs and commercial models like GPT-4o by 5–11%.
  • Efficiency: This performance was unlocked using only 10 extra tokens per identity.
  • Data Efficiency: Even when training data was scaled down to just 25% of the full dataset, the model maintained a robust F1 score of 86.94%.
  • Explanation Quality: In human evaluations grading clarity and conciseness on a 5-point scale, the model scored 4.01/5.00, beating GPT-4o (3.87), which frequently suffered from over-verbosity.

Limitations and Future Work

The authors note that collecting the required 200–300 authentic reference images per person to fully train the identity tokens can be costly and labor-intensive for practical, large-scale deployment. Though the model performs respectably at lower data scales (e.g., an 81.73% F1 score at 10% data utilization), performance drops significantly to a 68.00% F1 score when only 5% of the data is available. Future work will likely need to focus on achieving high-fidelity identity personalization with even fewer reference examples (few-shot or one-shot learning).

Summary updated

BibTeX
@inproceedings{xu2026identity,
  author = {Junhao Xu and Jingjing Chen and Yang Jiao and Jiacheng Zhang and Zhiyu Tan and Hao Li and Yu-Gang Jiang},
  title = {{Identity-Aware Vision-Language Model for Explainable Face Forgery Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i13.38108},
}
Figure