[Paper Review] Leveraging Mid-Level Deep Representations For Predicting Face Attributes in the Wild
This paper proposes leveraging mid-level convolutional neural network (CNN) features—extracted from a pre-trained face classification network—for predicting facial attributes in unconstrained environments. By using intermediate layers (e.g., C3–C6) instead of high-level fully connected layers, the method achieves state-of-the-art accuracy on CelebA (89.8%) and LFWA (85.9%), demonstrating that mid-level features preserve spatial detail and local discriminative patterns better than high-level abstractions, enabling efficient, unified models for both face recognition and attribute prediction.
Predicting facial attributes from faces in the wild is very challenging due to pose and lighting variations in the real world. The key to this problem is to build proper feature representations to cope with these unfavourable conditions. Given the success of Convolutional Neural Network (CNN) in image classification, the high-level CNN feature, as an intuitive and reasonable choice, has been widely utilized for this problem. In this paper, however, we consider the mid-level CNN features as an alternative to the high-level ones for attribute prediction. This is based on the observation that face attributes are different: some of them are locally oriented while others are globally defined. Our investigations reveal that the mid-level deep representations outperform the prediction accuracy achieved by the (fine-tuned) high-level abstractions. We empirically demonstrate that the midlevel representations achieve state-of-the-art prediction performance on CelebA and LFWA datasets. Our investigations also show that by utilizing the mid-level representations one can employ a single deep network to achieve both face recognition and attribute prediction.
Motivation & Objective
- To investigate whether mid-level deep representations from a pre-trained CNN outperform high-level features for facial attribute prediction under real-world variations.
- To determine if a single deep network can simultaneously support face recognition and attribute prediction using hierarchical features.
- To evaluate the trade-off between representation quality, computational efficiency, and spatial information preservation in different network layers.
- To explore the feasibility of using compact, localized representations (e.g., from C6) for attributes tied to specific facial components.
- To demonstrate that mid-level features can surpass state-of-the-art performance without retraining the entire network for attribute prediction.
Proposed method
- Fine-tuned a face classification CNN using 350,000 images from the WebFace dataset, with PReLU activation, dropout (0.5), and data augmentation (flipping, jittering, rotation).
- Extracted hierarchical features from multiple layers (C2 to F2) of the trained CNN, including convolutional (C2–C6) and fully connected (F1, F2) layers.
- Trained linear classifiers (e.g., SVM or logistic regression) on each layer’s features to predict 40 facial attributes on CelebA and LFWA datasets.
- Evaluated performance using mean accuracy across all attributes and compared results across different layers to identify optimal representation levels.
- Explored input size scaling (doubling input resolution) to assess impact on small-scale attribute prediction (e.g., 'bags under eyes').
- Analyzed compact representations from the C6 layer (3×2×256) for attributes with deterministic spatial distribution (e.g., 'wearing necktie'), testing memory and accuracy trade-offs.
Experimental results
Research questions
- RQ1Do mid-level CNN features (e.g., C3–C6) outperform high-level features (e.g., F1, F2) in predicting facial attributes under unconstrained conditions?
- RQ2Can a single deep network trained for face classification be effectively repurposed for accurate attribute prediction using intermediate layer features?
- RQ3How does the spatial resolution and receptive field size of different layers affect the prediction of local attributes like 'eyeglasses' or 'mustache'?
- RQ4Can compact, localized representations (e.g., from C6) maintain high accuracy while reducing memory and computational cost?
- RQ5What is the impact of input image resolution on attribute prediction accuracy, especially for fine-grained traits like 'bags under eyes'?
Key findings
- Mid-level representations (C3–C6) achieved state-of-the-art performance on CelebA with a mean accuracy of 89.8%, surpassing the previous SOTA of 87%.
- On the LFWA dataset, mid-level features achieved 85.9% mean accuracy, outperforming the prior SOTA of 84%.
- The C3 layer produced the highest accuracy for 'bags under eyes' (83.63%) when input size was doubled, indicating sensitivity to spatial detail.
- The C6 layer (3×2×256) maintained 89.3% average accuracy for locally defined attributes, enabling memory-efficient representation without significant performance loss.
- High-level features (F1, F2) were computationally expensive and less effective for local attributes, while mid-level features preserved spatial structure critical for attribute discrimination.
- The study demonstrated that a single face classification CNN can support both face recognition and attribute prediction using hierarchical features, reducing model complexity and training overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.