arXiv(opens in a new tab)Computer ScienceNov 2014Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:1411.7766

Deep Learning Face Attributes in the Wild

Ziwei Liu, Ping Luo, Xiaogang Wang, Xiaoou Tang

Abstract

Predicting face attributes in the wild is challenging due to complex face variations. We propose a novel deep learning framework for attribute prediction in the wild. It cascades two CNNs, LNet and ANet, which are fine-tuned jointly with attribute tags, but pre-trained differently. LNet is pre-trained by massive general object categories for face localization, while ANet is pre-trained by massive face identities for attribute prediction. This framework not only outperforms the state-of-the-art with a large margin, but also reveals valuable facts on learning face representation.

(1) It shows how the performances of face localization (LNet) and attribute prediction (ANet) can be improved by different pre-training strategies. (2) It reveals that although the filters of LNet are fine-tuned only with image-level attribute tags, their response maps over entire images have strong indication of face locations. This fact enables training LNet for face localization with only image-level annotations, but without face bounding boxes or landmarks, which are required by all attribute recognition works. (3) It also demonstrates that the high-level hidden neurons of ANet automatically discover semantic concepts after pre-training with massive face identities, and such concepts are significantly enriched after fine-tuning with attribute tags. Each attribute can be well explained with a sparse linear combination of these concepts.

1 Introduction

Face attributes are beneficial for multiple applications such as face verification [15, 2, 25], identification [20], and retrieval. Predicting face attributes from images in the wild is challenging, because of complex face variations such as poses, lightings, and occlusions as shown in Fig.1.

Figure

Figure 1: (a) Inaccurate localization and alignment lead to prediction errors on attributes by existing methods (b) LNet localizes face regions by averaging the response maps of attribute filters. ANet predicts attributes without alignment (c) Face localization with the averaged response map when LNet is trained with different numbers of attributes. (Best viewed in color)

Attribute recognition methods are generally categorized into two groups: global and local methods. Global methods extract features from the entire object, where accurate locations of object parts or landmarks are not required. They are not robust to deformations of objects [23]. Recent local models [15, 4, 5, 2, 19, 32] first detect object parts and extract features from each part. These local features are concatenated to train classifiers. For example, Kumar et al. [15] predicted face attributes by extracting hand-crafted features from ten face parts. Zhang et al. [32] recognized human attributes by employing hundreds of poselets [4] to align human body parts. These local methods may fail when unconstrained face images with complex variations are present, which makes face localization and alignment difficult. As shown in Fig.1 (a), HOG+SVM fails because the faces or landmarks are wrongly localized or misaligned. Thus the features are extracted at wrong positions [26]. Recent research shows that face localization and alignment are still not well solved problems, especially in the wild condition, although much progress has been achieved in the past decade. It is also proved by our experimental result.

This work revisits global methods by proposing a novel deep learning framework, which integrates two CNNs, LNet and ANet, where LNet locates the entire face region and ANet extracts high-level face representation from the located region. The novelties are in three aspects. Firstly, LNet is trained in a weakly supervised manner, i.e. only image-level attribute tags of training images are provided, making data preparation much easier. This is different from training face and landmark detectors, where face bounding boxes and landmark positions are required. LNet is pre-trained by classifying massive general object categories, such that its pre-trained features have good generalization capability on handling large background clutters. LNet is then fine-tuned by attributes tags. We demonstrate that features learned in this way are effective for face localization and also can distinguish subtle differences between human faces and analogous patterns, such as a cat face.

Secondly, ANet extracts discriminative face representation, making attribute recognition from the entire face region possible. ANet is pre-trained by classifying massive face identities and is fine-tuned by attributes. We show that the pre-training step enables ANet to account for complex variations in the unconstrained face images.

Thirdly, within the rough locations of face regions provided by LNet, averaging the predictions of multiple patches can improve the performance. A simple way is to evaluate the feed-forward pass for each single patch. However, it is slow and has a lot of redundant computation. A novel fast feed-forward scheme is proposed to replace patch-by-patch evaluation. It evaluates images with arbitrary sizes with only one-pass feed-forward operation. It becomes non-trivial if the filters are locally shared, while studies [28, 27] showed that locally shared filters perform better in face related tasks. This is solved by proposing an interweaved operation.

Besides proposing new methods, our framework also reveals valuable facts on learning face representation. They not only motivate this work but also benefit future research on face and deep learning. (1) It shows how pre-training with massive object categories and massive identities can improve feature learning for face localization and attribute recognition, respectively. (2) It demonstrates that although filters of LNet are fine-tuned by attribute tags, their response maps over the entire image have strong indication of face location. Good features for face localization should be able to capture rich face variations, and more supervised information on these variations improves the learning process. The examples in Fig. 1 (a) show that as the number of attributes decreases, the localization capability of learned neurons gets reduced dramatically. (3) ANet is pre-trained with massive face identities. It discloses that the pre-trained high-level hidden neurons of ANet implicitly learn and discover sematic concepts that are related to identity, such as race, gender, and age. It indicates that when a deep model is pre-trained for face recognition, it implicitly learns attributes. The performance of attribute prediction drops without this pre-training stage.

The main contributions are summarized as follows. (1) We propose a novel deep learning framework, which combines massive objects and massive identities to pre-train two CNNs for face localization and attribute prediction, respectively. It achieves state-of-the-art attribute classification results on both the challenging CelebFaces [27] and LFW [12] datasets, improving existing methods by 88 and 1313 percent, respectively. (2) A novel fast feed-forward algorithm for CNN with locally shared filters is devised. (3) Our study reveals multiple valuable facts on leaning face representation by deep models. (4) We also contribute a large facial attribute database with more than eight million attribute labels and it is 2020 times larger than the largest publicly available dataset.

Figure

Figure 2: The proposed pipeline of attribute prediction (Best viewed in color)

References (32)

  • Poof: Part-based one-vs.-one features for fine-grained categorization, face verification, and attribute estimation
  • Self-taught object localization with deep networks (opens arXiv in a new tab)
  • Describing people: A poselet-based approach to attribute classification
  • Deep attribute networks
  • Li, K. Li, and L. Fei-Fei
  • DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition
  • Describing objects by their attributes
  • Dimensionality reduction by learning an invariant mapping
  • Spatial pyramid pooling in deep convolutional networks for visual recognition
  • Labeled faces in the wild: A database for studying face recognition in unconstrained environments
  • Imagenet classification with deep convolutional neural networks
  • Facetracer: A search engine for large collections of images with faces
  • Attribute and simile classifiers for face verification
  • Handwritten digit recognition with a back-propagation network
  • Learning surf cascade for fast and accurate object detection
  • Fully convolutional networks for semantic segmentation
  • A deep sum-product architecture for robust facial attributes analysis
  • Two faces are better than one: Face recognition in group photographs
  • Face detection without bells and whistles
  • Is object localization for free?–weakly-supervised learning with convolutional neural networks
  • CNN Features Off-the-Shelf: An Astounding Baseline for Recognition
  • Clustering by fast search and find of density peaks
  • Exploiting relationship between attributes for improved face verification
  • Deep convolutional network cascade for facial point detection
  • Deep learning face representation by joint identification-verification
  • Deepface: Closing the gap to human-level performance in face verification
  • Sun database: Large-scale scene recognition from abbey to zoo
  • Aggregate channel features for multi-view face detection
  • Part-based r-cnns for fine-grained category detection
  • Panda: Pose aligned networks for deep attribute modeling
  • Object detectors emerge in deep scene cnns
  • Edge boxes: Locating object proposals from edges