Bridging Human Concepts and Computer Vision for Explainable Face Verification

Miriam Doh, Caroline Mazini Rodrigues, Nicolas Boutry, Laurent Najman, Matei Mancas, Hugues Bersini

Introduction

Face verification—the task of determining if two images depict the same individual—is a critical application of artificial intelligence, spanning from smartphone security to forensic analysis. Despite their high accuracy, state-of-the-art models often operate as "black boxes," providing similarity scores without explaining the underlying logic. This lack of transparency creates an "interpretability gap" between a machine's high-dimensional feature vectors and the conceptual reasoning humans use to recognize faces, such as identifying a specific nose shape or eye distance.

The Semantic Explanation Framework

To bridge this gap, this research introduces a model-agnostic framework that maps AI decision-making onto human-semantic facial regions. Unlike traditional Explainable AI (XAI) tools like saliency maps, which often highlight abstract pixels, this approach focuses on 13 distinct facial regions (e.g., eyes, mouth, forehead) that align with human vocabulary.

The 13 human-semantic facial regions extracted using MediaPipe to bridge the gap between AI features and human concepts.

Methodology

The proposed pipeline follows a four-step process to generate intuitive explanations:

  1. Semantic Extraction: Using MediaPipe, the system segments the face into 13 human-semantic polygons. This ensures that any subsequent explanation is grounded in recognizable facial features.
  2. Concept Ranking: To ensure the explanation is faithful to the specific model being analyzed, the researchers use KernelSHAP to rank which of these 13 regions are most influential to the model's decisions across a broad dataset.
  3. Perturbation Algorithms: The framework employs two primary algorithms to measure the contribution of specific parts to a match:
  4. Single Removal ($S_0$): Masking one semantic region at a time and measuring the resulting change in the cosine similarity score.
  5. Greedy Removal ($S_1$): An iterative approach that removes the most impactful regions first. This captures "second-order" or relational features, such as the spatial configuration between the eyes and nose.
  6. Visualization: The results are synthesized into an Average Similarity Map ($S_{AVG}$). In these visualizations, orange hues indicate regions the model perceives as similar (supporting a match), while purple hues highlight dissimilarities (supporting a rejection).
The proposed multi-step pipeline for semantic face verification explanation, from image input to similarity map generation.

Key Insights and Model Logic

Experimental results using the CelebA, Casia-WebFace, and VGGFace2 datasets revealed several critical insights into how AI perceives faces:

  • Holistic Perception: Through "Cut-and-Paste" experiments—where a dissimilar patch from one face is replaced with a patch from the target face—the authors found that modifying one region often changed the model's perception of other unmodified regions. This suggests that AI models, like humans, perceive faces holistically rather than as a collection of isolated parts.
  • Model-Specific Priorities: Different architectures prioritize different features. For example, the ranking of important semantic areas differed between CasiaNet and VGGFace2, emphasizing that explainability must be tailored to the specific model's internal logic.
  • Masking Invariance: The consistency of explanations across different mask types (black, white, or random noise) suggests that models react to the absence of facial information rather than the visual properties of the mask itself.

Results and Validation

The framework successfully produced similarity maps that align with human intuition. In "genuine" cases (same person), the maps were predominantly orange. In "imposter" cases, purple regions accurately identified the features that drove the model to reject the match.

Validation via the Cut-and-Paste test confirmed the framework's accuracy: replacing a dissimilar region with a patch from the target image resulted in a measurable increase in the overall cosine similarity score and a corresponding visual shift in the similarity map from purple to orange.

Conclusion and Future Directions

While the framework provides a significant step toward transparent face verification, it remains sensitive to facial pose. Future work will focus on more robust segmentation methods to handle profile views and conducting user evaluations to determine how these semantic maps impact human trust and decision-making in high-stakes environments.

Summary updated

BibTeX
@inproceedings{doh2023bridging,
  author = {Miriam Doh and Caroline Mazini Rodrigues and Nicolas Boutry and Laurent Najman and Matei Mancas and Hugues Bersini},
  title = {{Bridging Human Concepts and Computer Vision for Explainable Face Verification}},
  booktitle = {BEWARE@AI*IA},
  year = {2023},
}
Figure