IMFD: End-to-end Multi-Face Forgery Detection through Instruction-based Large Vision-Language Models

Dasom Choi, Sangjun Moon, Hyeongchan Im, Jaeeon Park, Jingun Kwon, Hidetaka Kamigaito, Taro Watanabe, Manabu OkumuraarXiv 2026

Here is a concise, engaging summary of the paper "IMFD: End-to-end Multi-Face Forgery Detection through Instruction-based Large Vision-Language Models".

TL;DR

Traditional deepfake detectors struggle with multi-face images because they crop and analyze each face in isolation, ignoring crucial background context and inter-face relationships. IMFD (Instruction-based Multi-face Forgery Detector) solves this by using a single-stage Large Vision-Language Model (LVLM) framework that jointly localizes faces and detects forgeries. By explicitly injecting predicted face coordinates back into the text prompt as visual cues, IMFD achieves state-of-the-art performance while significantly reducing processing latency.

What Problem Does This Paper Address?

As generative AI models make creating realistic deepfakes trivial, detecting forged faces has become a critical security challenge. Most existing multi-face forgery detectors rely on a two-stage pipeline: first, an object detector crops out individual faces, and second, a binary classifier determines if each crop is real or fake.

This approach has a major flaw: it throws away global context. By ignoring the background and how faces relate to one another in a scene, these models frequently fail when faced with complex images containing multiple people at varying scales, lighting conditions, and poses. To fix this, we need models that can reason over the entire image simultaneously.

Methods

The authors introduce IMFD, an end-to-end single-stage detector built on top of an LVLM backbone (specifically InternVL2-2B).

Instead of just outputting bounding boxes and labels, IMFD uses a clever loop that integrates spatial grounding directly into the language model's prompt:

  1. Face Bounding Box Prediction: The model uses a pre-trained CLIP ViT-B/32 encoder combined with Weighted Boxes Fusion (WBF) to predict face coordinates from the raw image based on a simple query ("A photo of face").
  2. Instruction Augmentation: Rather than relying solely on the vision encoder's embeddings, the model explicitly injects these predicted coordinates, the total face count, and the image resolution directly into the textual instruction prompt.
  3. Joint Optimization: The network is trained end-to-end using a combined loss function that balances text generation (cross-entropy loss for identifying real vs. fake faces) and bounding box regression ($L_1$ loss).
Figure 2: Overview of IMFD. The green block is a standard LVLM architecture such as InternVL. The red block predicts face boxes that are injected into the in- struction.

By formatting the task as a question-answering problem where the prompt includes spatial coordinates, the LVLM learns exactly where to look and what decision to make for each face sequentially (ordered from left to right).

Figure 1: Instruction format for multi-face forgery detection using an ordered labeling output schema. “<image>” is a placeholder for the given image.

Datasets

Because no instruction-based multi-face deepfake datasets existed, the authors converted OpenForensics—a popular, large-scale multi-face forgery dataset—into an instruction-following format. The dataset includes:

  • Training: 44,122 image-instruction pairs.
  • Validation: 7,308 pairs.
  • Test-Development (ALL): 18,895 pairs (with a fake face ratio of 0.58).
  • LARGE Subset: A specialized evaluation subset of 1,522 images containing a higher-than-average number of faces (greater than 2.63 faces per image) to test the model's robustness in crowded scenes.

Key Insights and Ideas

  • Spatial Cues in Prompts are Superpowers: The core "aha moment" of the paper is that explicitly telling an LVLM the coordinates of the objects it needs to evaluate drastically improves its performance. As shown in the ablation studies, adding coordinates to the prompt jumps the Micro F1 score from 0.91 to 0.98 in the two-stage setting.
  • Scale Isn't Everything: Interestingly, scaling up the underlying LLM backbone (moving from InternVL2-2B to 4B or 8B) did not yield significant performance gains. The authors note that success depends much more on how effectively the model aligns visual regions with text instructions rather than raw parameter count.
  • Efficiency via Parallelism: By avoiding the sequential "crop-then-classify" loop of traditional two-stage methods, IMFD processes the entire image at once, drastically reducing maximum latency in images with many faces.

Key Results

IMFD was evaluated against several state-of-the-art (SOTA) baselines, including EfficientNet-B4, Capsule-Forensics, UCF, F3Net, and COMICS.

  • Superior Accuracy: In the single-stage setting (where the model must predict its own bounding boxes), IMFD achieved a Micro F1 ($F1_c$) of 0.90 and a Macro F1 ($F1_a$) of 0.84, handily outperforming the single-stage baseline COMICS ($F1_c$: 0.81, $F1_a$: 0.74).
  • Two-Stage Upper Bound: When provided with ground-truth bounding boxes (two-stage setup), IMFD achieved a near-perfect Micro F1 of 0.98, compared to just 0.70 for Capsule-Forensics.
  • Latency Reduction: In crowded scenes, IMFD demonstrated a massive reduction in maximum latency (263.7 ms vs. 1166.8 ms for Capsule and 5394.2 ms for UCF), making it far more viable for real-time applications.
Figure 3: Face bounding-box prediction and forgery de- tection by IMFD in two-stage and single-stage settings.

Limitations and Future Work

Despite its strong performance, the authors highlight a few key limitations:

  1. Localization Dependency: The single-stage model's forgery detection accuracy is highly sensitive to the quality of its initial bounding box predictions. If the model misses a face or draws an inaccurate box, the forgery detection step fails downstream.
  2. Dataset Constraints: Evaluation was restricted to OpenForensics, as it is currently the only publicly available multi-face forgery dataset of its kind.
  3. Static Images Only: The framework is strictly image-based and does not account for temporal consistency, meaning it cannot yet be applied directly to video deepfakes without extension.

Future Directions: The team plans to explore alternative LVLM backbones, improve the underlying bounding-box prediction mechanism, and extend the IMFD framework to handle video inputs.

Summary updated

BibTeX
@misc{choi2026imfd,
  author = {Dasom Choi and Sangjun Moon and Hyeongchan Im and Jaeeon Park and Jingun Kwon and Hidetaka Kamigaito and Taro Watanabe and Manabu Okumura},
  title = {{IMFD: End-to-end Multi-Face Forgery Detection through Instruction-based Large Vision-Language Models}},
  year = {2026},
  eprint = {2609.19693},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.19693},
}
Figure