Paper commentary
Learning Face Representation from Scratch
A semi-automatic pipeline builds a large public face dataset from web images
- Problem Top face recognition systems were trained on large private datasets, so public data and comparable results were scarce. Researchers could not compare methods trained on different private data.
- Method CASIAWebFace is a dataset built from IMDb celebrity photos, with identities assigned by name tags and face similarity. An 11-layer CNN trains on it with Softmax and Contrastive costs.
- Results A single network trained on CASIAWebFace reaches 97.73% on LFW under the unrestricted protocol, above 97.35% for DeepFace with 7 networks.
Why a public training set was missing
Deep CNNs had become the leading approach for face recognition, but the largest training sets behind top LFW results were private. Because researchers trained on different private data, methods were hard to compare, and groups without large data had little room to contribute.
Gathering web face images is simple; attaching a correct identity to each face is the costly part, and the dataset design targets that step.
Collecting candidate photos from IMDb
IMDb was chosen because each celebrity page has a name, a main photo and a photo gallery, which gives a consistent source of candidate images. Celebrities born from 1940 through 2014 were searched and their names crawled, and only the name, main photo and gallery were used.
Before cleaning, the crawl produced 38,423 subjects and 903,304 images, and a multi-view face detector kept 844,126 images containing 1,556,352 faces. A photo can appear in the galleries of several celebrities, so the real counts of images and faces are below these figures.
Assigning identities with name tags and similarity
Most gallery photos contain several faces, so the task is to assign each face to a celebrity and group faces by identity. Each photo carries several name tags, which narrows the candidate names for each face and makes the matching manageable. Clustering all faces at once needs a similarity matrix too large to hold in memory, so the procedure works in stages instead.
Features come from a pre-trained face recognition engine, and each celebrity's main photo serves as the seed. Single-face photos enlarge the seeds, and the remaining gallery faces are matched to celebrities using both similarity and name tags. Cropped faces are saved in one folder per celebrity and checked by hand, with wrongly grouped faces removed.
Subjects with fewer than 15 face images were dropped, and names were compared with LFW by edit distance, which flagged 1043 subjects for removal. The cleaned dataset holds 10,575 subjects and 494,414 face images, and a small number of misassigned samples are accepted as a side effect of the scale.
Architecture of the baseline network
The input is a 100×100 gray-scale face, and the network stacks 10 convolutional layers, 5 pooling layers and one fully connected layer. Every convolution uses a 3×3 filter, and the total of about 5015K parameters comes from the layers listed in the architecture table.
Small filters stacked in depth reduce the parameter count while adding nonlinearity, and the design follows two very deep networks from earlier work. Multiple small filters replace larger ones, and redundant fully connected layers are removed to keep the parameter count down. The first four pooling layers use max pooling and the last uses average pooling, and the layout was set by the authors' experience under the limits of their GPU rather than optimized.
The Pool5 output is 320-dimensional, matching the channel count of Conv52, and serves as the face representation. The low dimension is meant to hold the identity information for 10575 training subjects in a compact form.
Training objective and input preparation
Softmax identification cost is computed from Fc6, and Contrastive verification cost is computed from Pool5 on sampled face pairs. A weight alpha balances the two costs; it starts at 3.2e-4 because Softmax converges faster, and rises to 6.4e-3 as training proceeds. Dropout with ratio 0.4 is applied to Fc6, which holds 320×10575 parameters and therefore needs regularization.
ReLU follows every convolutional layer except Conv52, since Conv52 is averaged into the low-dimensional representation. The authors argue that ReLU would make that dense representation sparse and so lower performance.
Faces are converted to gray scale and aligned by a similarity transformation on two landmarks, which places the two points 25 pixels apart in the 100×100 crop. Mirroring the 493,456 detected faces doubles the training set to 986,912 samples.
Weight decay is set to 0 for convolutional layers and to 5e-4 for the fully connected layer, since the authors judge the network unlikely to overfit with this much data. The learning rate starts at 1e-2 and is reduced to 1e-5 gradually, and training uses the cuda-convnet implementation. Contrastive pairs are sampled positive and negative within each batch, so pairs spanning batches are not used.
LFW results across the five configurations
LFW was evaluated on View2 with a fixed test set of 6000 pairs in 10 splits, and results are given as mean accuracy with standard error. Hyper-parameters such as the PCA dimension and the Joint Bayes regularization factor were tuned on CASIA-WebFace or View1, not on View2.
Five configurations were compared: A applies cosine matching to the base representation, B adds PCA trained on CASIA-WebFace, and C uses Joint Bayes trained on CASIA-WebFace. D and E repeat the PCA and Joint Bayes steps with the LFW training set, and the unsupervised setting means the model was not trained on LFW in a supervised way.
In the unsupervised setting, the base representation A reached 96.13%, above the 95.92% of one-network DeepFace. Fine-tuning on the LFW training set helped slightly, as seen from B to D and C to E, and D reached 96.33%. Joint Bayes gave only marginal gains over PCA-based cosine matching, as seen from B to C and D to E, and no restricted-protocol run was made because Joint Bayes cannot handle pairs directly.
Under the unrestricted protocol, the single-network scheme E reached 97.73%, above the 97.35% of DeepFace with 7 networks. It is comparable to the 97.75% of DeepID2 with 4 networks; these DeepFace and DeepID2 scores come from prior work and were not rerun here. The authors attribute the gain to the deep architecture rather than to a particular component.
BLUFR results at low false acceptance rates
The 6000 standard LFW pairs contain too few impostor pairs to measure low false acceptance rates, so BLUFR uses all 13,233 LFW images. Each of the 10 trials contains about 156,915 genuine and 46,960,863 impostor matching scores, and BLUFR covers both verification and open-set identification.
Scheme E reached VR@FAR=0.1% of 80.26%, compared with 41.66% for HD-LBP + JB and 36.12% for HD-LBP + LDA. At DIR@FAR=1%Rank=1, scheme E reached 28.90%, against 18.07% for HD-LBP + JB, and the values are reported as mean minus standard deviation over trials.
The compared HD-LBP methods are conventional wide models, so the gap is read by the authors as support for deep models over wide ones. All BLUFR numbers are lower than the LFW accuracies, and the authors judge that DIR in particular shows face recognition is still short of surveillance and watch-list needs.
YTF video matching results
For each YouTube Faces video, 15 frames are sampled, and a video pair is scored by the mean over 15×15=225 frame pairs. During training the 15 frames of a video share one identity, and YTF frames are of lower quality than LFW because of compression and motion blur.
With cosine matching and no training on YTF, the base representation A reached 88.00%.
Limitations
Alignment is a 2D similarity transformation, which the authors consider inferior to the 3D alignment of DeepFace. The training set is about 10X smaller than DeepFace's SFC set. GPU limits stopped the authors from training a deeper network or an ensemble.
Some detections are missed and some faces are misaligned, and these were kept in the training data. Face pairs for the Contrastive cost are sampled within each batch only, and generating complete pairs was left to future work.
Evaluation covers LFW, its BLUFR protocol and YTF, and the BLUFR DIR values show the remaining gap for surveillance use.
Paper info
- Authors
- Dong Yi, Zhen Lei, Shengcai Liao, Stan Z. Li
- Venue
- arXiv · Preprint
- First published
- 2014-11-28
- Added
- 2026-11-12
- Updated
- 2014-11-28
- Version
- v1
- arXiv
- 1411.7923
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Dong Yi, Zhen Lei, Shengcai Liao, Stan Z. Li (2014). Learning Face Representation from Scratch. arXiv:1411.7923v1. https://arxiv.org/abs/1411.7923v1
BibTeX
@misc{yi2014learning,
title = {{Learning Face Representation from Scratch}},
author = {Dong Yi and Zhen Lei and Shengcai Liao and Stan Z. Li},
year = {2014},
eprint = {1411.7923},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1411.7923v1}
}