GazeCLIP: Gaze-Guided CLIP with Adaptive-Enhanced Fine-Grained Language Prompt for Deepfake Attribution and Detection

Yaning Zhang, Linlin Shen, Zitong Yu, Chunjie Ma, Zan GaoarXiv 2026

TL;DR

GazeCLIP is a novel framework that enhances deepfake detection and source attribution by leveraging eye gaze inconsistencies—a subtle "tell" that even advanced diffusion models struggle to replicate. By integrating gaze-aware visual features and adaptive language prompts into a CLIP-based architecture, the model achieves superior generalization, outperforming existing methods by over 6% in attribution accuracy on unseen generative models.

What Problem Does This Paper Address?

As generative AI advances, distinguishing between real and forged faces is becoming increasingly difficult. Current deepfake detection (DFD) and attribution (DFA) methods face two major hurdles:

  1. The Generalization Gap: Detectors trained on older Generative Adversarial Networks (GANs) often fail when faced with newer, high-fidelity techniques like diffusion or flow-based models.
  2. Task Isolation: Most research treats detection ("Is this fake?") and attribution ("Which model made this?") as separate problems, missing out on the potential synergy between identifying that something is wrong and what specific artifacts caused it.

The authors argue that visual modalities alone aren't enough. They propose a fine-grained approach that uses high-level semantic priors—specifically eye gaze—and vision-language matching to bridge these gaps.

Methods

GazeCLIP builds upon the CLIP (Contrastive Language-Image Pre-training) framework, introducing three key components to adapt it for deepfake forensics:

  • Visual Perception Encoder (VPE): This module uses a pre-trained gaze estimator to extract gaze vectors from a face. It identifies distribution differences between pristine and forged gaze patterns to mine global forgery embeddings.
  • Gaze-Aware Image Encoder (GIE): To keep the powerful "world knowledge" of CLIP intact, the authors freeze the main image encoder but inject gaze information through a specialized Gaze Injector and LoRA (Low-Rank Adaptation) layers. This allows the model to focus on gaze-aware forgery patterns without forgetting general visual features.
  • Language Refinement Encoder (LRE): Instead of using static text prompts, the LRE employs an Adaptive-enhanced Word Selector (AWS). This "plug-and-play" module dynamically weighs word embeddings in a prompt (e.g., "diffusion-based model," "identity swapped") to focus on the most relevant descriptive features for a specific image.

The model is trained using a multi-task loss function that combines attribution, detection, and cross-modal contrastive losses, forcing the vision and language branches to align on forgery-specific details.

The overall workflow of GazeCLIP, showing how gaze and appearance features are fused and matched with refined language prompts.

Datasets

The authors introduce a new, fine-grained DFAD benchmark encompassing approximately 20 advanced generators.

  • Seen Generators (Training): Includes models like StyleGAN2/3, LatDiff, and FaceSwapper, paired with real images from CelebA-HQ.
  • Unseen Generators (Testing): Evaluated on novel models like VQGAN, Stable Diffusion 2.1, and FLUX to test generalization.
  • In-the-wild Evaluation: The model was also tested on established datasets like WildDeepfake, Celeb-DF, and DFDC to ensure performance beyond synthetic benchmarks.

Key Insights and Ideas

  • Gaze as a Forensic Prior: The core "aha moment" is that while modern generators produce near-perfect skin textures, they often fail to preserve the precise geometry and direction of eye gaze. As shown in Figure 1, the distribution of gaze vectors in fake images (measured by FID scores) differs significantly from real ones, providing a robust signal for detection.
Fig. 1: Illustration of the gaze-sensitive prior trait. Each column shows a face yielded by various generators. The first to second rows display the RGB image and the gaze image derived from the pre-trained gaze estimator, respectively. We randomly select 10k real gaze prior vectors and 10k fake ones for each generator to calculate the FID score. The higher the FID score, the greater the difference between the real and fake gaze vector distributions. EFS denotes entire face synthesis, FS is face swap, and AM means attribute manipulation.
  • Attribution Boosts Detection: A surprising finding is that training a model to identify the source of a deepfake actually improves its ability to simply detect one. The fine-grained features needed for attribution help the model learn more generalizable forgery patterns.
  • Fine-Grained vs. Coarse Evaluation: The paper advocates for moving away from "mixed" evaluations where all fakes are lumped together. By evaluating performance on specific, unseen advanced generators (like flow models), they provide a more realistic measure of how these tools would perform against emerging threats.
Comparison between traditional coarse-grained evaluation and the authors' proposed fine-grained DFAD task.

Key Results

  • State-of-the-Art Performance: GazeCLIP outperformed existing SOTA models by an average of 6.56% in Accuracy (ACC) for attribution and 5.32% in Area Under the Curve (AUC) for detection.
  • Ablation Success: Removing the gaze encoder (GE) led to a ~10% drop in attribution accuracy, confirming that gaze is indeed a critical feature.
  • Robustness: The model showed high resilience to common image distortions like compression, blurring, and cropping, thanks to its focus on high-level semantic features (gaze) rather than just low-level textures.

Limitations and Future Work

  • Manual Prompt Engineering: Currently, the fine-grained language prompts for known generators are manually designed. The authors acknowledge that this is difficult to scale for entirely new, unknown forgery types.
  • Computational Cost: With nearly 200 million parameters, the model is relatively large. Future work aims to use knowledge distillation or Large Language Models (LLMs) to automatically generate prompts and streamline the architecture for better efficiency.

Summary updated

BibTeX
@misc{zhang2026gazeclip,
  author = {Yaning Zhang and Linlin Shen and Zitong Yu and Chunjie Ma and Zan Gao},
  title = {{GazeCLIP: Gaze-Guided CLIP with Adaptive-Enhanced Fine-Grained Language Prompt for Deepfake Attribution and Detection}},
  year = {2026},
  eprint = {2603.29295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.29295},
}
Figure