Fairness in Semi-Supervised Learning: Unlabeled Data Help to Reduce Discrimination

Tao Zhang, Tianqing Zhu, Jing Li, Mengde Han, Wanlei Zhou, Philip S. YuIEEE TKDE 2020 · DOI

Abstract

A growing specter in the rise of machine learning is whether the decisions made by machine learning models are fair. While research is already underway to formalize a machine-learning concept of fairness and to design frameworks for building fair models with sacrifice in accuracy, most are geared toward either supervised or unsupervised learning. Yet two observations inspired us to wonder whether semi-supervised learning might be useful to solve discrimination problems. First, previous study showed that increasing the size of the training set may lead to a better trade-off between fairness and accuracy. Second, the most powerful models today require an enormous of data to train which, in practical terms, is likely possible from a combination of labeled and unlabeled data. Hence, in this paper, we present a framework of fair semi-supervised learning in the pre-processing phase, including pseudo labeling to predict labels for unlabeled data, a re-sampling method to obtain multiple fair datasets and lastly, ensemble learning to improve accuracy and decrease discrimination. A theoretical decomposition analysis of bias, variance and noise highlights the different sources of discrimination and the impact they have on fairness in semi-supervised learning. A set of experiments on real-world and synthetic datasets show that our method is able to use unlabeled data to achieve a better trade-off between accuracy and discrimination.

Introduction

Machine learning models often inherit or amplify societal biases, leading to discriminatory outcomes in sensitive areas like hiring, loan approvals, and healthcare. While many "fairness-aware" algorithms exist, they typically focus on supervised learning—requiring massive amounts of labeled data—or unsupervised learning. In reality, real-world data is often a mix: a small amount of expensive labeled data and a vast ocean of unlabeled data.

This paper introduces a novel framework for Fair Semi-supervised Learning (SSL), demonstrating that unlabeled data—often seen as a source of noise—can actually be a powerful tool for reducing discrimination. By combining pseudo-labeling, fair re-sampling, and ensemble learning, the authors achieve a superior trade-off between model accuracy and demographic parity compared to traditional supervised methods.

The Fairness-enhanced Sampling (FS) Framework

The authors identify a specific gap: representation discrimination. This occurs when certain subgroups are underrepresented in the training set, causing the model to generalize poorly for those groups. The challenge is how to use "messy" unlabeled data to fill these representation gaps without introducing so much noise that the model becomes useless.

The Fairness-enhanced Sampling (FS) framework flowchart illustrating the pipeline from unlabeled data to final predictions.

The proposed Fairness-enhanced Sampling (FS) framework operates in the pre-processing phase through three main steps:

  1. Pseudo-labeling: A base model is trained on the available labeled data and used to predict labels for the unlabeled data. This "augments" the dataset, particularly for minority groups.
  2. Fair Re-sampling: The combined dataset (original + pseudo-labeled) is divided into four groups based on the protected attribute (e.g., race or gender) and the label. The framework then uses oversampling or undersampling to ensure each group has an equal number of data points, effectively balancing the scales before the final training.
  3. Fair Ensemble Learning (Bagging): Since pseudo-labels are inherently noisy, the authors use an ensemble approach. They train multiple models on different fair subsets and aggregate their predictions. This reduces the variance and noise introduced by the pseudo-labeling step.

Theoretical and Empirical Insights

The paper provides a theoretical backbone using bias-variance-noise decomposition, proving that while unlabeled data might increase "noise" discrimination, the reduction in "variance" discrimination (from better representation) often leads to a net gain in fairness.

Key insights from the research include:

  • Unlabeled Data as a Control Value: Increasing the amount of unlabeled data ($ρ$) generally improves accuracy while simultaneously providing the population distribution needed for fairness.
  • The Noise-Variance Trade-off: Pseudo-labeling fixes representation bias (reducing variance) but introduces labeling errors (increasing noise). Ensemble Learning is used specifically to cancel out that noise.
  • Model Sensitivity: Logistic Regression (LR) was found to be generally more stable under fairness interventions than Support Vector Machines (SVM).

Experimental Results

The framework was evaluated on three real-world datasets: Health (predicting hospital stay duration), Bank (predicting term deposit subscriptions), and Adult (predicting income levels).

Comparison of accuracy (red) and discrimination (blue) across different sampling methods (ORI, US, PS, FS) on Health, Bank, and Adult datasets.

As shown in the experimental results, the FS framework consistently provides a better trade-off between accuracy and discrimination compared to the original method (ORI), Undersampling (US), and Preferential Sampling (PS). On the Adult dataset, the FS framework reduced the discrimination level from 0.215 to 0.019, while achieving better accuracy than other popular fair sampling methods. Additionally, experiments showed that as the ensemble size ($K$) reaches approximately 200, both accuracy and discrimination levels stabilize, suggesting the method is robust.

Conclusion

The FS framework demonstrates that unlabeled data can be leveraged to mitigate discrimination in machine learning. While the approach is effective, the authors note that it assumes labeled and unlabeled data come from the same distribution. Future work will explore in-processing fairness constraints for SSL and methods to handle distribution shifts between data sources.

Summary updated

BibTeX
@article{zhang2020fairness,
  author = {Tao Zhang and Tianqing Zhu and Jing Li and Mengde Han and Wanlei Zhou and Philip S. Yu},
  title = {{Fairness in Semi-Supervised Learning: Unlabeled Data Help to Reduce Discrimination}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2020},
  doi = {10.1109/tkde.2020.3002567},
}
Figure