Source-linked AI summary

An All-In-One Convolutional Neural Network for Face Analysis

Rajeev Ranjan, Swami Sankaranarayanan, Carlos D. Castillo, Rama Chellappa

arXiv:1611.00851v1cs.CV

TL;DR

The paper targets inefficient, fragmented face-analysis systems in which related tasks are trained and executed separately. It introduces a single CNN trained with multi-task learning and shared, regularized representations, achieving state-of-the-art results for most tasks across unconstrained datasets. The reported design also improves face verification and recognition relative to the baseline network.

  • Problem

    Separate face-analysis modules make end-to-end integration inefficient, accumulate errors, and fail to exploit correlations among related tasks.

  • Method

    A single CNN jointly performs seven face-analysis functions using shared lower-layer parameters, task-specific upper layers, multi-task regularization, and face-recognition initialization.

  • Results

    The method achieves state-of-the-art performance for most tasks on challenging unconstrained datasets and improves all reported verification metrics by 2% to 3% over the baseline network.

  • Takeaways & Limitations

    Joint learning across face-related tasks produces robust feature descriptors and benefits subject-independent tasks through domain-based regularization.

Abstract

from arXiv · show

We present a multi-purpose algorithm for simultaneous face detection, face alignment, pose estimation, gender recognition, smile detection, age estimation and face recognition using a single deep convolutional neural network (CNN). The proposed method employs a multi-task learning framework that regularizes the shared parameters of CNN and builds a synergy among different domains and tasks. Extensive experiments show that the network has a better understanding of face and achieves state-of-the-art result for most of these tasks.

I. INTRODUCTION

The paper addresses fragmented face-analysis pipelines by introducing a single CNN that jointly handles diverse tasks through multi-task learning. Shared representations and domain-based regularization target correlated-task synergy, while experiments report state-of-the-art performance for most tasks.

  • Motivation: Existing face-analysis tasks are mostly treated separately, making end-to-end integration inefficient and allowing errors to accumulate across modules.A typical recognition pipeline detects and aligns a face before determining identity.
  • Contribution: The proposed CNN simultaneously performs detection, landmark localization, pose estimation, gender recognition, smile detection, age estimation, and face identification or verification.It uses a single CNN in an end-to-end manner.
  • Contribution: Multi-task learning shares lower-layer parameters across tasks while keeping upper layers task-specific, regularizing shared representations and reducing over-fitting.The design aims to learn robust features for distinct tasks.
  • Contribution: The method extends prior joint face analysis by adding smile, age, and face recognition, training across multiple datasets, and initializing from a face-recognition network.The paper contrasts this design with HyperFace, which trains only on AFLW and uses AlexNet initialization.
  • Related work: Face alignment and unconstrained pose estimation remain challenging because of limited training data and substantial variation in pose and visibility.Prior alignment methods focused mainly on near-frontal faces, while fewer methods addressed unconstrained pose estimation.
  • Related work: Face verification remains difficult for unconstrained faces with viewpoint and illumination variation, despite strong results on LFW from large-scale CNN training.The paper addresses this setting using multi-task regularization with half a million CASIA training samples.

III. PROPOSED METHOD

The proposed method is a multi-purpose CNN that jointly analyzes unconstrained face images across detection, geometry, attributes, age, and identity. Multi-task training builds synergy among related tasks and improves their performance.

  • Proposed method: The multi-purpose CNN simultaneously detects faces, extracts key-points and pose angles, predicts smile, age, and gender, and assigns identity descriptors for recognition and verification.The system is intended to operate on unconstrained face images.

A. Multi-task Learning

The method shares lower CNN layers across face-analysis tasks while retaining task-specific upper layers. Multi-task learning combines task losses and regularizes shared parameters using information from related tasks and domains.

  • A. Multi-task Learning: Lower CNN layers produce a generic face representation shared across tasks, while task-specific layers generate individual outputs.The framework shares lower-layer parameters among tasks and input domains, with upper layers specialized to each task.
  • A. Multi-task Learning: For an isolated task, the network minimizes that task’s cost over shared and task-specific parameters.The task cost is denoted Ji(θs, θti; D), where D is the input data.
  • A. Multi-task Learning: Multi-task learning minimizes a weighted sum of task losses, with αi denoting the loss weight for task ti.The shared parameters are optimized jointly with the task-specific parameters.
  • A. Multi-task Learning: Other tasks act as a regularizer on shared parameters, shrinking their solution space toward a consensus across tasks.The paper states that this reduces over-fitting and enables a more robust solution.

2) Domain-based Regularization:

The network uses task-related datasets jointly because no single large dataset provides all required face annotations. Shared parameters therefore adapt across domains while a face-identification backbone supplies the architecture and initialization.

  • 2) Domain-based Regularization:: Training across task-related datasets adapts shared parameters to multiple domains and raises the total training set to roughly one million samples.This strategy is used because comprehensive annotations for all face-analysis tasks are unavailable in one large dataset.
  • 2) Domain-based Regularization:: The architecture begins with a face-identification CNN pretrained by Sankaranarayanan et al. and shares its first six convolutional layers with other tasks.The backbone has seven convolutional layers followed by three fully connected layers.
  • 2) Domain-based Regularization:: Face-identification pretraining is used because its filters retain discriminative face information for generic face analysis.The paper argues that this provides better initialization for related tasks.
  • 2) Domain-based Regularization:: Subject-independent tasks branch from fused lower and intermediate convolutional layers, whereas age and gender branch from the sixth convolutional layer.Face recognition keeps the seventh convolutional layer unshared, and task-specific losses train the network end-to-end.

C. Training

Training uses five partially shared sub-networks that are fused into one all-in-one CNN at test time. Detection-related tasks use region proposals, overlap thresholds, and task-specific losses within simultaneous end-to-end training.

  • C. Training: Five sub-networks share parameters during training and are fused into a single all-in-one CNN at test time.Detection, keypoint localization, and pose share one sub-network; smile, gender, age, and recognition use separate sub-networks.
  • C. Training: Detection training uses Selective Search region proposals, treating overlaps above 0.5 as positive and overlaps below 0.35 as negative examples.These examples are formed from the AFLW dataset, with 1,000 images held out for testing.
  • C. Training: The architecture diagram encodes each layer by kernel size, layer type, feature-map count, and filter stride.Orange denotes the pretrained network, while blue denotes layers added for multi-task learning.
  • C. Training: Regression tasks use Euclidean loss, and only regions with IOU greater than 0.35 contribute to back-propagation.The threshold controls which regions participate during regression-task training.
  • C. Training: Gender recognition is trained as a binary classification problem using crossentropy loss.The predicted probability represents the likelihood that the input face is female.

3) Smile Detection:

Smile detection is trained as a binary attribute task, while age estimation is formulated as regression. The age loss combines Euclidean and Gaussian terms with a schedule for λ to address the Gaussian loss’s weak gradients for distant predictions.

  • 3) Smile Detection:: Smile prediction is trained on CelebA as a binary attribute task intended to improve robustness to expression variation in face recognition.Aligned images are passed through the network before optimization with the smile loss.
  • 3) Smile Detection:: For smile detection, s = 1 denotes a smiling face and s = 0 otherwise, while ps is the predicted smiling probability.The task uses a binary output interpretation.
  • 4) Age Estimation:: Age estimation predicts age from a face image using IMDB+WIKI, Adience, and MORPH training data.The paper formulates age estimation as a regression problem.
  • 4) Age Estimation:: The age loss combines Euclidean and Gaussian losses because Gaussian loss gradients become nearly zero when predicted age is far from the true age.λ weights the combination, and the two loss functions are illustrated in Fig. 4.
  • 4) Age Estimation:: λ starts at 0 and switches to 1 after 20k iterations, while σ is fixed at 3 when the training set does not provide it.Here, y is predicted age, a is ground-truth age, and σ is the annotated-age standard deviation.

5) Face Recognition:

The network combines task-specific losses into one weighted overall objective, with empirically selected weights that compensate for lower regression-loss magnitudes.

  • The final loss L is the weighted sum of the individual task losses.Each task contributes through its loss L_t and corresponding weight λ_t.
  • The loss weight λ_t corresponds to task t's individual loss L_t.
  • Regression tasks receive higher weights because their loss magnitudes tend to be lower than those of classification tasks.The weights are chosen empirically.

D. Testing

Testing uses a two-stage pipeline: proposals are processed for detection, pose, and landmarks, then aligned faces are reprocessed for attributes and identity.

  • Stage 1: Testing begins by generating region proposals with Selective Search and passing them through the all-in-one network.
  • Stage 1: The first stage produces detection scores, pose estimates, fiducial points, and visibility predictions.Iterative Region Proposals and Landmarks-based NMS filters non-faces and improves fiducial and pose estimates.
  • Stage 2: Detected faces are aligned to a canonical view using their fiducial points and a similarity transform.
  • Stage 2: Aligned faces and their flipped versions are processed again to obtain smile, gender, age, and identity information.The penultimate identification layer supplies a 512-dimensional identity descriptor.
  • Evaluation: Evaluation covers the trained tasks except key-points visibility, using HyperFace and the initialization method as task-specific baselines.
  • Evaluation: The method achieves state-of-the-art detection performance on AFW and PASCAL, with mAP values of 98.5% and 95.01%, respectively.On FDDB, it performs better than most reported algorithms but has lower recall than Faster-RCNN and Zhang et al. because small faces may be missed by region proposals.

B. Landmarks Localization

The method evaluates landmark localization across varied viewpoints and reports strong performance on AFLW and AFW, while noting reduced pixel-level precision on easy faces.

  • AFLW: AFLW evaluation balances 450 samples across yaw bins of [0°, 30°], [30°, 60°], and [60°, 90°].The comparison uses Normalized Mean Error (NME) for each yaw bin.
  • AFLW: The method reduces alignment error by more than 30% relative to the previous best HyperFace result.A low standard deviation of 0.13 indicates consistent landmark prediction as pose angles vary.
  • AFW: On AFW, more than 95.5% of test faces have landmark NME below 5%, outperforming existing methods on unconstrained and profile faces.
  • AFW: The method lacks pixel-accurate key-point localization for easy faces, reflected by the lower end of the comparison curve.The cited comparison includes CCL, HyperFace, LBF, SDM, ERT, and RCPR.
  • Pose estimation: For pose evaluation, predicted yaw is rounded to the nearest 15° because the ground-truth yaw values use 15° increments.
  • Pose estimation: More than 99% of faces have yaw predictions within ±15°, outperforming the competing methods shown in Fig. 7(b).

D. Gender and Smile Recognition

The paper evaluates gender, smile, age, and identity tasks across challenging datasets, reporting strong classification, age-estimation, and face-recognition results.

  • Gender and Smile Recognition: On CelebA, the method outperforms all compared methods for gender accuracy and trails Walk and Learn only on smile accuracy.Faces of the World provides wider scale and viewpoint variation, and the corresponding branches are fine-tuned before evaluation.
  • Gender and Smile Recognition: The method achieves state-of-the-art gender and smile classification on the Faces of the World validation set.
  • Age Estimation: On ChaLearn LAP2015, age-estimation error is 0.293, below the reported human error of 0.34.
  • Age Estimation: On FG-NET, the method achieves an average age-estimation error of 2 years and significantly outperforms other methods.
  • Face Identification/Verification: On IJB-A, the method achieves state-of-the-art face identification and improves all metrics by 2% to 3% over the baseline network.Verification is comparable to template-adaptation learning, with a 0.1-second query time after face detection per image pair.
  • Face Identification/Verification: End-to-end comparisons attribute about 80% of the reported performance gain to the identity descriptor and 20% to improved face alignment.

G. Runtime

The all-in-one network processes an image in 3.5 seconds on the reported hardware, with region-proposal generation and CNN evaluation forming the main bottleneck.

  • 3.5s is the average time required to process an image on a machine with 8 CPU cores and a GTX TITAN-X GPU.
  • Region-proposal generation and passing each proposal through the CNN are the major speed bottleneck.
  • 0.1s is the computation time for the method’s second stage.
  • The authors identify real-time operation as future work for the multi-task method.
Loading 1611.00851v1…