Deep Learning Face Representation from Predicting 10, 000 Classes

Yi Sun, Xiaogang Wang, Xiaoou TangCVPR 2014

Abstract

This paper introduces DeepID, a high-level face representation learned by training deep convolutional networks (ConvNets) to solve a massive 10,000-class identification task. By forcing the network to distinguish between thousands of individuals, the authors discovered that the resulting features are incredibly discriminative and generalize remarkably well to verifying the identities of people the network has never seen before. DeepID achieved near-human performance on the LFW benchmark, setting a new standard for face verification in the wild.

Introduction

Face verification "in the wild"—identifying if two images represent the same person despite variations in pose, lighting, and expression—is a cornerstone of computer vision. In 2014, the field was transitioning from shallow models using handcrafted features (like LBP or SIFT) to deep learning.

The core challenge was how to supervise a deep network to learn a "universal" face representation. Most previous attempts focused on binary verification (are these two the same?). The authors hypothesized that identification (who is this person among thousands?) provides a much stronger supervisory signal, forcing the model to extract more nuanced, identity-revealing features that are robust enough to generalize to entirely new faces.

The DeepID Framework

The authors proposed a framework called DeepID (Deep hidden IDentity features). The system is built on several key architectural choices designed to maximize discriminative power and robustness.

The DeepID framework: Multiple ConvNets are trained on various face patches to predict thousands of identity classes.

Multi-class Supervision and Compression

Instead of training on pairs, the researchers trained ConvNets to classify images into one of $n$ identities (where $n \approx 10,000$). The features are extracted from the last hidden layer of the ConvNet, known as the DeepID layer. This layer is intentionally kept small (160 neurons), forcing the network to compress the most vital identity information into a highly compact vector. This bottleneck acts as a form of regularization, ensuring the learned features are non-redundant and efficient.

Multi-scale Architecture

To capture both local, fine-grained details and more global, abstract patterns, the authors introduced a "skipping" connection. In this architecture, the DeepID layer is connected to both the third and fourth convolutional layers. This allows the feature vector to "see" information from multiple scales simultaneously, preventing the loss of spatial information that often occurs in deeper pooling layers.

Architecture of a single DeepID ConvNet, showing the multi-scale connections from the third and fourth convolutional layers to the DeepID layer.

Over-complete Representation

To ensure robustness against occlusion and lighting, the system employs an over-complete representation. They trained 60 different ConvNets on various face patches (e.g., eyes, nose, mouth corners) at different scales and in both color and grayscale. The final representation is a concatenation of all these features. Once features are extracted, a Joint Bayesian analysis or a specialized neural network is used as a verification backend to compare feature vectors.

Experimental Results

The model was trained on the CelebFaces+ dataset, containing 202,599 images of 10,177 celebrities, and evaluated on the Labeled Faces in the Wild (LFW) benchmark.

  • Accuracy: The system achieved 97.45% accuracy on LFW, which was essentially on par with human performance (97.53%) at the time.
  • Efficiency: Despite the high accuracy, the final feature dimension for a single face was reduced to just 150 dimensions (via PCA) for the verification step, making it highly efficient for large-scale comparisons.
  • Comparison: DeepID outperformed Facebook’s contemporary "DeepFace" model (97.25%), despite DeepFace using significantly more training data (4.4 million images vs. DeepID's ~200k).

Key Insights and Conclusion

The primary insight of this work is that harder tasks build better features. As the number of identities in the training set increases, the verification accuracy on unseen faces also increases. The more people the network learns to distinguish, the better it understands the fundamental geometry of the human face.

While the system is computationally expensive due to the ensemble of 60 ConvNets and relies heavily on accurate facial landmark detection for patch cropping, it demonstrated the power of large-scale identification as a supervisory signal. Future work in the field has since moved toward single-network architectures that maintain this high level of discriminative power.

Summary updated

BibTeX
@inproceedings{sun2014deep,
  author = {Yi Sun and Xiaogang Wang and Xiaoou Tang},
  title = {{Deep Learning Face Representation from Predicting 10, 000 Classes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.244},
}
Figure