Fairness Constraints in Semi-supervised Learning

Tao Zhang, Tianqing Zhu, Mengde Han, Jing Li, Wanlei Zhou, Philip S. YuarXiv 2020

Introduction

Machine learning models are increasingly deployed in high-stakes domains such as loan approvals and recidivism prediction. However, these models often inherit or amplify societal biases present in training data. A primary challenge in Fair Machine Learning is the accuracy-fairness trade-off, where imposing fairness constraints typically degrades predictive performance. While research has extensively covered fair supervised and unsupervised learning, the semi-supervised learning (SSL) paradigm—utilizing a small set of labeled data alongside a large volume of unlabeled data—remains under-explored. This paper proposes that leveraging "cheap" unlabeled data can improve this trade-off, making models fairer without significant accuracy loss.

Methodology

The authors introduce a framework that treats fair SSL as a constrained optimization problem. The objective function integrates three components:

  1. Classifier Loss ($L_1$): Standard loss (e.g., cross-entropy) to ensure accuracy on labeled data.
  2. Label Propagation Loss ($L_2$): A graph-based loss ensuring similar data points receive similar predicted labels, effectively spreading information from labeled to unlabeled instances.
  3. Fairness Constraints ($s(w) \le c$): Mathematical bounds on discrimination metrics such as Disparate Impact (balancing positive outcomes) and Disparate Mistreatment (balancing error rates).

The optimization process is iterative: model weights are updated to satisfy fairness constraints, and these weights then refine "pseudo-labels" for unlabeled data via label propagation. For non-convex constraints like Disparate Mistreatment, the framework utilizes Disciplined Convex-Concave Programming (DCCP).

Empirical Evaluation

The framework was evaluated on three real-world datasets: Health (predicting hospital stay duration), Bank (predicting term deposit subscriptions), and Titanic (predicting survival). Labels were withheld from a large portion of the training sets to simulate the SSL environment.

Figure 4: Accuracy vs. Discrimination Level for LR and SVM models on Health and Titanic datasets. The proposed SSL method (Semi, red line) consistently outperforms the supervised baseline (FS, blue line) and other methods (US, PS, FES).

As shown in Figure 4, the proposed SSL method (LR-Semi and SVM-Semi) consistently achieves a superior Pareto frontier compared to supervised baselines. In both the Health and Titanic datasets, the semi-supervised approach maintains higher accuracy at lower discrimination levels.

Key Insights and Results

  • Discrimination as Variance: Bias-variance-noise decomposition reveals that unlabeled data primarily reduces the variance component of discrimination. More data stabilizes the model's fairness behavior, making it less sensitive to biased samples.
  • Regularization via Unlabeled Data: Unlabeled data lacks ground-truth labels and thus avoids "label bias" (human prejudice in target variables). This allows it to act as a cleaner regularizer for the decision boundary.
  • Superior Trade-offs in Mistreatment Metrics: The framework excels at balancing error rates (Disparate Mistreatment). On the Bank dataset, the SSL method significantly improved the trade-off between accuracy and False Negative Rate (FNR) balance.
Figure 6: Accuracy vs. Discrimination Level (FNR) for Bank and Titanic datasets. The SSL approach (Semi) demonstrates a more favorable trade-off than the fully supervised (FS) counterparts.

Conclusion

This research demonstrates that semi-supervised learning is a powerful tool for building fairer machine learning models. By incorporating fairness constraints into the SSL objective, models can leverage unlabeled data to achieve accuracy-fairness trade-offs that surpass traditional supervised methods. Future work will address challenges such as distribution shifts between labeled and unlabeled data and extending the framework to individual fairness metrics.

Summary updated

BibTeX
@misc{zhang2020fairness,
  author = {Tao Zhang and Tianqing Zhu and Mengde Han and Jing Li and Wanlei Zhou and Philip S. Yu},
  title = {{Fairness Constraints in Semi-supervised Learning}},
  year = {2020},
  eprint = {2009.06190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.06190},
}
Figure