Heterogeneous Face Recognition Using Domain Invariant Units

Anjith George, Sébastien Marcel

Abstract

Heterogeneous Face Recognition (HFR) aims to match face images across different imaging modalities, such as thermal, infrared, and visible light. This task is challenging due to the significant domain gap and the scarcity of paired training data. We present a framework based on Domain Invariant Units (DIU) that utilizes a teacher-student distillation approach. By fine-tuning only the lower layers of a pretrained high-capacity model, our method achieves state-of-the-art accuracy across several benchmarks, including Polathermal, Tufts Face, and SCFace.

Introduction

While modern Face Recognition (FR) systems excel with high-quality RGB images, their performance degrades significantly in heterogeneous scenarios—matching surveillance footage or thermal signatures against standard passport photos. The primary obstacles are the fundamental difference in feature textures between domains and the lack of large-scale paired datasets for training. Previous attempts using Generative Adversarial Networks (GANs) or complex adapters often suffer from high computational costs or overfitting on small datasets.

Methodology: Teacher-Student Distillation

The proposed framework employs a Teacher-Student architecture to bridge the modality gap. The "Teacher" is a frozen Iresnet101 model pretrained on the extensive WebFace12M RGB dataset. The "Student" model is initialized with the same weights, but its first few layers are designated as Domain Invariant Units (DIU).

The Teacher-Student Distillation framework using Domain Invariant Units (DIU).

The training process involves two primary objectives:

  1. Cosine Contrastive Loss ($\mathcal{L}_C$): This aligns the embeddings of paired images from different modalities (e.g., thermal and RGB) in a shared feature space.
  2. Distillation Loss ($\mathcal{L}_{DL}$): This ensures the student retains the discriminative power of the teacher by penalizing deviations in their outputs for RGB images.

Crucially, both the source (visible) and target (thermal/NIR) modalities pass through the same trainable DIU layers, encouraging the model to learn a domain-neutral representation.

Experimental Results

The DIU approach was evaluated on three major benchmarks, consistently outperforming existing state-of-the-art (SOTA) methods:

  • Polathermal: Achieved a Rank-1 accuracy of 97.8%, surpassing the previous best of 97.1%.
  • Tufts Face: Reached 82.94% Rank-1 accuracy, a significant improvement over the prior SOTA of 73.07%.
  • SCFace (Far Protocol): On the challenging long-distance surveillance protocol, the model achieved 94.55% accuracy, compared to 86.05% for previous methods.

Ablation Study: Layer Selection

A key insight of this research is that the domain gap is primarily localized in the lower layers of the network, which handle low-level feature extraction. The authors conducted an ablation study to determine the optimal number of layers to unfreeze.

Performance impact of unfreezing different layer ranges.

As shown in the experimental data, unfreezing the first 24 layers (blocks 1-24) of the Iresnet101 model provided the best balance between adapting to new modalities and maintaining recognition performance. Unfreezing additional layers beyond this point led to a decrease in accuracy, likely due to overfitting on the smaller heterogeneous datasets.

Conclusion

The Domain Invariant Units framework provides a robust and efficient solution for HFR by focusing adaptation on the lower layers of a pretrained model. The combination of selective fine-tuning and distillation loss allows the model to generalize well even with limited paired data. Future work may explore extending this approach to other modalities, such as forensic sketches or 3D face models.

Summary updated

Abstract

Heterogeneous Face Recognition (HFR) aims to expand the applicability of Face Recognition (FR) systems to challenging scenarios, enabling the matching of face images across different domains, such as matching thermal images to visible spectra. However, the development of HFR systems is challenging because of the significant domain gap between modalities and the lack of availability of large-scale paired multi-channel data. In this work, we leverage a pretrained face recognition model as a teacher network to learn domain-invariant network layers called Domain-Invariant Units (DIU) to reduce the domain gap. The proposed DIU can be trained effectively even with a limited amount of paired training data, in a contrastive distillation framework. This proposed approach has the potential to enhance pretrained models, making them more adaptable to a wider range of variations in data. We extensively evaluate our approach on multiple challenging benchmarks, demonstrating superior performance compared to state-of-the-art methods.
BibTeX
@inproceedings{george2024heterogeneous,
  author = {Anjith George and Sébastien Marcel},
  title = {{Heterogeneous Face Recognition Using Domain Invariant Units}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=gR3MBHfMUU},
}
Figure