Back to paper library
Paper notesarXiv 2021CVPR 2021

WebFace260M

Face Wash

Original paper

WebFace260M: A Benchmark Unveiling the Power of Million-Scale Deep Face Recognition

Paper authors

Zheng Zhu · Guan Huang · Jiankang Deng …

Show all 11 authors

Zheng Zhu · Guan Huang · Jiankang Deng · Yun Ye · Junjie Huang · Xinze Chen · Jiagang Zhu · Tian Yang · Jiwen Lu · Dalong Du · Jie Zhou

Publication
CVPR 2021Conference
First submitted to arXiv
arXiv:2103.04098
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{facerecognitionwebface260m2021,
  title = {{WebFace260M: A Benchmark Unveiling the Power of Million-Scale Deep Face Recognition}},
  author = {Zheng Zhu and Guan Huang and Jiankang Deng and Yun Ye and Junjie Huang and Xinze Chen and Jiagang Zhu and Tian Yang and Jiwen Lu and Dalong Du and Jie Zhou},
  year = {2021},
  eprint = {2103.04098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.04098}
}
On this page

The biggest gap between academia and industry in face recognition is data. FaceNet used Google's internal photos, 200 million images of 8 million people, and Facebook's model was fed 500 million images of 10 million people. The largest training set academics could download, MS1M (full name MS-Celeb-1M), has 10 million images of 100K celebrities, about half of them mislabeled; MegaFace2, the one with the most identities, has 670K people but only 7 images per person on average.

MS1M later ran into trouble as well. In June 2019, the Financial Times reported that Microsoft had quietly taken down MS-Celeb-1M; the people in it had never been asked for consent, and the photos had been crawled from search engines (syndicated report). Microsoft's statement read, "The site was intended for academic purposes. It was run by an employee that is no longer with Microsoft and has since been removed." Taken down or not, the cleaned derivatives MS1MV2 and MS1MV3 are still listed in InsightFace's dataset list and remain the standard training sets of many papers.

This paper comes from Tsinghua University and XForwardAI (an AI company in Beijing), plus Jiankang Deng of Imperial College. The authors used 4 million names to pull 260 million faces from a search engine, which they call WebFace260M; then, with a fully automatic process that washes the data cleaner on its own each round, they cleaned out WebFace42M, with 2 million people and 42 million images, the largest public face training set of its time. They also add an evaluation protocol, FRUITS, that counts inference time.

Defining the Problem

Public data was neither big enough nor clean enough

The authors put the training sets of the time into a table; here are a few of its rows:

DatasetIDsImagesPer IDPublic
CASIA-WebFace10K500K47Yes
VGGFace29K3.3M363Yes
MS1M100K10M100Yes
MegaFace2670K4.7M7Yes
Google8M200M25No
Facebook10M500M50No

Compiled from Table 1 of the paper.

To bring public data up to industrial scale, the authors list three obstacles: collecting enough identities, cleaning that scales automatically, and training that can actually finish.

Cleaning is the hardest of the three. The original MS1M wasn't cleaned at all, with about 50% noise. VGGFace and IMDB-Face were cleaned manually or semi-automatically; IMDB-Face took 50 annotators working for a month straight to get 59K people and 1.7 million images. MegaFace2 was cleaned automatically, but its noise is still above 30%. There are plenty of methods that use clustering to split a large batch of faces into identities, but they all assume the batch is roughly clean, and that assumption breaks on web data where half of a name's folder isn't that person.

Evaluation looked only at accuracy

On verification sets like LFW, CFP-FP and AgeDB, good models all sit around 99%, with the differences down to the decimals. IJB-C and MegaFace still have room, but they also compare only accuracy.

Face verification is 1:1 matching, where you're given two faces and decide whether they're the same person. In practice it always has a time limit; unlocking a phone can't wait a whole second. The Lightweight Face Recognition challenge (LFR) that InsightFace ran limited model FLOPs and size, but the same FLOPs take very different amounts of time on different architectures, and face detection and alignment aren't counted. According to the authors, the only evaluation with a real time limit is NIST's Face Recognition Vendor Test (FRVT) in the US, which only accepts a submission once every four months.

The authors want to do two things. One is to give academia a clean, public training set at the ten-million scale; the other is an evaluation that academia can run any time and that counts time.

Solving the Problem

Four million names

The name list has two parts. One million names are borrowed straight from MS1M, whose list came from the knowledge-graph site Freebase; the other 3 million are picked from IMDB's nearly 4 million names, keeping those whose public photos turn up in searches.

Each name goes into Google Image Search, and how many images to fetch is tiered by fame. The top 10% of people get 200 each, the next 20% get 100 each, the next 30% get 50, and the last 40% get 25. The average works out to

0.1×200+0.2×100+0.3×50+0.4×25=65\begin{aligned} &0.1\times200+0.2\times100\\ &\quad+0.3\times50+0.4\times25=65 \end{aligned}

4 million people times 65 images is about 260 million images, matching the 65 images per person that the paper's table gives for WebFace260M.

The downloaded images first go through RetinaFace to detect faces and five landmarks, then are aligned and cropped to a standard size; when an image has several faces, only the largest one whose score passes the threshold is kept, which filters out most passersby in the background and images that failed to decode. What remains, 4,008,130 people and 260,890,076 images, is WebFace260M. These people come from more than 200 countries or regions and more than 500 occupations, and the earliest birth year is 1846.

Wash the data with a model, then train a model on the washed data

The 260 million images contain a lot of noise. One folder might hold the person, someone else from a group photo, or another person with the same name, and different folders might be the same person. The authors' cleaning process is called CAST (Cleaning Automatically by Self-Training), borrowing self-training from semi-supervised learning.

CAST flowchart. At far left are the messy faces of WebFace260M, which pass through Intra&Inter Clean (intra-class and inter-class cleaning) and a neural network labeled "1st Teacher by MS1M" to give the first cleaning result; this data trains the 1st Student, which then switches roles to become the 2nd Teacher. The dashed box holds the repeated loop: the Teacher cleans, the i-th Student is trained, and it switches to become the (i+1)-th Teacher. At far right is WebFace42M.
Original Fig. 4, Zhu et al., TPAMI version, from PDF page 6 of that version, CC BY 4.0.

The loop runs like this:

  1. First, train an ArcFace (ResNet-100) on the public MS1MV2 to serve as the teacher.
  2. The teacher extracts features for the 260 million faces and does intra-class and inter-class cleaning.
  3. On the cleaned data, train a student with the same architecture from scratch. The student sees far more data than the teacher, and its features are better too.
  4. The student becomes the next round's teacher and goes back to clean the original 260 million images all over again.

Step 4 makes every round rewash from the rawest data, so faces wrongly thrown out in an earlier round get a chance to be picked back up once a better teacher is in place. The paper runs three rounds.

Intra-class cleaning deals with one folder. Google's search results are sorted by relevance, and each search usually has one main person, so each folder only needs its largest group of people found. The authors use the teacher to extract 512-dimensional features and run DBSCAN in each folder.

DBSCAN is a density-based clustering algorithm. Two faces whose cosine similarity is above a threshold count as neighbors; faces with enough neighbors are core points; core points that can reach each other, together with their neighbors, form a cluster; and isolated faces are thrown away as noise. The TPAMI version gives the parameters: the similarity threshold is 0.5, 0.55 and 0.6 over the three rounds, which converts to angles of 60°, 56.6° and 53.1°, and a neighborhood needs at least 3 points to count as a core point. The better the teacher, the tighter the threshold.

Say an actor's folder has 65 images, 40 of the actor, 15 of other actors they've worked with, and 10 blurry profiles or things that aren't faces at all. The actor's 40 images all have small angles between them and link up into the largest cluster; the other actors each have only a few scattered images and can't form a big cluster; the blurry ones find no neighbors. In the end only the largest cluster is kept, and it has to have more than 2 images.

Inter-class cleaning deals with the relations between folders. Each identity's features are averaged into a center, and the centers are compared pairwise. Above a cosine of 0.7 (an angle of about 46°), two folders are taken as the same person and merged; between 0.5 and 0.7, the folder with fewer photos is deleted.

How clean the wash came out shows in the distributions of intra-class and inter-class similarity.

Four distribution plots with cosine similarity on the horizontal axis, from −0.37 to 1, with 0.32 marked in the middle, and counts (times 10 to the 4th power) on the vertical axis. Red is the similarity between different identities (Inter), blue the similarity within one identity (Intra). (a) Initial: red and blue almost completely overlap, both peaking near 0, with a small extra blue peak around 0.7. (b) Round 1: the red peak is still near 0, while blue has moved into one large peak near 0.7, and the two overlap only a little near 0.32, with a magnifying circle marking the overlap. (c) Round 2 and (d) Round 3: the overlap keeps shrinking, and in round 3's magnifying circle there's almost no overlap at all.
Original Fig. 5, Zhu et al., TPAMI version, from PDF page 6 of that version, CC BY 4.0.

These are statistics over 100K randomly sampled folders. Red is the similarity between different people and should sit near 0; blue is the similarity within one folder and should be as high as possible. In the raw data at far left, blue and red pile into the same peak, meaning the faces in one folder are about as unlike each other as any two strangers. After the first round, the blue moves as a whole to around 0.7, and over the next two rounds the overlap keeps shrinking, as the magnifying circles show.

How many people and images remain at each stage:

StageIDsImages
After preprocessing4,008,130261M
Round 1 intra3,341,76161.79M
Round 1 inter2,437,14050.67M
Round 2 intra3,027,81460.27M
Round 2 inter2,176,42747.35M
Round 3 intra2,878,88658.16M
Round 3 inter2,070,87046.22M
Deduplicated2,070,87043.98M
Test overlap removed2,059,90642.47M

Compiled from Table 2 of the paper.

Round 1's intra-class cleaning alone cuts 260 million images down to 61.79 million, so more than three quarters of the faces never made it into the largest cluster of their folder. Every round's intra-class cleaning is redone from the raw data, so after rounds 2 and 3 the count climbs back to around 60 million before inter-class cleaning pushes it down; the counts at the end of the three rounds are 50.67 million, 47.35 million and 46.22 million, each round stricter than the last.

80 face thumbnails in 8 rows of 10, each framed in green or red. The green-framed faces are mostly one Asian man, shown frontally, in profile, with eyes closed and laughing; the red frames hold men of other ethnicities, women, a person in a headscarf, faces too blurry to make out, and profiles turned so far that only half the face is left. The last row is all red.
Original Fig. 6, Zhu et al., TPAMI version, from PDF page 7 of that version, CC BY 4.0.

Green frames are the faces CAST kept, red frames the ones it rejected. Of the 80, about a fifth were kept; the rejected ones include obviously different people, blurry faces, and profiles turned so far that only half a face is left. The kept faces vary quite a bit in expression and angle, so intra-class cleaning didn't just pick frontal faces.

After CAST come two more steps. Near-duplicate photos within one person, with a cosine above 0.95, are deleted; each identity's center is also compared against the LFW family, FaceScrub, IJB-C and the authors' own test set, and any identity above 0.7 is removed entirely, so that test questions don't leak into the training set.

The end result is WebFace42M: 2,059,906 people and 42,474,558 images, from 3 to more than 300 per person, 21 on average. The authors estimate by sampling that the noise is below 10%, comparable to CASIA-WebFace, but the paper doesn't say how many were sampled or how they were judged. Random 10% and 30% subsets are also taken out as WebFace4M and WebFace12M, to study the effect of data scale.

FRUITS: counting the time

FRUITS (Face Recognition Under Inference Time conStraint) requires the whole system to finish matching a pair of images within a time limit, where the time covers detection, alignment, feature extraction and matching, measured on a single core of an Intel Xeon E5-2630 v4 (2.2 GHz), following NIST's practice. The limits come in three tiers:

  • FRUITS-100: 100 ms, for phones.
  • FRUITS-500: 500 ms, for on-premises surveillance systems.
  • FRUITS-1000: 1,000 ms, for the cloud; the paper says it follows NIST-FRVT.

The test set was built anew by the authors. Old test sets like LFW are saturated and also contain mislabels; the authors recruited annotators from different ethnic groups, each picking only celebrities they knew well, because recognizing strangers, especially strangers who look alike, is easy to get wrong even for the researchers themselves. The result is 2,225 people and 38,578 images, labeled with age, ethnicity, gender, and whether the setting is controlled or wild.

The metrics follow NIST's FMR and FNMR. For a given threshold, FMR (false match rate) is the fraction of different-person pairs whose score exceeds the threshold and that get wrongly judged as the same person; FNMR (false non-match rate) is the fraction of same-person pairs below the threshold, which get rejected. The FAR common in face recognition papers is FMR, and TAR is 1−FNMR1-\text{FNMR}.

The All group pairs up all 38,578 images, (385782)=744,111,753\binom{38578}{2}=744{,}111{,}753 pairs in total, of which 427,759 are same-person pairs and 744 million are different-person pairs. FNMR@FMR=10−510^{-5} means first setting the threshold so that only about 7,400 of the 744 million stranger pairs get through, and then seeing what fraction of the 428K same-person pairs get blocked; lower is better.

Distributed training

Training ResNet-100 on 42 million images takes weeks on a single machine. The authors parallelize both the features and the class centers (the class centers are split across GPUs, i.e. model parallelism), and add FP16 mixed precision and large batches. On WebFace42M, a single machine with 8 GPUs processes 1,000 images per second and needs 233 hours; 32 machines with 256 GPUs process 25,300 images per second and need 9 hours, with IJB-C going from 97.71 to 97.70, almost unaffected.

The training setup is ResNet-100 with a batch of 64 per GPU and a learning rate of 0.05 on a single machine, scaled up linearly with the number of machines, decayed tenfold at epochs 8, 12 and 16, for 20 epochs in total, with horizontal flips as the only augmentation. CosFace, ArcFace and CurricularFace are reimplemented in one codebase so the comparison is fair.

Discussion

Data volume

Below are the scores on IJB-C and on the authors' test set for each training set, with ArcFace, ResNet-100 and no flip testing. The IJB-C column is TAR@FAR=10−410^{-4}, meaning the threshold is set so that only one in ten thousand stranger pairs is falsely accepted, and the fraction of same-person pairs that pass is reported, higher being better; the last column is the FNMR from the previous section, lower being better:

Training setImagesIJB-CFNMR
MS1M10M93.4519.47
MS1MV25.8M96.035.08
MS1M-Glint3.9M96.246.66
MegaFace24.7M89.3541.58
IMDB-Face1.7M93.3719.07
WebFace4M4.2M96.774.95
WebFace12M12.7M97.472.34
WebFace42M42M97.701.58

Compiled from Table 5 of the paper, ArcFace rows; FNMR is FNMR@FMR=10−510^{-5} (%) on All pairs of the authors' test set.

Scatter plot with the number of training images (0 to 50 million) on the horizontal axis and IJB-C on the vertical axis, with a break in the scale between 89 and 94. A red line connects the three points WebFace4M, WebFace12M and WebFace42M, rising all the way to about 97.7; the blue points are six public datasets, MS1M, MS1M-IBUG, MS1M-Glint, MS1MV2, IMDB-Face and MegaFace2, all below the red line, with MegaFace2 lowest.
Original Fig. 9, Zhu et al., TPAMI version, from PDF page 10 of that version, CC BY 4.0.

The red line is the three WebFace scales, the blue points are the public datasets, and every blue point falls below the red line. The abstract says the failure rate on IJB-C drops by 40% in relative terms. MS1MV2's error rate is 100−96.03=3.97100-96.03=3.97 and WebFace42M's is 2.30, 42% less.

There are three things to read from this table.

  1. Clean matters more than big. MS1M has 10 million images and gets only 93.45 on IJB-C; the cleaned MS1MV2, down to 5.8 million images, gets 96.03. WebFace4M, with just 4.2 million images, already beats every public dataset.
  2. Enough images per person matters too. MegaFace2 has 8 times as many identities as MS1MV2, but averages 7 images per person, and its score is the worst in the table.
  3. Adding more WebFace still helps, but less and less. From 4M to 12M, IJB-C gains 0.70; from 12M to 42M, another 0.23. On the authors' own test set the gaps are much larger, with FNMR falling from 4.95% for WebFace4M and 2.34% for 12M to 1.58% for 42M, two thirds fewer errors.

The big gaps in point 3 show up on the authors' own test set, which, like WebFace, consists of celebrity photos from the web, with the overlapping identities removed; on an external test set like IJB-C, the gaps are much smaller.

CosFace and CurricularFace lead to the same conclusion, at 97.68 and 97.76 respectively on WebFace42M. With the small model ResNet-14, the three scales score 93.13, 93.92 and 94.22, so more data helps small models too.

How many rounds of CAST are enough

DataIDsImagesIJB-C
WebFace CAST-12.4M46M97.28
WebFace CAST-22.1M43M97.51
WebFace CAST-32M42M97.70
WebFace CAST-42M42M97.66

Compiled from Table 7 of the paper.

One round of washing already gives 97.28, higher than MS1MV2; the third round reaches 97.70, and the fourth brings no further gain, so three rounds it is. The authors also ran CAST on the raw MS1M (with the initial teacher trained on IMDB-Face instead), and the third round gives 91K people and 4.9 million images with 96.55 on IJB-C, better than both MS1MV2 (5.8 million images, 96.03) and MS1M-Glint (96.24), which involved human cleaning, and with fewer images.

The clustering method for intra-class cleaning was swapped too. Again on MS1M, DBSCAN gives 96.55 on IJB-C, K-Means 96.03, and the two supervised graph-convolution clustering methods GCN-D and GCN-V give 96.48 and 96.42. The authors' explanation is that GCN-style methods aren't necessarily stable on extremely dirty folders.

The TPAMI version swaps the teacher again. A ResNet-200 teacher gives almost the same result (97.71) at several times the training cost; an initial teacher trained on Glint360K is also about the same (97.68), since only the first round uses it; a MobileFaceNet teacher washes data that gets only 95.82. The teacher has to be strong enough, and once it is, making it bigger doesn't help.

FRUITS baselines

All baseline models are trained on WebFace42M with ArcFace. Test images are first resized to 224×224224\times224 for detection and alignment, and this step alone takes 23 ms for RetinaFace with MobileNet-0.25 and 272 ms with ResNet-50, already more than half of the 500 ms budget.

LimitRecognition modelTimeFNMR
100MobileFaceNet + flip6521.04
100RegNet-800MF895.88
500SENet-503742.62
500ResNet-1004811.58
1000ResNet-100 + flip8261.42
1000ResNet-2008921.15

Compiled from Table 9 and the legend of Figure 8 of the paper. Limits and times are in milliseconds, with the time covering the whole system; FNMR is FNMR@FMR=10−510^{-5} (%) on All pairs. The 100 ms group uses RetinaFace with MobileNet-0.25, the rest use ResNet-50.

In the 100 ms group, with both models under 100 ms, RegNet-800MF's FNMR is only a little over a quarter of MobileFaceNet's, and the authors say lightweight models still have plenty of room to improve. Flip testing (extracting features from both the original image and its horizontal flip and combining them) shows its cost clearly too. ResNet-100 goes from 481 ms to 826 ms, with FNMR going from 1.58% to 1.42%; within the same time limit, switching to ResNet-200 with twice the compute gets to 1.15%. The five large models in the 1,000 ms group are packed between 1.15% and 1.69%, and the authors think further progress for large models will need new designs.

NIST-FRVT

Following the FRUITS-1000 setting, the authors assembled a system and submitted it to NIST-FRVT, using RetinaFace-ResNet-50 for detection and an ArcFace ResNet-200 trained on WebFace42M for features, plus OpenVINO acceleration and flip testing; NIST measured about 1,300 ms, within NIST's latest 1,500 ms limit. In the October 9, 2020 report, it ranked third overall out of 430 entries, behind DeepGlint (where Partial FC's first author worked at the time) in first and VisionLabs in second. Most entrants are companies, and on that basis the authors say WebFace42M took a big step toward narrowing the data gap between academia and industry.

The TPAMI extension

The April 2022 extended version dropped "Unveiling the Power of" from the title and added several pieces.

  • A bigger test set: 2,478 people and 60,926 images, 57,715 of them for standard recognition. With the test set changed, the numbers change too, with the best FRUITS-100 model, RegNet-800MF, going from 5.88% to 12.41% and ResNet-100 from 1.58% to 2.98%.
  • Real masks: 3,211 additional photos of 862 of the same celebrities wearing masks, paired as masked against unmasked photos. At FNMR@FMR=10−510^{-5}, ArcFace trained on MS1MV2 gets 71.81%, trained on WebFace42M 47.25%, and with synthetic masks added during training 33.87%.
  • Fairness: bias is measured as the ratio of the highest to the lowest group error rate (SER). WebFace4M-Balanced, drawn from WebFace with ethnicity and gender balanced, brings the ethnicity SER down from 1.45 to 1.28 and the gender SER from 1.92 to 1.61, but the bias is still there.
  • CAST details: the DBSCAN thresholds and teacher-swap experiments used above were both added in this version. It also removed MS1M's names from WebFace and cleaned again, getting 97.67 on IJB-C, almost the same as 97.70.

The authors also report that nearly 400 research groups applied for the data after the CVPR version came out. The ICCV 2021 Masked Face Recognition challenge (MFR) had a WebFace260M track, where more than 80 teams submitted over 1,000 solutions; the top three of InsightFace's unrestricted track also all trained on WebFace260M. buffalo_l, the default in InsightFace's Python package, uses a recognition model trained on WebFace600K, and Partial FC's first author explained in issue #1770 that this is WebFace12M, with its 600K people.

Can you get the data?

WebFace260M isn't a direct download. The old application page said the data could be used only for academic research, not commercially, and not redistributed; applicants had to sign an agreement, signed by a permanent member of staff at the institution (students not allowed) as the responsible party, attach proof in the form of a homepage, and send it to a designated email address. What you get for WebFace260M is only a list of URLs of the original images, because the originals come to about 50 TB; WebFace42M comes as JPGs, and the page also notes that the paper trained on PNGs, so accuracy may differ slightly. In January 2022, a user asked in issue #1770 where the pose, ethnicity, mask and other attribute annotations described in the paper were, and got a link to the download page; the asker replied that they had already downloaded the cleaned data and these annotations weren't in it, and nothing more came of it.

In March 2023, someone posted a cloud link to WebFace42M in InsightFace's issue #2259, and InsightFace maintainer nttstar replied "Don't do this," asking everyone to apply through face-benchmark.org.

In July 2025, issue #2781 reported that the application page wouldn't open. The twenty comments under it are nearly all "same issue," running into September 2026 without a single official reply; in issue #2896 (August 2026), someone said they had been approved long ago but lost the decompression password when moving house, the official site wouldn't load, and there was nobody to ask. By November 2026, the face-benchmark.org domain had changed hands, and the new site opens by declaring that it is not the WebFace260M project, has no connection to the authors, and doesn't take applications. InsightFace's own dataset documentation, up to its October 2026 version, still points to that download page. (The front door is shut, and the side door is off-limits.)

Another thing the paper doesn't mention is MS-Celeb-1M. WebFace260M's 1 million names are borrowed from MS1M, and CAST's first teacher is trained on MS1MV2; by the time the paper came out, Microsoft had taken MS-Celeb-1M down almost two years earlier. The TPAMI version's experiments at least show that with MS1M's names removed (the initial teacher still trained on MS1M), the cleaned data works just as well. What the paper says about privacy is that the images all come from public web sources and that downloading requires signing an agreement restricting use to academic purposes; whether the people in the photos consented, the paper doesn't say. One motivation of later research that synthesizes faces with diffusion models as training data is exactly the consent and privacy problem of crawled data.

Conclusion

WebFace260M collected 260 million faces from the web with 4 million names, then used CAST to let the model and the data improve in turns, with the teacher washing the data, the student training on the washed data, the student becoming the teacher, and every round rewashing from the raw data; three rounds give WebFace42M, with 2 million people and 42 million images. It takes ResNet-100 from 96.03 on IJB-C with MS1MV2 to 97.70, and the tenth-sized WebFace4M already beats every public dataset; FRUITS puts the whole system's single-core time side by side with its accuracy.

If you're cleaning data you crawled yourself, its two thresholds can be borrowed as they are. Run DBSCAN in each folder and keep only the largest cluster, with the similarity threshold starting at 0.5 and tightening as the teacher improves; merge identities whose centers are above 0.7. The teacher has to be strong enough; a ResNet-100-class model will do, and MobileFaceNet can't wash it clean. Before building a product on InsightFace's pretrained models, also find out which data they were trained on, since WebFace and Glint360K are both restricted to non-commercial research, and InsightFace's model zoo itself states it is for non-commercial research only.

The paper's vision was to narrow the data gap between academia and industry. Five years on, you can't even send in the application form.