VerLM: Explaining Face Verification Using Natural Language

Syed Abdul Hannan, Hazim Bukhari, Thomas Cantalapiedra, Eman Ansar, Massa Baali, Rita Singh, Bhiksha RajarXiv 2026

TL;DR

VerLM introduces natural language explanations to the task of face verification, transforming a traditionally "black-box" decision into a transparent, interpretable process. By adapting a cross-projection architecture originally designed for audio differentiation, the model not only determines if two faces match but explicitly articulates the fine-grained facial similarities and differences driving its decision.

What Problem Does This Paper Address?

Modern face verification systems are highly accurate, but they suffer from a distinct lack of transparency. When a system grants or denies access based on a facial scan, users and engineers rarely know why the decision was made.

Current explainability methods typically rely on saliency heatmaps, which highlight important facial regions but fail to provide a structured, human-readable rationale. Furthermore, existing vision-language models (VLMs) are generally designed to describe single images rather than perform the fine-grained, pair-wise comparisons necessary to distinguish subtle facial variations (e.g., jawline definition, eyebrow shape, or eye color). VerLM bridges this gap by generating detailed natural language rationales for face verification decisions.

Methods

The VerLM architecture consists of six primary components designed to ingest two images and a text prompt to output a free-form explanation:

  1. Image Encoder: Extracts high-level facial representations using pretrained models like VGGFace or CASIA-WebFace.
  2. Image Projection Layer: Projects face embeddings into a sequence of latent tokens suitable for a language model.
  3. Text Embedder & Text Projection Layer: Processes tokenized input prompts into semantic embeddings.
  4. Cross-Projection Layer: Inspired by ADIFF (an audio language model), this layer explicitly computes differences by concatenating the two image projections with a learned separator token ([EOS]), which is then fused with the text projection. This prevents feature conflation between the two faces.
  5. Decoder-only Language Model: A GPT-2 variant that autoregressively generates the final text explanation.
[Image 1] -> [Encoder] -> [Projector] ---\
                                          +--> [Cross-Projection + SEP] -> [GPT Decoder] -> Text Output
[Image 2] -> [Encoder] -> [Projector] ---/

To ensure high-quality text generation, the authors train the model in three progressive stages: Unimodal Training (independent pretraining), Multimodal Mapper Training (aligning visual and textual spaces while freezing backbones), and End-to-End Fine-tuning (joint optimization). They also introduce a Diversity Loss function ($\mathcal{L} = \mathcal{L}_{CE} - \lambda \cdot \mathcal{H}$), which penalizes low-entropy token distributions to prevent the model from outputting repetitive, generic, or templated responses.

Datasets

The authors introduced the Explainable Face Verification Dataset, built from a subset of the VGGFace2 dataset. It contains 79,771 pairs of images (including 7,689 matching instances).

To generate the ground-truth explanations, they leveraged a multi-step pipeline using Llama 3.2 VLM to describe individual faces, compressed those descriptions into comparative paragraphs, and subsequently verified the data using human annotators.

Dataset generation pipeline

The dataset features two tiers of explanations to mimic human communication styles:

  • Dataset 1 (Concise): Summarizes key factors (average length of ~53 words).
  • Dataset 2 (Comprehensive): Details specific, granular differences observed between the images (average length of ~122 words).
Description length statistics for the datasets

Key Insights and Ideas

  • Cross-Modal Knowledge Transfer: One of the paper's most compelling findings is that architectural mechanisms designed to detect differences in audio (like ADIFF's cross-projection) translate remarkably well to fine-grained visual comparison tasks.
  • The Necessity of Explicit Difference Modeling: Naive feature concatenation fails. Without the cross-projection layer and the explicit separator token (SEP), the model's performance drops significantly because the transformer conflates the features of the two distinct faces.
  • Regularization Drives Expressiveness: Standard cross-entropy loss often leads to overconfident, robotic text generation. Subtracting an entropy term (Diversity Loss) forces the model to remain exploratory, yielding contextually richer and more precise descriptions.

Key Results

VerLM was evaluated against two baselines: OneDiff (a general image-difference captioning model) and a minimal Base Model pipeline. Using standard translation and semantic metrics (METEOR, BLEU, and BERTScore), VerLM consistently achieved superior performance across both datasets.

  • Dataset 1 (Concise): VerLM achieved a METEOR score of 0.3986 and a BERTScore of 0.9039, comfortably outperforming OneDiff (0.3227 / 0.8728) and the Base Model (0.3343 / 0.8882).
  • Dataset 2 (Comprehensive): VerLM maintained its lead with a METEOR score of 0.3548 and a BERTScore of 0.9004.

Ablation studies confirmed that scaling the language model backbone from GPT-2 Base (124M parameters) to GPT-2 Large (774M parameters) yielded a steady upward trajectory in explanation quality, pushing the METEOR score on Dataset 1 to 0.4098.

Limitations and Future Work

While VerLM marks a significant step forward for explainable biometrics, the authors note several areas for improvement:

  • Language Model Scale: Due to compute constraints, experiments were limited to the older GPT-2 family. Upgrading to modern, instruction-tuned Large Language Models (LLMs) would likely boost reasoning capabilities.
  • Environmental Robustness: The current framework needs to be tested against harsher real-world face verification challenges, such as extreme variations in pose, lighting, and occlusions (e.g., masks or glasses).
  • Faithfulness and Visual Grounding: Future iterations aim to implement tighter visual grounding, explicitly linking generated words or phrases to specific region-level bounding boxes or pixel segments on the source images to ensure the text perfectly reflects the visual evidence.

Summary updated

BibTeX
@misc{hannan2026verlm,
  author = {Syed Abdul Hannan and Hazim Bukhari and Thomas Cantalapiedra and Eman Ansar and Massa Baali and Rita Singh and Bhiksha Raj},
  title = {{VerLM: Explaining Face Verification Using Natural Language}},
  year = {2026},
  eprint = {2601.01798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.01798},
}
Figure