Can I Trust My Fairness Metric? Assessing Fairness with Unlabeled Data and Bayesian Inference

Disi Ji, Padhraic Smyth, Mark Steyvers

Introduction

Machine learning models are increasingly deployed in high-stakes domains such as criminal justice, healthcare, and finance. In these contexts, auditing models for demographic bias—ensuring they do not unfairly disadvantage groups based on race, gender, or age—is a critical requirement. Standard fairness metrics, such as the difference in True Positive Rates (TPR) or accuracy between groups, typically require ground-truth labels for calculation.

However, obtaining labeled data is often expensive, time-consuming, or ethically complex. While unlabeled data is frequently abundant, relying on small labeled "test sets" leads to high-variance fairness estimates. As shown in Figure 1, with only 50 labeled examples, a fairness estimate can be wildly inaccurate, sometimes even suggesting bias in the opposite direction of reality. This paper addresses the fundamental question: How can we use plentiful unlabeled data to make our fairness assessments more trustworthy?

Estimation error in True Positive Rate (TPR) difference across datasets as a function of labeled sample size $n_L$.

The Bayesian Calibration Framework

To address this challenge, the authors introduce a Bayesian Calibration (BC) framework. The central insight is that if a model's scores are well-calibrated—meaning a predicted probability of 0.9 corresponds to a 90% actual positive rate—these scores can serve as reliable proxies for missing labels.

Since most models are not perfectly calibrated out of the box, the BC framework uses limited labeled data to learn a group-specific calibration function. The method employs Hierarchical Beta Calibration, which allows the model to "borrow strength" across groups. For instance, data from a larger demographic group can help inform the calibration parameters for a smaller, underrepresented group. Figure 5 illustrates these calibration curves across various datasets and sensitive attributes.

Calibration curves for different datasets and sensitive attributes, showing how model scores map to calibrated probabilities for different groups.

By treating the true labels of unlabeled examples as latent variables, the framework generates a posterior distribution for the desired fairness metric. This provides practitioners with a principled way to quantify uncertainty, offering credible intervals rather than just misleading point estimates. Despite using Markov Chain Monte Carlo (MCMC) for inference, the method remains computationally efficient, processing 10,000 unlabeled points in approximately 30 seconds.

Key Results and Insights

The authors evaluated the BC method across several benchmarks, including the Adult income dataset, Bank telemarketing, and Compas recidivism risk. The results demonstrate that unlabeled data is a powerful, untapped resource for fairness auditing:

  • Significant Error Reduction: In scenarios with very few labels ($n_L = 10$), the BC method reduced the Mean Absolute Error (MAE) by a factor of 3 to 5 compared to standard frequentist approaches. For example, in the German Credit dataset, the MAE for accuracy difference dropped from ~30% to ~8%.
  • Stability and Robustness: The estimates remained stable and close to the ground truth across various classification models (MLP, Logistic Regression, Random Forests, and Naive Bayes) and dataset-group pairs.
  • Uncertainty Quantification: By providing a range of values, the Bayesian approach prevents overconfidence in fairness assessments when data is sparse, acting as a "safety buffer" for auditors.

Conclusion

The Bayesian Calibration framework offers a practical and theoretically sound solution for auditing algorithmic fairness when labels are scarce. By leveraging abundant unlabeled data through hierarchical calibration, it transforms fairness assessment from a high-variance guessing game into a reliable diagnostic tool. While the method currently relies on parametric assumptions of the Beta calibration model, future work may explore more flexible non-parametric approaches, such as Gaussian Processes, to further improve robustness and handle intersectional fairness challenges.

Summary updated

BibTeX
@inproceedings{ji2020can,
  author = {Disi Ji and Padhraic Smyth and Mark Steyvers},
  title = {{Can I Trust My Fairness Metric? Assessing Fairness with Unlabeled Data and Bayesian Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure