Face Recognition: Too Bias, or Not Too Bias?

June 9, 2026 ยท View on GitHub

Robinson, Joseph P., Gennady Livitz, Yann Henon, Can Qin, Yun Fu, and Samson Timoner. "Face recognition: Too Bias, or Bot Too Bias? " In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 0-1. 2020.
Download Data on Dropbox. Raw facial crops are also on IEEEDataPort.

Robinson, Joseph P., Can Qin, Yann Henon, Samson Timoner, and Yun Fu. "Balancing Biases and Preserving Privacy on Balanced Faces in the Wild." In CoRR arXiv:2103.09118, (2021).

Teaser

Balanced Faces in the Wild (BFW): Data, Code, Evaluations

version: 0.4.5 (following Semantic Versioning Scheme-- learn more here, https://semver.org)

Intended to address bias in facial recognition, we built BFW as a labeled data resource for evaluating recognition systems on a corpus of facial imagery with an equal number of faces for all subjects: EQUAL across demographics. Thus, face data is balanced across faces per subject, individuals per ethnicity, and ethnicities per gender.

Download data via individual file https://www.dropbox.com/scl/fo/i2gj82qewyikts2d55xo5/AK5cY0nmJ7Of-iHmD6eF9E4?rlkey=ebj8bbq0giwk30v75r51vsw75&st=slcmpmbn&dl=0, or the entire set using the link above. Please don't hesitate to report an issue or ask any questions.

Also, the same data has been added to IEEEDataPort, which can be accessed at https://ieee-dataport.org/documents/balanced-faces-wild.

Project Overview

This project investigates bias in automatic facial recognition (FR). Specifically, subjects are grouped into predefined subgroups based on gender, ethnicity, and age. For this, we propose a novel image collection called Balanced Faces in the Wild (BFW), which is balanced across eight subgroups (i.e., 800 face images of 100 subjects, each with 25 face samples). Thus, along with the name (i.e., identification) labels and task protocols (e.g., list of pairs for face verification, pre-packaged data table with additional metadata and labels, etc.), BFW groups into ethnicities (i.e., Asian (A), Black (B), Indian (I), and White (W)) and genders (i.e., Females (F) and Males (M)). BFW will provide a proxy to characterize FR systems, now with demographic-specific analysis. For instance, various confusion metrics, along with predefined criteria (e.g., a score threshold), are fundamental to characterizing the performance ratings of FR systems. The following visualization summarizes the confusion metrics in a way that relates to the different measurements.

metrics

As we discussed, we designed, built, and released BFW for research purposes. We expect the data to continue to evolve. Nonetheless, as it is, there are vast opportunities for advancing technology and our understanding of it. Let us now focus on the contents of the repo (i.e., codebase) that was created to support the BFW data (i.e., data proxy), making all experiments in the paper easily reproducible and, thus, the work more beginner-friendly.

Experimental-based contributions and findings

Several observations widened our understanding of bias in FR. Views were demonstrated experimentally, and all code used in the experiments is included in this repo.

Score sensitivity

For instance, it is shown that the scoring sensitivity within different subgroups is verified. That is, faces of the same identity tend to shift in expected values (e.g., given a correct pair, Black faces, on average, have similarity scores smaller than those for a proper pair of White faces, and the middle range of scores for Males compared to Females). This is demonstrated using fundamental signal detection models (SDM) and detection error trade-off (DET) curves.

Global threshold

Once an FR system is deployed, a criterion (i.e., threshold) is set (or tunable) such that similarity scores below it are assumed to be false matches and are filtered out of the candidate pool for potential true pairs. In other words, thresholds act as decision boundaries that map scores (or distances) to nominal values such as genuine or imposter. Given the previously observed variable sensitivity, intuition suggests that a variable threshold is optimal. Thus, returning to the fundamental concepts of signal detection theory, we show that using a single, global threshold yields skewed performance ratings across different subgroups. To this end, we demonstrate that subgroup-specific thresholds are optimal for overall performance and for balancing across subgroups.

All-in-all

All this and more (i.e., evaluation and analysis of FR systems on BFW data, data structures, and implementation schemes optimized for the problems at hand) are included in the modules that make up the project and demonstrated in notebook tutorials. We will continue to add tools for a fair analysis of FR systems. Thus, we expect the experiments and the data to grow. I want you to know that all contributions are welcome and entirely encouraged.

Here are quick links to key aspects of this resource.

Final note. The repo is a work-in-progress. Indeed, it is ready to be cloned and used; however, expect regular improvements to both the implementation and documentation (e.g., getting started instructions will be enhanced). It is recommended to begin with the README files listed just above, along with the tutorial notebooks found in code-> notebooks, with brief descriptions in the README and more detail inline in each notebook. Again, PRs are more than welcome :)

Paper abstract

We reveal critical insights into bias problems in state-of-the-art facial recognition (FR) systems using a novel Balanced Faces In the Wild (BFW) dataset, which is balanced for gender and ethnic groups. We show variations in the optimal scoring threshold for face pairs across different subgroups. Thus, the conventional approach of learning a global threshold for all pairs results in performance gaps between subgroups. By setting subgroup-specific thresholds, we reduce performance gaps and improve overall performance. Furthermore, we do a human evaluation to measure human bias, which supports the hypothesis that an analogous bias exists in human perception. For the BFW database, source code, and more, visit https://github.com/visionjo/facerec-bias-bfw.

To Do

  • Begin Template
  • Create demo notebooks
  • Add manuscript
  • Documentation (sphinx)
  • Update README (this)
  • Pre-commit, formatter (Black), and .gitignore
  • Complete test harness
  • Modulate (refactor) code
  • Complete datatable (i.e., extend pandas.DataFrame)
  • Add scripts and CLI

License

All source code is made available under a BSD 3-clause license. You can freely use and modify the code without warranty, so long as you provide attribution to the authors. See LICENSE.md (LICENSE) for the full license text.

The manuscript text is not open source. The authors reserve the right to the article content, which is currently submitted for publication in the 2020 IEEE Conference on AMFG.

Acknowledgement

We want to thank the PINGA organization on GitHub for the project template used to structure this project.