Depth as Attention for Face Representation Learning

Hardik Uppal, Alireza Sepas-Moghaddam, Michael Greenspan, S. Ali EtemadIEEE Trans. IFS 2021 · DOI

Abstract

Face representation learning solutions have recently achieved great success for various applications such as verification and identification. However, face recognition approaches that are based purely on RGB images rely solely on intensity information, and therefore are more sensitive to facial variations, notably pose, occlusions, and environmental changes such as illumination and background. A novel depth-guided attention mechanism is proposed for deep multi-modal face recognition using low-cost RGB-D sensors. Our novel attention mechanism directs the deep network “where to look” for visual features in the RGB image by focusing the attention of the network using depth features extracted by a Convolutional Neural Network (CNN). The depth features help the network focus on regions of the face in the RGB image that contain more prominent person-specific information. Our attention mechanism then uses this correlation to generate an attention map for RGB images from the depth features extracted by the CNN. We test our network on four public datasets, showing that the features obtained by our proposed solution yield better results on the Lock3DFace, CurtinFaces, IIIT-D RGB-D, and KaspAROV datasets which include challenging variations in pose, occlusion, illumination, expression, and time lapse. Our solution achieves average accuracies of 87.3%, 99.1%, 99.7%, and 95.3% for the four datasets respectively, thereby improving the state-of-the-art. We also perform additional experiments with thermal images, instead of depth images, showing the high generalization ability of our solution when adopting other modalities for guiding the attention mechanism.

Introduction

Modern face recognition (FR) systems have reached impressive levels of accuracy in controlled environments. However, their performance often degrades significantly when faced with real-world challenges such as harsh lighting, extreme camera angles, or partial occlusions (e.g., hands, glasses, or masks). Most standard systems rely exclusively on 2D RGB (color) images, which are inherently sensitive to these environmental and physical variations.

The proliferation of affordable RGB-D sensors, such as the Microsoft Kinect and Intel RealSense, provides a solution by offering co-registered color and depth data. Unlike RGB data, depth information is robust to illumination changes and provides geometric cues that are invariant to 2D texture changes. The primary challenge in multi-modal FR is effectively combining these modalities. Traditional methods often employ simple feature-level fusion (concatenation) or score-level fusion, which may fail to fully exploit the structural relationships between depth and appearance. This paper proposes a novel depth-guided attention mechanism that uses depth data to actively guide the feature extraction process in the RGB domain.

Methodology: Depth-Guided Attention

Rather than treating depth as just another data stream to be merged, the proposed architecture uses depth as a spatial "spotlight" to guide the network's visual attention toward the most discriminative regions of the face.

Architecture Overview

The system utilizes two parallel VGG-16 Convolutional Neural Networks (CNNs) to extract feature maps from the RGB and depth inputs. The core of the innovation lies in the attention mechanism:

  1. Feature Correlation: The network calculates the similarity between the RGB and depth feature maps using a dot product. This identifies spatial correlations between the two modalities, highlighting where geometric structures align with visual textures.
  2. Attention Refinement: This pooled representation is processed through a refinement module consisting of a 1x1 convolution and a softmax activation layer. This generates a normalized spatial attention map.
  3. Feature Weighting: The resulting attention map is multiplied element-wise with the RGB feature maps.

By focusing the network on regions with high depth variation—such as the nose, eyes, and chin—the model prioritizes person-specific structural information while suppressing noise from the background or lighting artifacts.

Experimental Results

The model was evaluated across four diverse RGB-D datasets, representing both lab-controlled and unconstrained surveillance environments:

  • Lock3DFace: Includes variations in expression, pose, occlusion, and time-lapse.
  • CurtinFaces: Focuses on illumination and occlusion (sunglasses/hands).
  • IIIT-D RGB-D: Contains variations in pose and eyeglasses.
  • KaspAROV: A challenging unconstrained dataset featuring subjects walking freely at varying distances.

Performance Benchmarks

The proposed depth-guided attention network established new state-of-the-art (SOTA) benchmarks across all tested datasets:

Dataset Accuracy Improvement over SOTA
Lock3DFace 87.3% +5.0%
CurtinFaces 99.1% +0.9%
IIIT-D RGB-D 99.7% +0.6%
KaspAROV 95.3% +0.5%

In ablation studies focusing on occlusions, the model demonstrated significant resilience. On the Lock3DFace occlusion test set, accuracy improved from a baseline of 78.1% to 85.8% when the attention mechanism was applied. Furthermore, the dual-stream architecture remains computationally efficient, with an inference time of 0.019 seconds per image pair.

Discussion and Generalization

A key insight of this research is that depth serves as a natural attention map for facial identity. The most discriminative features for recognition often reside in areas with distinct geometric profiles.

To test the versatility of this approach, the researchers conducted experiments using thermal images instead of depth maps (using the VAP RGB-D-T dataset). The results indicated that the attention mechanism is modality-agnostic; thermal data successfully guided the RGB network, demonstrating that the architecture can leverage various auxiliary sensors to enhance representation learning.

Conclusion

This paper demonstrates that guiding visual attention with depth information significantly outperforms traditional fusion techniques in face recognition. By directing the network "where to look," the model achieves superior robustness to pose and illumination changes. Future work will focus on scaling this approach to larger "in-the-wild" datasets and exploring other attribute-based information to further refine the attention mechanism for broader computer vision tasks.

Summary updated

BibTeX
@article{uppal2021depth,
  author = {Hardik Uppal and Alireza Sepas-Moghaddam and Michael Greenspan and S. Ali Etemad},
  title = {{Depth as Attention for Face Representation Learning}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2021},
  doi = {10.1109/tifs.2021.3053458},
}
Figure