Modality Agnostic Heterogeneous Face Recognition with Switch Style Modulators

Anjith George, Sébastien Marcel

Abstract

Heterogeneous Face Recognition (HFR) involves matching images across different modalities—such as thermal, infrared, or sketches—to a standard RGB gallery. Traditional approaches often rely on modality-specific models that require explicit labels at inference time, limiting their scalability and real-world utility. This paper introduces Switch Style Modulation Blocks (SSMB), a framework that enables a single model to perform modality-agnostic HFR. By utilizing a Mixture of Experts (MoE) approach with a "Switch" routing mechanism, the model adaptively adjusts internal features based on input statistics. Experimental results demonstrate that SSMB outperforms existing specialized models across multiple benchmarks, including MCXFace and CUFSF, while maintaining computational efficiency.

Introduction

Standard Face Recognition (FR) systems have achieved remarkable accuracy when comparing high-quality RGB photos. However, real-world security and surveillance often necessitate matching a standard RGB "gallery" photo against a "probe" image from diverse sensors, such as thermal cameras for night vision, near-infrared (NIR) sensors, or even hand-drawn sketches. This task, known as Heterogeneous Face Recognition (HFR), is complicated by the massive "domain gap" between modalities.

Historically, researchers addressed this by training specialized models for specific pairs (e.g., RGB-to-Thermal). This approach suffers from three primary flaws: it lacks scalability (requiring a separate model for every sensor), it requires prior knowledge of the modality at test time, and it is hindered by the scarcity of multi-modal training data. This paper proposes a universal solution that is modality-agnostic at inference, requiring no manual intervention to identify the input source.

Methodology: Switch Style Modulation Blocks (SSMB)

The authors introduce SSMB as a plug-and-play module for existing, pre-trained face recognition networks like InsightFace. The architecture leverages a sparse Mixture of Experts (MoE) strategy to bridge the domain gap dynamically.

The Switch Mechanism

Instead of a static processing pipeline, the SSMB employs a "Switch" routing mechanism:

  1. The Router: For every input image, a small router module analyzes the mean and standard deviation of the feature maps. These statistics serve as "modality fingerprints," capturing the global style of the image without requiring complex classification.
  2. The Experts: The router selects exactly one "StyleExpert" ( a small fully connected layer) from a candidate pool.
  3. Modulation: The chosen expert predicts "scale" and "shift" parameters. These are applied to the features—a process similar to Instance Normalization—to effectively "normalize" the style of a thermal or NIR image so it aligns with standard RGB feature sets.

Training Paradigm

The model is trained end-to-end using a tripartite loss strategy:

  • Cosine Contrastive Loss: This ensures that images of the same individual, regardless of the modality, are mapped to similar embeddings in the feature space.
  • Teacher-Student Identity Loss: To prevent the model from losing its ability to recognize standard RGB faces (catastrophic forgetting), it mimics a high-performing pre-trained "Teacher" model.
  • Load Balancing Loss: This ensures that the router does not over-rely on a single expert, promoting diversity and utilization across the expert pool during training.

Experimental Results

The SSMB framework was evaluated on several challenging benchmarks, demonstrating superior performance over state-of-the-art (SOTA) specialized models.

Performance Benchmarks

  • MCXFace (Universal Protocol): On a multi-channel dataset featuring RGB, Thermal, NIR, and Short-wave Infrared (SWIR), the model achieved a 94.50% Verification Rate (at 1% FAR), surpassing the previous SOTA of 91.58%.
  • Thermal Matching: On the Tufts Face Database, the most difficult modality (Thermal) saw a jump to 78.93% accuracy, an 8% improvement over prior methods.
  • Sketch Recognition: On the CUFSF dataset, the model achieved 81.67% Rank-1 accuracy, proving that style modulation is effective even for non-sensor domains like artist-drawn sketches.
  • Surveillance: The model also showed robust results on the SCFace dataset, which matches high-quality photos against low-resolution surveillance footage.

Ablation Insights

The researchers found that a pool of four experts provided the optimal balance between performance and model complexity. Because the system uses Top-1 routing (selecting only one expert per pass), the added computational cost during the forward pass is negligible, making it highly efficient for deployment.

Conclusion

The Switch Style Modulation approach represents a significant advancement in HFR by removing the need for modality labels at inference. By treating the domain gap as a style-transfer problem solved through sparse experts, the authors have created a system that is both more accurate and more versatile than previous specialized architectures. Future work will focus on optimizing the switch mechanism further and exploring "zero-shot" scenarios where the model encounters entirely new sensor types not seen during training.

Summary updated

BibTeX
@inproceedings{george2024modality,
  author = {Anjith George and Sébastien Marcel},
  title = {{Modality Agnostic Heterogeneous Face Recognition with Switch Style Modulators}},
  booktitle = {IJCB},
  year = {2024},
  doi = {10.1109/ijcb62174.2024.10744437},
}
Figure