Deep Multi-Task Multi-Label CNN for Effective Facial Attribute Classification

Longbiao Mao, Yan Yan, Jing-Hao Xue, Hanzi Wang · DOI

Abstract

Facial Attribute Classification (FAC) is a critical task in computer vision, yet it faces challenges from task isolation, attribute complexity variance, and class imbalance. This paper presents DMM-CNN, a deep multi-task multi-label convolutional neural network that integrates facial landmark detection to enhance attribute prediction. By categorizing attributes into objective and subjective groups and employing dynamic loss weighting with adaptive thresholding, DMM-CNN achieves state-of-the-art performance on benchmark datasets.

Introduction

Identifying facial traits such as gender, age, or accessories is fundamental for applications ranging from security to social media. Despite progress, current methods often treat face alignment and attribute classification as disjoint tasks. Furthermore, they frequently ignore the inherent difference in difficulty between objective attributes (e.g., "Wearing Hat") and subjective ones (e.g., "Attractive"). DMM-CNN addresses these gaps by leveraging the geometric context provided by facial landmarks and specializing network branches for different attribute types.

Methodology

The DMM-CNN framework utilizes a ResNet50 backbone and introduces three core innovations:

Multi-task Learning with Facial Landmarks

The model simultaneously predicts 40 facial attributes and 72 facial landmark points. This auxiliary task provides the network with a detailed geometric understanding of the face, facilitating more accurate localization of attribute-relevant regions.

Attribute Grouping and Specialized Architectures

Attributes are partitioned into two categories:

  1. Objective Attributes: Traits like "Eyeglasses" or "Wearing Hat" that are visually distinct. These are processed using a 1-level Spatial Pyramid Pooling (SPP) layer.
  2. Subjective Attributes: Nuanced traits like "Smiling" or "Pointy Nose." These require deeper semantic features, handled by a 3-level SPP layer and additional fully connected layers.
Objective attribute classification: Sunglasses

Dynamic Weighting and Adaptive Thresholding

To combat class imbalance and varying task difficulty, the researchers implemented:

  • Dynamic Loss Weighting: Loss weights are adjusted based on the rate of change in validation loss, focusing the model on harder-to-learn attributes.
  • Adaptive Thresholding: Instead of a static zero-threshold, the model updates classification thresholds based on the false positive/negative ratio in the validation set, improving performance on rare classes.

Experiments and Results

The model was evaluated on the CelebA (~200,000 images) and LFWA (~13,000 images) datasets. DMM-CNN achieved a mean accuracy of 91.70% on CelebA and 86.56% on LFWA, outperforming competitive baselines like MOON and GNAS.

Subjective attribute classification: Smiling

Significant gains were observed in "hard" attributes. For instance, the model's ability to identify "Smiling" or "Bushy Eyebrows" improved markedly due to the specialized subjective branch and the geometric guidance from the 72-point landmark detection.

Conclusion

DMM-CNN demonstrates that integrating facial geometry and acknowledging the varying complexity of facial attributes leads to superior classification performance. While label noise in datasets like CelebA remains a challenge, the multi-task approach provides a robust framework for future developments in facial analysis.

Summary updated

BibTeX
@article{mao2020deep,
  author = {Longbiao Mao and Yan Yan and Jing-Hao Xue and Hanzi Wang},
  title = {{Deep Multi-Task Multi-Label CNN for Effective Facial Attribute Classification}},
  journal = {IEEE Trans. Affect. Comput.},
  year = {2020},
  doi = {10.1109/taffc.2020.2969189},
}
Figure