Multi-task Learning of Cascaded CNN for Facial Attribute Classification

Ni Zhuang, Yan Yan, Si Chen, Hanzi Wang

Introduction

Facial Attribute Classification (FAC) involves identifying semantic traits such as "smiling," "wearing a hat," or "pointy nose." Despite its importance in computer vision, current methods often struggle with pipeline fragmentation—treating face detection and alignment as separate pre-processing steps—and uniform loss weighting, which fails to account for the varying difficulty of different attributes.

Example of facial attributes like "wearing a hat" and "lipstick".

Methodology: The MCFA Framework

The proposed Multi-task Learning of Cascaded CNN (MCFA) addresses these issues through two core innovations: a coarse-to-fine cascaded architecture and a dynamic weighting scheme.

Coarse-to-Fine Cascaded Architecture

MCFA utilizes a three-stage sub-network approach processing an image pyramid to capture features at multiple scales:

  • S_Net (Small): Operates on 56×56 images for coarse feature extraction and initial face proposals.
  • M_Net (Medium): Operates on 112×112 images to refine features and filter false positives.
  • L_Net (Large): Operates on 224×224 images to capture subtle details for final classification.

These networks are trained jointly for four tasks: face classification, bounding box regression, facial landmark localization, and attribute classification. This end-to-end optimization allows the model to leverage geometric context from auxiliary tasks to improve attribute detection.

Dynamic Weighting Scheme

To manage attribute difficulty, a specialized layer learns a weight vector ($\mu_w$) for the loss function. This allows the model to prioritize "difficult" attributes (e.g., "Sideburns" or "Wavy Hair") over "easy" ones (e.g., "Gender"), ensuring the network focuses its learning capacity where it is most needed rather than plateauing after mastering simple traits.

Experimental Evaluation

The model was evaluated on the CelebA dataset (202,000 images with 40 attributes) and the LFWA dataset (13,000 images with 73 attributes).

Key Results

MCFA achieved state-of-the-art performance across major benchmarks:

  • CelebA: 91% average accuracy, a significant improvement over the 87% achieved by previous leading methods like LNets+ANet.
  • LFWA: 84% average accuracy.
  • Attribute-Specific Performance: The model reached 100% accuracy for the "Eyeglasses" attribute on CelebA and showed significant gains in complex categories like "Bangs" and "Wavy Hair."
The MCFA model achieves high accuracy on attributes such as "Eyeglasses".

Conclusion

By integrating auxiliary tasks and employing a dynamic weighting strategy, MCFA provides a robust, end-to-end solution for facial attribute classification. While computationally more intensive than single-pass models due to its cascaded nature, its ability to capture structural dependencies and focus on challenging traits sets a new benchmark for the field. Future work may involve optimizing the framework for real-time deployment on mobile devices.

Summary updated

BibTeX
@inproceedings{zhuang2018multi,
  author = {Ni Zhuang and Yan Yan and Si Chen and Hanzi Wang},
  title = {{Multi-task Learning of Cascaded CNN for Facial Attribute Classification}},
  booktitle = {ICPR},
  year = {2018},
  url = {https://openreview.net/forum?id=x8IbScI6Mu},
}
Figure