Localization using Multi-Focal Spatial Attention for Masked Face Recognition

Yooshin Cho, Hanbyel Cho, Hyeong Gwon Hong, Jaesung Ahn, Dongmin Cho, JungWoo Chang, Junmo Kim

Introduction

The global prevalence of facial masks during the COVID-19 pandemic introduced a significant hurdle for existing Face Recognition (FR) systems. Masks obscure critical biometric markers—specifically the nose and mouth—which are essential for identity verification. While researchers have developed specialized Masked Face Recognition (MFR) models, these often suffer from a performance trade-off: techniques designed to improve accuracy on masked faces frequently degrade performance on unmasked faces. This "zero-sum game" occurs because models often learn to ignore the lower half of the face entirely, losing valuable information when a mask is not present.

This paper introduces a novel architectural approach to resolve this conflict. By utilizing Complementary Attention Learning (CAL) and Multi-Focal Spatial Attention (MFSA), the proposed model precisely segments images into unmasked, masked, and background regions. This allows the system to extract mask-invariant features without sacrificing the high accuracy required for standard, unmasked face recognition tasks.

Methodology

The authors propose three primary architectural improvements to the standard Convolutional Block Attention Module (CBAM) to achieve precise feature localization.

1. Complementary Attention Learning (CAL)

Traditional attention mechanisms typically focus on a single map of "important" features. In contrast, CAL trains two mutually exclusive maps: $A_{um}$ (unmasked) and $A_m$ (masked). The model incorporates an auxiliary "mask-usage classification" branch that forces the $A_m$ map to specifically identify mask-related information. By isolating the mask features, the $A_{um}$ map is naturally incentivized to focus more precisely on stable, unmasked features, such as the eyes and forehead.

2. Multi-Focal Spatial Attention (MFSA)

Standard attention modules often utilize a sigmoid function, which effectively creates a binary mask (foreground vs. background). MFSA replaces this with a softmax function to perform N-way classification. In this architecture, the image is divided into three distinct "foci":

  • Unmasked regions (identity-rich features)
  • Masked regions (occlusions to be ignored)
  • Background regions (non-facial noise)

By treating localization as a 3-way classification problem, the model avoids the ambiguity common in sigmoid-based attention, where background pixels are often incorrectly grouped with facial features.

3. Orthogonalization by Newton’s Iteration (ONI)

To ensure that these different attention channels remain distinct and do not overlap or become redundant, the authors apply Orthogonalization by Newton’s Iteration (ONI) to the weights of the convolutional layers. This process "disentangles" the representations, ensuring that the localization of masked vs. unmasked regions is mathematically distinct.

Experimental Setup

The models were trained and evaluated using high-standard industry benchmarks to ensure robustness across diverse scenarios:

  • Training Sets: CASIA-Webface and MS1MV3, both of which were augmented with synthetic masks to simulate real-world conditions.
  • Conventional FR Evaluation: To ensure standard performance was maintained, the models were tested on IJB-C, Age-DB, CALFW, and CPLFW.
  • MFR Evaluation: The ICCV2021-MFR/Insightface track was used, featuring a real-world masked face test set and a multi-racial test set (MR-ALL).

Results and Discussion

The MFSA + CAL approach demonstrated superior performance across both masked and unmasked datasets compared to baseline models.

Performance Gains

On the CASIA-trained model, the proposed method achieved a 45.2% True Acceptance Rate (TAR), a massive improvement over the 18.49% achieved by the baseline. Crucially, this did not come at the cost of standard recognition. On the MS1MV3 dataset, the model maintained a high 93.62% TAR on the IJB-C (standard FR) benchmark. In contrast, other mask-improvement techniques, such as simple adversarial training, typically saw sharp performance drops on unmasked data.

Explainability and Precision

Beyond quantitative metrics, the model offers improved qualitative explainability. Because the model generates explicit attention maps for masked and unmasked regions, its decision-making process is transparent. Visualizations confirm that MFSA produces significantly cleaner and more precise segmentations of the face compared to standard CBAM, allowing developers to verify that the model is indeed focusing on the eyes and forehead rather than background artifacts.

Conclusion

The integration of Multi-Focal Spatial Attention and Complementary Attention Learning provides a surgical approach to masked face recognition. By precisely localizing occlusions rather than simply training the network to be "blind" to the lower face, the model preserves the integrity of standard face recognition while significantly boosting performance on masked individuals.

Future work may involve extending this multi-focal approach to other types of facial occlusions, such as sunglasses or heavy scarves, and exploring its application in other computer vision domains like medical imaging or human-computer interaction where multiple distinct regions of interest must be processed simultaneously.

Summary updated

BibTeX
@inproceedings{cho2023localization,
  author = {Yooshin Cho and Hanbyel Cho and Hyeong Gwon Hong and Jaesung Ahn and Dongmin Cho and JungWoo Chang and Junmo Kim},
  title = {{Localization using Multi-Focal Spatial Attention for Masked Face Recognition}},
  booktitle = {FG},
  year = {2023},
  url = {https://openreview.net/forum?id=NklZ4BcRMb},
}
Figure