Exploiting Facial Relationships and Feature Aggregation for Multi-Face Forgery Detection

Chenhao Lin, Fangbin Yi, Hang Wang, Jingyi Deng, Zhengyu Zhao, Qian Li, Chao Shen

Deepfake detection has traditionally been a "one-on-one" fight: a model looks at a single face and decides if it’s real or forged. But real-world media isn't always that simple. From group selfies to crowded news footage, images often contain multiple faces—some real, some manipulated.

A new paper from researchers at Xi’an Jiaotong University argues that we’ve been missing a trick. By treating faces as isolated islands, current detectors ignore the valuable "social" context within an image. Their proposed framework, FILTER, changes the game by learning the relationships between faces to spot the forgeries.

TL;DR

FILTER (Facial relatIonships Learning and feaTurE aggRegation) is a novel framework designed specifically for multi-face forgery detection. It achieves state-of-the-art results by analyzing the relationships between different faces in an image and combining local facial features with global image context.

What Problem Does This Paper Address?

Most existing deepfake detectors are optimized for single-face scenarios. When applied to images with multiple people, they typically detect each face individually and check for artifacts.

However, this "individualistic" approach has a major flaw: it ignores the underlying consistency (or lack thereof) between faces in the same environment. In a multi-face forgery, a manipulated face might look convincing on its own, but it may look "off" when compared to a real face standing right next to it under the same lighting and camera conditions. The authors identify a critical gap in research regarding how to leverage these inter-facial relationships and global image information to improve detection accuracy.

Methods

The FILTER framework consists of three main stages:

  1. Pre-processing: The system uses Mask R-CNN to detect all faces in an image and an EfficientNet-b4 backbone to extract high-dimensional features for each face.
  2. Multi-face Relationship Learning (MRL): This is the core innovation. The model constructs a self-similarity matrix based on the cosine distance between the features of every face in the image. This matrix is then processed by a Transformer encoder, allowing the model to "compare and contrast" faces to find inconsistencies.
  3. To sharpen this, they use Metric Learning (specifically "Pull" and "Push" losses). This forces the model to cluster real face features together and push forged face features far away from the real ones in the feature space.
  4. Global Feature Aggregation (GFA): Beyond just looking at faces, the model aggregates all facial features into a single global representation using convolution and pooling. This provides a "bird's-eye view" of the image, helping the model make a final image-level judgment on whether a forgery is present.

Datasets

The researchers evaluated FILTER on two primary benchmarks:

  • OpenForensics: A large-scale dataset specifically designed for multi-face detection in-the-wild, featuring complex scenes with an average of 2.9 faces per image.
  • FFIW10K (Face Forensics in the Wild): A high-quality video dataset. The authors sampled frames from these videos to test FILTER’s image-level detection capabilities.

Key Insights and Ideas

  • Context is King: The "aha moment" here is that a forgery is often easier to spot through comparison than through isolated inspection. By learning "real vs. real" and "real vs. fake" relationships, the model becomes much more robust.
  • The Similarity Matrix is Essential: In ablation studies, removing the self-similarity matrix (the component that learns facial relationships) caused the most significant drop in performance. This proves that the "relationship" data is more valuable than just having more layers or better backbones.
  • Plug-and-Play Compatibility: The authors showed that FILTER can be integrated with other state-of-the-art methods (like M2TR). When combined, the hybrid model reached even higher accuracy, suggesting FILTER captures unique information that other models miss.

Key Results

FILTER outperformed several heavyweights in the field, including Xception, EfficientNet, and specialized multi-face models like S-MIL.

  • OpenForensics (Test-Challenge): FILTER achieved an AUC of 89.89%, significantly higher than the previous best-performing Multi-attention model (86.02%).
  • FFIW10K: On this challenging dataset, FILTER reached an AUC of 87.0%, a massive jump over the FFIW baseline (70.9%) and S-MIL (61.2%).
  • Qualitative Success: Visualizations show that FILTER is remarkably good at avoiding "false positives"—it doesn't just get suspicious of every face; it accurately identifies the specific forged face in a crowd of real ones.

Limitations and Future Work

While the paper demonstrates a significant leap forward, a few areas remain for exploration:

  • Computational Complexity: As the number of faces in an image grows, the self-similarity matrix grows quadratically ($n \times n$). While manageable for most photos, extremely crowded scenes might pose a challenge.
  • Face Detection Dependency: The framework relies on an initial face detector (Mask R-CNN). If a face is missed at the start, FILTER cannot analyze its relationship to others.
  • Temporal Dynamics: While the authors tested on video frames, the current framework is image-based. Future work could extend these "relationship" insights across time, looking at how facial relationships evolve across video frames.

Reference: Lin, C., et al. (2023). Exploiting Facial Relationships and Feature Aggregation for Multi-Face Forgery Detection. arXiv:2310.04845v1 [cs.CV].

Summary updated

BibTeX
@article{lin2024exploiting,
  author = {Chenhao Lin and Fangbin Yi and Hang Wang and Jingyi Deng and Zhengyu Zhao and Qian Li and Chao Shen},
  title = {{Exploiting Facial Relationships and Feature Aggregation for Multi-Face Forgery Detection}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2024},
  doi = {10.1109/tifs.2024.3461469},
}
Figure