WIDER FACE: A Face Detection Benchmark
- Publication
- CVPR 2016Conference
- First submitted to arXiv
- arXiv:1511.06523
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{objectdetectionwiderface2015,
title = {{WIDER FACE: A Face Detection Benchmark}},
author = {Shuo Yang and Ping Luo and Chen Change Loy and Xiaoou Tang},
year = {2015},
eprint = {1511.06523},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1511.06523}
}
Face-detection papers from 2016 on nearly all have the same results table. Three columns, Easy, Medium and Hard, one AP per column. MTCNN scores 0.607 on the Hard test set and RetinaFace 0.914; the top of the later leaderboard is crowded around 0.92, with gaps of only a few tenths of a percentage point.
These three columns come from WIDER FACE, released by the Multimedia Laboratory of the Chinese University of Hong Kong in November 2015. It has 32,203 photos and 393,703 face boxes, the photos drawn from 61 kinds of events such as parades, concerts, sports matches and operating rooms. One photo of a protest march in the training set has 1,968 faces labeled in it alone; of the 39,708 boxes in the validation set, more than half are faces under 21 pixels tall.
When the paper came out, the authors brought in four representative detectors, and none of them got above 0.3 on Hard.
This note sets out to pin down the rules behind those three columns. Where the lines between Easy, Medium and Hard are drawn, how AP is computed, which faces aren't scored at all. The paper's text covers part of it; the rest is written in the official evaluation code.
Defining the Problem
The Old Exams No Longer Tell Detectors Apart
A face detector takes in a photo and outputs a box and a confidence score for each face. To compare detectors you need a batch of photos with labeled boxes and a set of scoring rules. These were the common ones in 2015:
- FDDB: 2,845 images and 5,171 faces, the photos from Yahoo! News and skewed toward celebrities. The labels are ellipses. The official discrete score counts a face as found (1 point) when the overlap ratio between a detection box and the ellipse is above 0.5, and the continuous score uses the overlap ratio itself as the score; results are plotted as ROC curves, with the number of false positives over the whole dataset on the horizontal axis and the fraction of faces found on the vertical axis.
- AFW: 205 Flickr photos and 473 faces, labeled with 6 landmarks and pose angles as well as boxes.
- PASCAL FACE: 851 images and 1,341 faces.
- IJB-A: 24,327 images and 49,759 faces, used for both detection and recognition, but with no occlusion or pose labels.
- MALF: 5,250 images and 11,931 faces, the first dataset labeled with fine-grained attributes such as occlusion, pose and expression, and small in scale.
The authors listed the best results of the time: 97.2% AP on AFW, a top recall of 91.74% on FDDB and 92.11% AP on PASCAL FACE, with very small gaps among the leaders.
These datasets have another problem in common; most of them have only a test set. Detectors were often trained on AFLW, a dataset designed for facial landmarks, where many small, low-resolution and heavily occluded faces are left unlabeled and the backgrounds are clean, so negatives had to be found separately in datasets such as PASCAL VOC.
Face sizes also differ a lot. The table below gives the number of faces in each dataset's test set and the share of those faces in three height ranges, 10–50, 50–300 and over 300 pixels, labeled small, medium and large in the header.
| Dataset | Faces | Small | Medium | Large |
|---|---|---|---|---|
| AFW | 0.47k | 12% | 70% | 18% |
| FDDB | 5.1k | 8% | 86% | 6% |
| PASCAL FACE | 1.3k | 41% | 57% | 2% |
| IJB-A | 17k | 13% | 69% | 18% |
| MALF | 11.9k | – | – | – |
| WIDER FACE | 194k | 50% | 43% | 7% |
Compiled from Table 1 of the paper. WIDER FACE's test set has 16,000 images; IJB-A also has 16,000 training images with 33,000 faces, and WIDER FACE's training and validation sets together have 16,000 images and 199,000 faces.
FDDB has 86% of its faces between 50 and 300 pixels; WIDER FACE has half of its faces under 50 pixels. In other words, the old exams mostly tested medium-sized faces.
So this paper sets out to do three things. Build a dataset that is large enough, hard enough and comes with a training set; find a way, independent of any detector, to measure objectively which faces are hard; and see how the detectors of the time fare on it.
Solving the Problem
Where the Photos Come From
WIDER FACE's photos are taken from WIDER, an event-recognition dataset. WIDER was built in three steps. First, event categories were defined from LSCOM (a set of about 1,000 concepts compiled for analyzing events in video); then 1,000 to 3,000 images per category were collected through Google and Bing searches; finally, every photo was checked by hand, removing photos with no faces and deleting ones that were too similar within the same category. The 32,203 that remained are WIDER FACE.
Using events as the skeleton is meant to make the scenes diverse, and the backgrounds along with them. In the event difficulty ranking by face scale that the paper derives later, the hardest events are traffic, festivals and parades, and the easiest are surgery, spa and tennis.
The folders actually released hold 61 categories, numbered 0 to 59 plus 61--Street_Battle (number 60 is missing), and the official evaluation code also says event_num = 61. The paper's charts that rank difficulty by event list the first 60 categories.
Within each event, photos are split at random 40%, 10% and 50% into training, validation and test sets, which works out to 12,880, 3,226 and 16,097 images. The test-set boxes are not public; predictions have to be mailed to the authors for scoring. The paper defines two settings. Scenario-Ext may train on any external data, and Scenario-Int may use only WIDER FACE's training and validation sets.
How It's Labeled
Boxes must fit tightly around the forehead, chin and both cheeks. Occluded faces are labeled too, with the box drawn over the estimated full extent. Faces too small or too low-resolution to make out (10 pixels or less) are marked Ignore. Each box is drawn by one person and cross-checked by two others.
After the boxes come attributes. The paper describes two:
- Occlusion: 1% to 30% of the face covered counts as partial occlusion, over 30% as heavy occlusion.
- Pose: roll or pitch over 30 degrees, or yaw over 90 degrees, counts as atypical pose.
In the annotation files actually released, each box has 10 numbers. Besides , width, height, occlusion and pose, there are four more fields the paper's text doesn't describe: blur (clear, normal, heavy), expression (typical, exaggerated), illumination (normal, extreme) and invalid. In the validation set, heavily blurred faces make up 59.5%, partial occlusion 18.1%, heavy occlusion 21.9% and atypical pose 4.2%, and 585 are marked invalid (this note's count).
Measuring Difficulty with a Proposal Method as the Yardstick
How do you define "hard"? Grade faces by some detector's results, and the grading carries that detector's preferences. The authors used a generic proposal method instead.
A proposal method doesn't know what a face is. It finds regions that "look like an object" from the edges and contours of an image alone, throwing out thousands of boxes per image, originally as candidates for object detectors. The authors chose EdgeBox and computed, with 2,000 to 10,000 proposals per image, what fraction of faces are found by some proposal, calling this the detection rate. The lower the detection rate, the less a batch of faces looks like an "object," and the harder it is.

Start with (a) at the top left. Each group of bars is the detection rate of each dataset at the same number of proposals. AFW, PASCAL FACE, FDDB and IJB-A are all above 0.75 at 6,000 proposals, most of them close to 1; WIDER FACE's three subsets are the three bars on the far right, and Hard, the lightest, is still under 0.4 at 10,000 proposals.
(b) at the top right divides WIDER FACE's faces by height into small (10–50 pixels), medium (50–300) and large (over 300). At 8,000 proposals, large and medium faces are both above 0.9, while small faces are at only 0.18; even with 10,000 proposals, small faces reach only 0.2. The two bottom plots are occlusion and pose. Partially or heavily occluded faces are both under 0.55 at 8,000 proposals, and atypical poses only 0.34.
The difficulty levels are built on this measurement. Following KITTI and MALF, the paper sorts faces into three levels, Easy, Medium and Hard, by EdgeBox detection rate; at 8,000 proposals per image, the average recall of the three levels is 92%, 76% and 34%.
The paper doesn't say how each individual face is assigned to a level. We can look directly at the validation-set level lists that come with the official evaluation tool.

The colors are split almost purely by face height.
- Easy: 7,211 faces, almost all taller than 50 pixels.
- Medium: 13,319 faces, all of Easy plus 6,108 more, mostly 31 to 50 pixels.
- Hard: 31,958 faces, all of Medium plus 18,639 more, mostly 11 to 30 pixels.
- In no level: 7,750 faces, none taller than 10 pixels; the 585 invalid ones are all here too.
Split directly with three lines, "taller than 50, 31 to 50, 11 to 30 pixels," the levels disagree with the official lists on only 84, 236 and 810 faces (this note's count). In (b) above, the gap caused by scale (0.2 against 0.99 at 10,000 proposals) is larger than those caused by occlusion and pose, so three levels split by detection rate come out almost the same as levels split by face height. The paper's conclusion also says the faces in the Easy subset are typically over 50 pixels tall.
So keep two things in mind when reading a Hard score. First, the three levels are nested, and the Hard score includes all the Easy and Medium faces. Second, faces of 10 pixels or less are in no level; finding them earns nothing, and missing them costs nothing.
How the Score Is Computed
The scoring rule follows PASCAL VOC. If the IoU (intersection area divided by union area) between a detection box and a labeled box is above 0.5, the face counts as found.
Work it through on a 20×20 face. With a detection box of the same size shifted 5 pixels to the right, the intersection is 15×20 = 300 and the union 400 + 400 − 300 = 500, for an IoU of 0.6, so it's found. Shifted 7 pixels, the intersection is 260 and the union 540, for an IoU of 0.48; the face counts as missed, and that box also counts as a false positive. For a 20-pixel face, 7 pixels of offset is enough to be out.
Sort all detections by score from high to low and count down the list. At each one, compute precision (how many of the detections so far are real faces) and recall (how many of all the faces have been found), and plot them as a PR curve. AP is the area under this curve.
The official evaluation code (evaluation.m) adds a few details on top of these rules.
- Scores are normalized first. The scores of all predictions over the whole validation set are stretched linearly to between 0 and 1 using the overall minimum and maximum, and 1,000 thresholds are then taken to draw the PR curve.
- Each prediction looks only at the face it has the highest IoU with. Above 0.5, if that face isn't on this level's list, the prediction is marked ignored, counting as neither right nor wrong; if it is on the list and hasn't been found yet, it counts as found; hitting a face that has already been found counts as a false positive.
- Only this level's faces count in the denominator. Recall is "faces in this level that were found" divided by "the number of faces in this level."

evaluation.m.Walk the four faces in this figure through once. Suppose the detector hands in five boxes, by score from high to low: 0.95 on the 80-pixel face, 0.9 on the 40-pixel face, 0.8 on the 8-pixel face, 0.7 on a patch of background and 0.6 on the 20-pixel face.
Easy counts only the 80-pixel face. The first box finds it, with precision 1 and recall 1. The boxes at 0.9, 0.8 and 0.6 all hit faces Easy doesn't count, and are all ignored; the background box at 0.7 is a false positive, but recall has already reached 1. AP is 1.0.
Hard counts the three faces of 20, 40 and 80 pixels.
| Score | Hit | Precision | Recall |
|---|---|---|---|
| 0.95 | 80 px | 1/1 | 1/3 |
| 0.9 | 40 px | 2/2 | 2/3 |
| 0.8 | 8 px | ignored | ignored |
| 0.7 | background | 2/3 | 2/3 |
| 0.6 | 20 px | 3/4 | 3/3 |
To compute AP, first take the running maximum of precision from right to left, then sum it weighted by each increase in recall. Precision is 1 while recall goes from 0 to 2/3 and 0.75 from 2/3 to 1, so AP is .
With the same detections, Easy gets full marks and Hard loses 0.083, because the background box scored higher than the 20-pixel face. Neither level cares about the 8-pixel face.
The example also shows that if the detector never outputs a box for the 20-pixel face, Hard's recall stops at 2/3 and AP can't go above 0.67. Where the Hard curve ends in recall sets the ceiling on AP.
The Authors' Baseline: A Cascade Split by Scale
Since small faces are the hardest, the authors' baseline starts from scale, giving each network responsibility for just one range of sizes.

Stage one: four proposal networks. The four networks handle faces of 10–30, 30–120, 120–240 and 240–480 pixels, each range further divided into three scale subclasses. Network 2, for example, handles 30–120 pixels, with subclasses 30–50, 50–80 and 80–120. The networks are fully convolutional, with no fully connected layers, so they can take a whole image and output a response map, where each position says whether a face in that size range is there.
Each network is trained on patches the size of its range's upper bound, network 1 on 30×30 and network 2 on 120×120. Positives place the face at the center of the patch; negatives are cut at random from training images and must have an IoU below 0.5 with every positive. Each sample's label has 4 numbers, 1 for whether it's a face and 3 for which scale subclass it belongs to, each output as a probability through a sigmoid, with cross-entropy as the loss:
is the -th patch, is one of its labels, and is the probability the network outputs for that label. A face 25 pixels tall given to network 1 is labeled "face, subclass 3 (20–30)"; a patch of background is labeled "not a face," with all three scale subclasses set to −1, and these three outputs pass back no gradient. Background has no scale to speak of; the network only needs to learn to say it isn't a face.
The first five convolution layers are initialized from Clarifai, a network pretrained on ImageNet (network 4, which handles the largest faces, reuses it from the second layer on), and the remaining layers from a Gaussian with mean 0 and standard deviation 0.01. After training, hard negative mining is done on the training set, and the network is fine-tuned further on the background it got wrong.
Stage two: four detection networks. Each detection network has the same structure and input size as its proposal network, is fine-tuned from it, and trains only on the proposals that proposal network produces. Each proposal is assigned to the labeled box whose center is closest, and an IoU above 0.5 makes it a positive. The network does two things at once, classifying whether it's a face and regressing the box to predict the position of the assigned labeled box (with a Euclidean loss); if the proposal is a false positive, its regression target is set to . When positives make up less than a tenth, some are cut at random around labeled boxes to fill in.
To see whether "splitting by scale" helps in itself, the authors also built a Two-stage CNN as a control. Its first stage has only one face-classification network and handles different sizes with an image pyramid; its second stage is the same as the multi-scale cascade's.
Discussion
Old Detectors in the New Exam
The authors picked one representative from each of four kinds of methods and used Scenario-Ext, that is, tested the original models directly without retraining on WIDER FACE.
- VJ: the Viola–Jones cascade implemented in OpenCV.
- ACF: aggregate channel features plus boosted trees, reimplemented by the authors from open-source code.
- DPM: the deformable part model, in the 2014 version by Mathias et al.
- Faceness: the authors' own method from ICCV 2015, which first uses a CNN to find parts such as hair, eyes and nose and then assembles them into faces.
The size and vertical placement of the boxes each detector outputs don't necessarily match WIDER FACE's labeling conventions. Following Mathias et al., the authors applied a linear transformation to each method's boxes to align them with WIDER FACE's.

The left column, from top to bottom, is Easy, Medium and Hard.
| Method | Easy | Medium | Hard |
|---|---|---|---|
| Faceness | 0.704 | 0.573 | 0.273 |
| DPM | 0.690 | 0.448 | 0.201 |
| ACF | 0.642 | 0.526 | 0.252 |
| VJ | 0.412 | 0.333 | 0.137 |
Compiled from the legends of Figure 6 (a.1)–(a.3) of the paper, test set.
On Easy, most methods are above 0.6 and none above 0.75; on Medium, every method drops a notch; on Hard, all are below 0.3. In the Hard plot, the four curves end around a recall of 0.2 to 0.3, so even the best found only about thirty percent of the faces.
The right column divides unoccluded faces into three scales by height. On large faces DPM reaches 0.887 and Faceness 0.825, so the old detectors aren't actually bad there; on small faces of 10 to 50 pixels, even the best, Faceness, gets only 0.120, and VJ 0.040. Half of WIDER FACE's faces are this size.
The occlusion and pose comparisons use only faces of 30 pixels and up. Under partial occlusion the best is Faceness at 0.265, dropping to 0.144 under heavy occlusion; for atypical pose the best is Faceness again, at 0.183. Faceness and DPM are both part-based methods and do a bit better than ACF and VJ under occlusion; when part of a face is covered, the remaining parts can still carry the decision.
Training on WIDER FACE
Did the old detectors do badly because the methods weren't good enough, or because the training data was wrong? The authors retrained ACF and Faceness on WIDER FACE's training set (Scenario-Int), using only faces of 30 pixels and up.
| Method | Easy | Medium | Hard |
|---|---|---|---|
| ACF | 0.639 | 0.521 | 0.253 |
| ACF-WIDER | 0.695 | 0.588 | 0.290 |
| Faceness | 0.704 | 0.573 | 0.273 |
| Faceness-WIDER | 0.713 | 0.604 | 0.315 |
Compiled from the legends of Figure 7 (a)–(c) of the paper, test set.
After retraining, all six cells improve. ACF gains about 5 percentage points on average, and Faceness gains 4.2 on Hard. The same holds on FDDB, where ACF's recall goes from 0.8607 to 0.8748 and Faceness's from 0.9098 to 0.9178; the authors point out specifically that with fewer than 300 false positives, the retrained Faceness is clearly better than the original.
Broken down further by event category (counting only faces of 30 pixels and up), 56 of the 60 categories improve. Each category's results correlate strongly with the event difficulty ranked earlier by EdgeBox; Festival, ranked as a hard event, stays under 0.46 even for the best result.
Retraining used only faces of 30 pixels and up, and Hard went from 0.273 to 0.315, a limited gain. How to learn small faces is what the multi-scale cascade in the next section takes on.
Does Splitting by Scale Help?

Easy is at the top left, Medium at the top right and Hard at the bottom.
On Easy, the multi-scale cascade's 0.711 is about the same as the retrained Faceness (0.713), while the Two-stage CNN gets only 0.657. On Medium, the multi-scale cascade leads with 0.636. The gap is largest on Hard, where the multi-scale cascade gets 0.400, the retrained Faceness 0.315 and the Two-stage CNN 0.304.
The cleanest comparison is with the Two-stage CNN. The two share the same second stage and differ only in whether the first stage uses four networks split by scale or one network with an image pyramid. That one switch adds nearly 10 percentage points on Hard. The authors' reading is that a single network has a hard time handling the huge differences in appearance that scale causes.
In the Hard plot, the blue line ends at a recall of about 0.43 and the other three around 0.35. By the calculation earlier, that recall is AP's ceiling; a large part of the multi-scale cascade's extra score comes from the extra slice of faces it finds between recalls of 0.35 and 0.43.
This baseline also leaves some things unexplained. The paper reports no running speed, and the largest of the four networks takes a 480×480 input; nor are there any ablations, so you can't tell how much the split into four ranges, with three subclasses each, contributes.
The Official Tool, the Python Port and the Promised Server
WIDER FACE's official evaluation code is written in MATLAB; a new version came out on March 31, 2017, which also fixed a rounding problem in the labeled box coordinates. The common Python port is WiderFace-Evaluation, written by wondervictor in 2018, and biubug6's PyTorch implementation of RetinaFace (Pytorch_Retinaface) ships a copy of it as well.
There are two things to watch for between the Python version and the official one. The official version sorts predictions by score when it reads them in; the Python version doesn't, yet its PR computation assumes the predictions are already sorted, which someone pointed out in issue #10 in November 2020. If you write your own output files, sort them first. Also, issue #2 in March 2019 reported that the same results came out at 51.9 on Hard with the Python version and 51.2 with the official MATLAB one. The maintainer replied the same day, "I'll check it now." By the end of 2024 the thread had heard nothing more (five years and still checking).
The test set can only be mailed to the authors for scoring. The official site's news item of November 19, 2015 says "An evaluation server will be available soon." In the web archive's snapshot from December 2024, the submission instructions still ask everyone to contact the authors directly for evaluation, followed by the same sentence (this "soon" has lasted nine years). As a result, later papers mostly run their ablations on the validation set, and test-set numbers usually appear only in the final summary table.
The labels aren't perfect either. The appendix of Finding Tiny Faces examined its own 20 highest-scoring false positives on the validation set, and 15 of them were actually faces that hadn't been labeled. When the gaps at the top of the leaderboard are down to a few tenths of a point, missing labels like these can't be ignored.
Hard scores also depend heavily on test resolution. The SCRFD authors retested TinaFace, which scored 93.0 on the Hard validation set with a long side of 1,650 pixels and only 81.4 when shrunk to 640 pixels. For an image 1,024 pixels wide, shrinking the long side to 640 is a factor of 0.625; Hard in the validation set has 7,301 faces of 11 to 15 pixels, and after such a shrink every one of them is under 10 pixels. Before comparing the Hard scores of two papers, check their test scales.
Going by the web archive's records, the test-set leaderboard chart on the official site was swapped in by November 2021 at the latest, and the archives through the end of 2024 still show the same chart. At the top of Hard is MogFace at 0.926, followed by TinaFace at 0.924 and ASFD at 0.921, with 2019's RetinaFace at 0.914; the top Easy score is 0.970. The paper's 0.400 from back then props up the bottom few places of this chart.
Finally, the license. WIDER FACE is released under CC BY-NC-ND; before putting a model trained on it to commercial use, check the license terms first.
Conclusion
Of the validation set's 39,708 faces, 7,750 belong to no level, all of them no taller than 10 pixels, and finding them or not makes no difference to the score. The rest are nominally graded by EdgeBox detection rate, but checked against the official lists they're split almost exactly by three face-height lines. Easy is mostly faces taller than 50 pixels, Medium adds 31 to 50 pixels, and Hard adds 11 to 30 pixels; the three levels are nested, and the Hard score includes all the Easy and Medium faces too. The paper's own multi-scale cascade scored 0.400 on the Hard test set, the four old detectors were all under 0.3 at the time, and six years later the top of the leaderboard was 0.926.
A single Hard score comes tied to several conditions: validation or test set, how large images are scaled at test time, whether multi-scale testing and flipping are used, and whether evaluation used the original MATLAB code or the Python port. Write these under your own results table, and others can compare against it; if you evaluate with the Python version, sort the output files by score first.