A Deep Cascade Network for Unaligned Face Attribute Classification

Hui Ding, Hao Zhou, Shaohua Kevin Zhou, Rama Chellappa

Introduction

Face attribute recognition—identifying traits like hair color, facial hair, or eyewear—is a cornerstone of modern computer vision. Traditionally, these systems rely heavily on a preprocessing step called face alignment, which uses landmark detection to normalize the face's position. However, alignment algorithms are notoriously fragile; they often fail when faces are partially occluded, poorly lit, or viewed from extreme angles.

This paper introduces a deep cascade network designed to classify facial attributes directly from raw, unaligned images. By mimicking human visual attention—focusing on specific parts for local traits and the whole face for global ones—the model achieves state-of-the-art accuracy while bypassing the need for error-prone landmark detection.

The Cascade Architecture

The proposed system utilizes a two-stage cascade approach that combines localization with specialized classification.

The overall architecture of the proposed cascade network, showing the transition from localization to part-based and whole-image classification.

1. Face Region Localization (FRL) Network

The first stage acts as an attention mechanism. Using Global Average Pooling (GAP) and Class Activation Mapping, the FRL network generates heatmaps to identify the most relevant regions for a given attribute. Remarkably, this network is weakly supervised: it learns to find the eyes, mouth, or hairline using only image-level labels, without ever seeing a bounding box or landmark during training.

To ensure high feature quality, the authors employed Multi-Net Learning (MNL). This involves training a classification branch in parallel with the localization branch, forcing the shared lower layers to learn discriminative features rather than just spatial heatmaps.

2. Parts and Whole (PaW) Classification Network

Once regions are identified, the system crops out relevant parts for each of the $M$ attributes. These are fed into $M$ separate part-based subnets, while the original image is processed by a "whole-image" subnet. Two specialized layers manage the final output:

  • Region Switch Layer (RSL): This layer dynamically decides whether to trust the part-based subnet or the whole-image subnet for a specific attribute.
  • Attribute Relation Layer (ARL): This layer models real-world correlations, such as the negative correlation between "Black Hair" and "Blond Hair," or the positive correlation between "Chubby" and "Double Chin."

Weakly-Supervised Localization Results

The effectiveness of the FRL network is best seen through its generated heatmaps. The model successfully learns semantically meaningful regions across a wide variety of subjects and poses.

Visual examples of attribute-specific heatmaps generated by the localization network across different subjects.

As shown in the figure above, the network organically learns to look at the mouth for lipstick or facial hair, and the upper head for hair-related traits. The RSL further refines this by relying on part-based subnets for local attributes (e.g., "Bushy Eyebrows") and the whole-image subnet for global attributes (e.g., "Pale Skin").

Model Efficiency and Performance

Running dozens of subnets is computationally expensive. To address this, the authors utilized hint-based model compression (knowledge distillation). By training small "student" networks to mimic the feature maps of a large "teacher" network, they shrunk individual subnets from 19 million parameters to just 0.27 million. The final integrated system requires only 11M parameters.

On the unaligned CelebA dataset (uCelebA), the PaW network achieved a 91.23% average accuracy, representing a 30.9% reduction in error compared to previous state-of-the-art methods like LNets+ANet.

Conclusion

By integrating weakly-supervised localization with a dynamic "Parts and Whole" classification strategy, this research demonstrates that explicit face alignment is no longer a prerequisite for high-accuracy attribute recognition. The system's ability to automatically discover relevant facial regions makes it robust to the real-world challenges of occlusion and varied poses, offering a more flexible path forward for facial analysis.

Summary updated

BibTeX
@inproceedings{ding2018deep,
  author = {Hui Ding and Hao Zhou and Shaohua Kevin Zhou and Rama Chellappa},
  title = {{A Deep Cascade Network for Unaligned Face Attribute Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12303},
}
Figure