Partially Shared Multi-Task Convolutional Neural Network With Local Constraint for Face Attribute Learning

Jiajiong Cao, Yingming Li, Zhongfei ZhangCVPR 2018

Introduction

Recognizing facial attributes such as "smiling," "wearing glasses," or "mustache" is a fundamental task in computer vision. These attributes are often highly correlated; for instance, the attribute "Male" is frequently associated with "Sideburns" or "No Beard." Consequently, multi-task learning (MTL) is a natural fit for this problem. However, traditional MTL architectures often struggle with rigid information sharing and ignore the inherent identity information present in datasets, which can act as a powerful regularizer.

Problem Statement: The Limitations of Split Architectures

Existing deep learning approaches for attribute recognition typically rely on a "split" structure. In these models, lower layers are shared across all tasks, and the network branches out into task-specific "heads" at a certain depth. This approach has two main drawbacks:

  1. Rigid Information Flow: The split point is often arbitrary and restricts interactions between tasks at higher levels where complex attribute relationships are formed.
  2. Neglect of Identity Information: Standard models treat every image as an independent data point, ignoring the fact that multiple images of the same person should share a consistent "attribute signature."
Comparison between the proposed Partially Shared Structure and the traditional Split Structure.

Proposed Method: PS-MCNN-LC

To address these issues, the authors introduce the PS-MCNN-LC framework, which features two primary innovations: a partially shared architecture and a local constraint loss.

1. Partially Shared Multi-task CNN (PS-MCNN)

The PS-MCNN architecture moves away from the single-trunk split model. Instead, it consists of four Task Specific Networks (TSNets)—categorized by spatial location (Upper, Middle, Lower, and Whole Image)—and one Shared Network (SNet).

Unlike traditional models, the PS-MCNN facilitates continuous interaction at every layer. The SNet receives inputs from all TSNets, and each TSNet receives input from the SNet. This design allows the model to learn both shared and task-specific features simultaneously throughout the network's entire depth, bypassing the "split point" dilemma and allowing the network to learn the optimal balance of shared vs. specific information at every level.

2. Local Constraint Loss (LCLoss)

The second innovation is the Local Constraint Loss (LCLoss). This loss function leverages identity information by minimizing the distance between feature representations of images belonging to the same individual. By forcing images of the same person to be "neighbors" in the feature space, the model becomes more robust to environmental noise like lighting or pose changes that do not alter the person's actual attributes. This effectively uses identity as a constraint on the feature manifold.

The detailed architecture of the PS-MCNN-LC framework, showing the interaction between TSNets and SNet, and the integration of LCLoss.

Experiments and Results

The model was evaluated on the CelebA and LFWA (Labeled Faces in the Wild Attributes) benchmarks. The 40 attributes were grouped into four categories based on spatial location to facilitate the multi-task structure.

Key Findings

  • Superior Accuracy: On the CelebA dataset, PS-MCNN-LC achieved an average error rate of 7.02%, a significant improvement over the previous state-of-the-art MCNN (8.75%) and LNets+ANet (13%).
  • Impact of Identity: The addition of LCLoss alone reduced the error rate from 7.78% to 7.02% on CelebA, confirming that identity information is a potent signal for attribute learning.
  • Efficiency: Despite its complexity, the PS-MCNN is highly efficient. By utilizing $3 \times 3$ kernels and an optimized sharing mechanism, it achieved state-of-the-art results with only 1/20th the parameters and 22% fewer FLOPs compared to the original MCNN.
  • Optimal Sharing: Empirical results showed that the best performance was achieved when the Shared Network (SNet) had approximately 1/4 the number of channels of the Task Specific Networks. Too much sharing leads to task interference, while too little leads to a loss of correlation benefits.

Conclusion

The PS-MCNN-LC framework demonstrates that rethinking information sharing and leveraging identity constraints can lead to significant gains in face attribute learning. By allowing continuous interaction between task-specific and shared features, and regularizing the feature manifold with identity information, the model achieves higher accuracy with a fraction of the computational cost of previous methods. Future work may explore automated, data-driven attribute grouping and more scalable identity-based loss functions for larger datasets.

Summary updated

BibTeX
@inproceedings{cao2018partially,
  author = {Jiajiong Cao and Yingming Li and Zhongfei Zhang},
  title = {{Partially Shared Multi-Task Convolutional Neural Network With Local Constraint for Face Attribute Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00451},
}
Figure