Mask-Guided Multi-Task Network for Face Attribute Recognition

Gong Gao, Zekai Wang, Jian Zhao, Ziqi Xie, Xianhui Liu, Weidong ZhaoarXiv 2026 · DOI

TL;DR

The Mask-Guided Multi-Task Network (MGMTN) improves Face Attribute Recognition by eliminating feature redundancy and preventing "negative transfer" across unrelated tasks. By combining Adaptive Mask Learning to isolate specific facial regions with a Group-Global Feature Fusion mechanism, the network achieves state-of-the-art accuracy on benchmark datasets without requiring fine-grained pixel-level supervision during inference.

What Problem Does This Paper Address?

Face Attribute Recognition (FAR) involves identifying multiple facial traits simultaneously—such as detecting if a person is wearing lipstick, has a mustache, or is smiling. Because these traits are highly correlated, researchers typically use Multi-Task Networks (MTNs) to extract shared features for all attributes at once.

However, conventional MTNs look at the entire global image for every single attribute. This creates two major issues:

  1. Feature Redundancy: The network processes irrelevant background or facial regions (e.g., looking at the eyes to determine if someone has a mustache).
  2. Negative Transfer: Forcing a single network to learn unrelated tasks from global features can cause the learning process of one attribute to actively degrade the accuracy of another.

As shown in Figure 1, traditional approaches rely entirely on global regions, whereas a more intuitive approach would focus only on the regions of interest.

The conventional global-based approach vs. the proposed MGMTN approach.

Methods

To solve these challenges, the authors introduce MGMTN, which consists of two primary components:

  1. Adaptive Mask Learning (AML): The authors divide 40 facial attributes into eight distinct groups (seven part-based groups like Mouth, Eyes, and Nose, plus one holistic Object group). During training, a pre-trained face alignment model (FaRL) extracts 98 facial keypoints to generate bounding-box-like ground truth masks for each group. A fully convolutional UNet is then trained to predict these spatial masks. During inference, the UNet operates completely standalone to generate heatmaps without needing keypoint annotations.
  2. Group-Global Feature Fusion (G2FF): Multi-scale features are extracted from the input image using a backbone network (such as ResNet50 or ResNeSt50). The predicted masks from the AML module are downsampled and applied to these feature maps via element-wise multiplication, isolating the relevant local regions. These isolated group features are refined using a channel attention mechanism and then concatenated with the holistic global features to preserve both fine-grained details and overall context.

The complete architecture flow is illustrated in Figure 4.

The MGMTN architecture diagram showing the integration of AML and G2FF.

Datasets

The model was trained and evaluated on two widely recognized facial attribute benchmarks:

  • CelebA: A large-scale dataset containing 202,599 face images, each annotated with 40 binary attributes, featuring varied poses and cluttered backgrounds.
  • LFWA (Labeled Faces in the Wild Attribute): A dataset containing 13,233 images with the same 40 binary facial attribute labels as CelebA, known for extreme pose variations and occlusions.

Key Insights and Ideas

  • Spatial Distance Matters in CNNs: The authors demonstrate that feature similarity decreases as spatial distance increases within convolutional layers (see Figure 2). This justifies cropping out distracting regions to boost localized attribute accuracy.
  • Robustness to Mask Imperfections: Surprisingly, the model does not require pixel-perfect segmentation. In ablation studies, scaling down the predicted mask region to 64% of its original size resulted in only a marginal drop in accuracy (0.2%). This proves that as long as the central feature region is captured, the model remains highly effective.
  • Simpler Attention Prevents Overfitting: When fusing features, the authors found that overly complex attention mechanisms (like combining spatial and channel attention) actually introduced parameter redundancy and caused negative transfer. A straightforward channel attention mechanism yielded the best balance.

Key Results

MGMTN achieved state-of-the-art results across both datasets, outperforming classic multi-task and local-based architectures:

  • CelebA Dataset: Achieved a top classification accuracy of 92.30% and a class-balanced mean accuracy (mA) of 89.33% using a ResNeSt50 backbone.
  • LFWA Dataset: Achieved an accuracy of 87.01% and an mA of 81.10%.

When compared directly to its own baseline (which lacked the mask-guided modules), MGMTN improved accuracy by 1.39% and mA by 1.32% on CelebA, validating the effectiveness of isolating group features.

Limitations and Future Work

While MGMTN performs exceptionally well on standard benchmarks, its performance relies heavily on the accuracy of the initial mask generation. In real-world deployment scenarios featuring extreme facial poses, severe occlusions, or heavy image noise, the UNet may generate inaccurate masks. If a mask completely misses a facial feature, it introduces errors into the final classifier.

To mitigate this, the authors suggest that future work will explore mask reconstruction and noise injection techniques to make the network more robust against poorly localized masks in extreme environments.

Summary updated

BibTeX
@misc{gao2026mask,
  author = {Gong Gao and Zekai Wang and Jian Zhao and Ziqi Xie and Xianhui Liu and Weidong Zhao},
  title = {{Mask-Guided Multi-Task Network for Face Attribute Recognition}},
  year = {2026},
  eprint = {2601.01408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.01408},
}
Figure