Heterogeneous Face Attribute Estimation: A Deep Multi-Task Learning Approach

Hu Han, Anil K. Jain, Fang Wang, Shiguang Shan, Xilin Chen

TL;DR

Researchers have developed a Deep Multi-Task Learning (DMTL) framework that jointly estimates multiple facial attributes—like age, gender, and race—from a single image. By explicitly modeling the correlations between attributes and their inherent "heterogeneity" (e.g., treating age as a continuous scale and race as a category), the system achieves state-of-the-art accuracy while remaining fast enough for real-time applications.

What Problem Does This Paper Address?

Estimating facial attributes is a cornerstone of modern computer vision, powering everything from smart surveillance to personalized social media recommendations. However, most existing methods treat attributes in isolation or assume they all behave the same way.

The authors identify two major gaps:

  1. Attribute Correlation: Attributes are often linked. For example, a "goatee" is highly correlated with being "male," and "heavy makeup" is often linked to "wearing lipstick." Ignoring these relationships wastes valuable information.
  2. Attribute Heterogeneity: Not all attributes are created equal. Some are ordinal (age exists on a numerical scale), while others are nominal (gender and race are categories). Furthermore, some are holistic (describing the whole face, like age), while others are local (describing specific parts, like a pointy nose). Standard models often fail to account for these structural differences in data types.

Methods

The proposed Deep Multi-Task Learning (DMTL) approach uses a single Convolutional Neural Network (CNN) based on a modified AlexNet architecture. The pipeline is split into two stages:

  • Shared Feature Learning: The early layers of the CNN are shared across all attributes. This allows the model to learn a robust, general-purpose representation of the face and exploit the natural correlations between different tasks.
  • Category-Specific Feature Learning: The network then branches into specialized "subnetworks" tailored to different attribute categories.
  • Nominal tasks (e.g., gender, race) use a Cross-Entropy loss function.
  • Ordinal tasks (e.g., age) are treated as regression problems using Euclidean loss.
  • The architecture also accounts for Holistic vs. Local differences by grouping attributes into specific subnetworks (e.g., one subnetwork for eye-related attributes, another for mouth-related ones).

Datasets

The study evaluates the model across six diverse databases:

  • MORPH II: A large mugshot database (78K images) used for age, gender, and race.
  • CelebA & LFWA: Massive datasets with 40 binary attributes (e.g., "smiling," "eyeglasses").
  • FotW (Faces of the World): Used for accessory, gender, and smile classification.
  • LAPAge2015: A benchmark for "apparent age" estimation.
  • LFW+ (New): The authors introduced this extension of the LFW database, adding 2,466 images of children and crowdsourced labels for age, gender, and race to better test the model on unconstrained, "in-the-wild" images.

Key Insights and Ideas

  • MTL as a Regularizer: Jointly learning multiple tasks acts as a form of regularization. Features that are useful for identifying gender might also help refine age estimation, leading to better generalization than single-task models.
  • The Power of Specialization: While shared features are great, the "aha moment" is that the final layers must be specialized. Forcing an ordinal task (age) and a nominal task (race) to share the exact same output logic hurts performance.
  • Efficiency Matters: By using a shared backbone, the model avoids the computational redundancy of running 40 separate classifiers. This makes the approach viable for real-world deployment.

Key Results

  • Accuracy: On the MORPH II dataset, the model achieved a Mean Absolute Error (MAE) for age of 3.0 years, significantly outperforming prior multi-attribute methods (which hovered around 3.6–3.9 years).
  • Generalization: In cross-database testing (training on one dataset and testing on a completely different one), the model maintained high performance, proving it isn't just "memorizing" specific dataset quirks.
  • Speed: The system is highly efficient, taking only 8ms on a GPU and 35ms on a CPU per image. A prototype implementation runs at roughly 16 fps on a standard desktop CPU, making it suitable for real-time video processing.

Limitations and Future Work

  • Extreme Ages: The authors noted that the model still struggles with very young or very old subjects, likely due to the relative scarcity of such data in standard training sets.
  • Label Noise: Crowdsourced labels (like those in LFW+) can be "noisy" or ambiguous. For instance, the distinction between "5 o'clock shadow" and "no beard" can be subjective.
  • Future Directions: The authors suggest that integrating "noisy label refining" techniques into the multi-task framework could further improve robustness against inconsistent human annotations.

Summary updated

BibTeX
@article{han2018heterogeneous,
  author = {Hu Han and Anil K. Jain and Fang Wang and Shiguang Shan and Xilin Chen},
  title = {{Heterogeneous Face Attribute Estimation: A Deep Multi-Task Learning Approach}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  doi = {10.1109/tpami.2017.2738004},
}
Figure