Unsupervised Learning of Face Representations

Samyak Datta, Gaurav Sharma, C. V. Jawahar

Abstract

We present an approach for unsupervised training of CNNs in order to learn discriminative face representations. We mine supervised training data by noting that multiple faces in the same video frame must belong to different persons and the same face tracked across multiple frames must belong to the same person. We obtain millions of face pairs from hundreds of videos without using any manual supervision. Although faces extracted from videos have a lower spatial resolution than those which are available as part of standard supervised face datasets such as LFW and CASIA-WebFace, the former represent a much more realistic setting, e.g. in surveillance scenarios where most of the faces detected are very small. We train our CNNs with the relatively low resolution faces extracted from video frames collected, and achieve a higher verification accuracy on the benchmark LFW dataset cf. hand-crafted features such as LBPs, and even surpasses the performance of state-of-the-art deep networks such as VGG-Face, when they are made to work with low resolution input images.

Introduction

Deep learning has revolutionized face recognition, but its success typically hinges on massive, manually annotated datasets like CASIA-WebFace or VGG-Face. Labeling millions of identities is not only expensive but also fails to scale with the billions of images available online. Furthermore, standard datasets often consist of high-resolution, well-lit "celebrity" photos, creating a performance gap in real-world "in-the-wild" scenarios—such as surveillance—where faces are often low-resolution, blurry, or poorly lit. This paper addresses these challenges by introducing a method for training deep face recognition models without manual labels, leveraging millions of face pairs automatically mined from YouTube videos.

Methodology

The core of the proposed approach is an end-to-end pipeline for unsupervised learning based on two simple yet powerful spatial and temporal heuristics:

  1. Spatial Dissimilarity: Multiple faces detected within a single video frame almost certainly belong to different individuals.
  2. Temporal Similarity: A face tracked across consecutive frames in a video belongs to the same individual.
Overview of the unsupervised face detection, tracking, and Siamese network training pipeline.

The pipeline begins with data mining using a Viola-Jones detector on 850 YouTube videos, followed by a tracking-by-detection framework to group faces into "tracks." These tracks provide the "free" labels needed for training. The model employs a Siamese Network architecture—two identical CNN branches sharing weights—trained with a max-margin loss. This loss function minimizes the L2 distance between "similar" pairs (from the same track) while ensuring "dissimilar" pairs (from the same frame) are separated by a predefined margin.

Data and Challenges

The unsupervised training set was mined from approximately 70 hours of YouTube footage, yielding 1.36 million faces and 5 million pairs. A key characteristic of this dataset is its realism: the average face size is only $67 \times 67$ pixels. This low-resolution nature, combined with significant variations in pose, expression, and lighting, forces the model to learn features that are robust to the degradations common in real-world imagery.

Examples of facial variations in the mined video dataset, including illumination, pose, expression, occlusion, blur, and animation.

To prevent the network from learning environmental context (e.g., a specific news studio background) instead of facial features, the authors implemented cross-genre pairing for dissimilar faces, ensuring the model focuses on identity-discriminative traits.

Results and Analysis

The unsupervised model was evaluated on the standard Labeled Faces in the Wild (LFW) benchmark. Key findings include:

  • Superiority over Hand-crafted Features: The model achieved 71.48% accuracy, significantly outperforming hand-crafted LBP features (64.6%).
  • Robustness to Low Resolution: When state-of-the-art supervised models like VGG-Face were tested on low-resolution inputs, their performance dropped to ~62.38%. The proposed unsupervised model, trained on low-res data, demonstrated superior resilience.
  • Effective Pre-training: Fine-tuning the unsupervised representation on a small labeled subset of LFW increased accuracy to 74.13%, highlighting its value as a foundation for downstream tasks.

Discussion and Conclusion

While the approach demonstrates the power of "natural supervision," it is not without limitations. Heuristic errors (e.g., reflections) and tracking drift can introduce noise into the training pairs. Additionally, the lack of global identity knowledge means the same person appearing in different videos might be treated as dissimilar, potentially limiting the accuracy ceiling. Future work will explore scaling to larger corpora and utilizing more complex temporal cues to further bridge the gap between unsupervised and supervised face representation learning.

Summary updated

BibTeX
@inproceedings{datta2018unsupervised,
  author = {Samyak Datta and Gaurav Sharma and C. V. Jawahar},
  title = {{Unsupervised Learning of Face Representations}},
  booktitle = {FG},
  year = {2018},
  url = {https://openreview.net/forum?id=BoGrm1WkLx},
}
Figure