Abstract
Presence of bias (in datasets or tasks) is inarguably one of the most critical challenges in machine learning applications that has alluded to pivotal debates in recent years. Such challenges range from spurious associations between variables in medical studies to the bias of race in gender or face recognition systems. Controlling for all types of biases in the dataset curation stage is cumbersome and sometimes impossible. The alternative is to use the available data and build models incorporating fair representation learning. In this paper, we propose such a model based on adversarial training with two competing objectives to learn features that have (1) maximum discriminative power with respect to the task and (2) minimal statistical mean dependence with the protected (bias) variable(s). Our approach does so by incorporating a new adversarial loss function that encourages a vanished correlation between the bias and the learned features. We apply our method to synthetic data, medical images (containing task bias), and a dataset for gender classification (containing dataset bias). Our results show that the learned features by our method not only result in superior prediction performance but also are unbiased.
Introduction
Machine learning models are notorious for "taking shortcuts" by picking up on spurious correlations in data. These biases generally fall into two categories: Dataset Bias and Task Bias. Dataset bias occurs when training data is skewed, such as a face recognition system trained primarily on light-skinned subjects, leading to poor performance on minority groups. Task bias is more insidious, occurring when there is an intrinsic link between the task and a protected variable. In medical imaging, for instance, a disease might naturally correlate with age; a model might "learn" to diagnose the disease simply by detecting patient age rather than identifying biological markers.
Existing fairness techniques often struggle with continuous variables or fail to handle task bias without sacrificing significant accuracy. The Bias-Resilient Neural Network (BR-Net) framework addresses these challenges by enforcing statistical independence between learned features and protected variables like age, race, or skin tone.
Methodology
The BR-Net architecture employs an adversarial framework consisting of three primary components:
- Feature Extractor (FE): Learns a latent representation (vector F) of the input image.
- Classifier (C): Predicts the actual label (e.g., gender or disease) based on those features.
- Bias Predictor (BP): An adversary that tries to guess the protected variable (e.g., age or skin shade) from the same features.
The core innovation is a novel adversarial loss function based on the squared Pearson correlation coefficient. The training process is a min-max game: the Feature Extractor tries to maximize classification accuracy while simultaneously "fooling" the Bias Predictor by making the features have zero correlation with the bias variable. The authors provide theoretical proof that achieving zero correlation in this setup enforces mean independence, a strong condition for fairness.
Experimental Evaluation
The researchers evaluated BR-Net across three distinct domains:
- Synthetic Data: A controlled environment using Gaussian distributions to simulate known biases.
- Medical Imaging (HIV Diagnosis): A dataset of 345 MRIs where age acts as a task bias because HIV can accelerate brain aging, making it difficult to distinguish disease markers from normal aging.
- Gender Shades Pilot Parliaments Benchmark (GS-PPB): 1,253 facial images categorized by the Fitzpatrick six-point skin-labeling system, representing a dataset bias scenario where skin shade is the protected variable.
Results and Discussion
On the HIV medical imaging dataset, BR-Net achieved a balanced accuracy of 74.2%, outperforming the vanilla CNN (71.6%). More importantly, it reduced the statistical dependency on age (measured by distance correlation) from 0.21 down to 0.05.
In the gender classification task (GS-PPB), BR-Net achieved 96.3% overall accuracy. Notably, it significantly improved performance on the darkest skin category (Shade 6), jumping from 86.4% in the baseline to 93.2%.
Visual analysis confirms these results. Saliency maps show that BR-Net focuses on consistent facial features (eyes and nose) across all skin shades, whereas baseline models show unstable patterns depending on skin tone. Furthermore, t-SNE visualizations show that while baseline features cluster clearly by skin shade, BR-Net’s features are well-mixed, indicating the internal representation has become invariant to the protected variable.
Conclusion
BR-Net provides a robust framework for mitigating both dataset and task bias by leveraging a correlation-based adversarial loss. While the method requires careful hyperparameter tuning and labeled protected variables during training, it demonstrates superior performance and fairness across diverse applications. Future work may explore unsupervised bias mitigation and more complex conditional modeling for medical applications.
Summary updated