Deep Learning Face Representation by Joint Identification-Verification

Yi Sun, Yuheng Chen, Xiaogang Wang, Xiaoou Tang

This paper, a seminal work in the evolution of modern face recognition, introduces DeepID2. By combining two distinct supervisory signals—identification and verification—the authors achieved what was then a record-breaking 99.15% accuracy on the Labeled Faces in the Wild (LFW) benchmark, effectively matching human performance for the first time.

The Challenge: Intra-personal vs. Inter-personal Variation

The fundamental challenge in face recognition is resolving the conflict between two types of variation:

  1. Intra-personal variation: The same person can look drastically different due to changes in lighting, pose, expression, and age.
  2. Inter-personal variation: Different people can look remarkably similar.

Traditional methods (like LDA or Bayesian face) were often linear or shallow, struggling to map high-dimensional image pixels into a space where these variations are cleanly separated. While deep learning provides the necessary non-linear power, this paper argues that the way we supervise the learning matters immensely.

Methodology: The Joint Learning Framework

The core innovation of DeepID2 is a joint learning framework that uses two supervisory signals simultaneously:

  • The Identification Signal: The network is trained to classify an input image into one of $n$ identities (e.g., 8,192 classes) using a softmax layer. This encourages the network to find features that separate different people, thereby increasing inter-personal variation.
  • The Verification Signal: The network is trained to minimize the distance between features of the same person and maximize the distance between different people (using an L2-norm contrastive loss). This directly constrains the network to ignore "noise" like lighting or pose, reducing intra-personal variation.
DeepID2 Convolutional Neural Network Architecture

Architecture Details: The model utilizes a deep convolutional network with four convolutional layers. Notably, the third and fourth layers use local weight sharing rather than standard global convolution to better capture specific facial geometries. The DeepID2 Layer is a 160-dimensional hidden layer that serves as the final face descriptor. It is uniquely connected to both the third and fourth convolutional layers to capture multi-scale information. To further boost performance, features are extracted from 25 different facial patches (eyes, nose, mouth corners, etc.) at multiple scales, concatenated, and reduced via PCA.

Key Insights

Effect of lambda and identity number on verification accuracy
  • The Balancing Act ($\lambda$): The authors introduced a hyperparameter $\lambda$ to weight the verification signal against the identification signal. They found that neither signal is optimal on its own. Identification provides a "global" view of identity, while verification provides "local" pairwise constraints. The best results emerge from a specific balance ($\lambda \approx 0.05$).
  • Richness of Identity: Increasing the number of identities in the training set significantly improves the quality of the learned features. More identities provide a richer supervisory signal for the identification task.
  • Verification as Regularization: The verification signal acts as a strong per-element constraint. Without it, the identification task might map two very different-looking images of the same person to the same class, but their internal feature vectors might still be far apart. The verification signal pulls them together in the feature space.

Results and Future Directions

Trained on the CelebFaces+ dataset (over 200,000 images of ~10,000 celebrities), DeepID2 achieved a massive leap in performance.

  • Accuracy: It reached 99.15% on the LFW dataset, reducing the error rate by a staggering 67% compared to the previous state-of-the-art deep learning model (DeepID).
  • Efficiency: Despite the complexity of the 25-patch ensemble, extracting features from a single face patch takes only 1.7ms on a GPU, and the full extraction takes 35ms, making it viable for real-time applications.

While 10,000 identities was a large dataset at the time, the authors noted that performance continued to scale with more data, suggesting that millions of identities would yield even better results. Future work could also improve upon the heuristic patch selection process by using end-to-end attention mechanisms, or incorporate 3D face modeling to "frontalize" faces and further reduce intra-personal variation caused by extreme poses.

Summary updated

BibTeX
@inproceedings{sun2014deep,
  author = {Yi Sun and Yuheng Chen and Xiaogang Wang and Xiaoou Tang},
  title = {{Deep Learning Face Representation by Joint Identification-Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
}
Figure