Abstract
Most machine learning models designed for fairness assume the availability of perfect demographic group labels (e.g., race, gender, or age) for the entire training set. However, in practice, privacy regulations and high annotation costs often result in missing labels for the majority of the data. This paper addresses the "Fair-PG" (Partially annotated Group labels) scenario. We introduce Confidence-based Group Label assignment (CGL), a strategy that enables existing fairness algorithms to function effectively even when group labels are scarce. By utilizing an auxiliary classifier to assign pseudo-labels to high-confidence samples and strategic random labels to uncertain ones, CGL significantly improves both accuracy and fairness across vision and tabular datasets.
Introduction
Standard fairness-aware training methods typically aim to minimize statistical disparities between demographic groups. These methods generally rely on the assumption that group labels are fully annotated. When group labels are sparse—for instance, available for only 10% of the data—standard methods often fail, sometimes becoming less accurate and more biased than a "vanilla" model that ignores fairness entirely. This phenomenon, which we term the "scratch paradox," represents a significant barrier to deploying fair AI in real-world settings where data is often partially labeled.
The Challenge of Partial Group Labels
When group labels are missing for a large portion of the training data, models trained only on the labeled subset tend to overfit, leading to poor generalization and increased disparity. As illustrated in the performance comparison below, standard fair-training methods (yellow) can exhibit worse fairness than a model trained from scratch without fairness constraints (black dashed line) as the group-label ratio decreases. In contrast, the proposed CGL strategy (red) maintains high accuracy and improves fairness metrics even at low label ratios.
Confidence-based Group Label Assignment (CGL)
To overcome the limitations of partial annotations, we propose CGL, a data-labeling strategy that can be integrated with various in-processing fairness algorithms. CGL follows a three-step process:
- Auxiliary Classifier Training: A classifier $g$ is trained on the small set of labeled data to predict group labels from input features.
- Thresholding: For unlabeled data, if the auxiliary classifier's prediction confidence exceeds a threshold $ au$, a pseudo-label is assigned.
- Strategic Randomization: If the prediction confidence is below $ au$, a random group label is assigned, sampled from the empirical distribution of groups for that specific target class.
Theoretical analysis suggests that assigning random labels to uncertain samples effectively relaxes the fairness constraint for those instances. This prevents noisy, incorrect pseudo-labels from misguiding the model's fairness objectives, acting as a form of regularization.
Experimental Evaluation
We evaluated CGL across several benchmarks, including vision datasets (UTKFace for age/ethnicity and CelebA for attributes/gender) and tabular datasets (ProPublica COMPAS and UCI Adult). CGL was used as a wrapper for existing fairness methods such as MFD, FairHSIC, and LBC.
Results and Discussion
CGL consistently outperformed baselines across all tested datasets and label ratios. On the UTKFace dataset with only 10% group labels, combining CGL with MFD increased target accuracy by 8.23% and reduced the Disparity of Equal Opportunity (DEO) by 8.75 points compared to using only labeled data.
Key insights from our experiments include:
- Randomness as Regularization: Randomly labeling uncertain samples is more beneficial for fairness than forced pseudo-labeling, as it prevents the model from reinforcing its own biases.
- Plug-and-Play Compatibility: CGL is agnostic to the underlying fairness algorithm, making it a versatile tool for various fair-learning tasks.
- Pareto Dominance: CGL achieves a superior trade-off between accuracy and fairness, effectively dominating standard pseudo-labeling approaches in the accuracy-fairness space.
Conclusion
CGL provides a robust and simple solution for training fair classifiers when demographic labels are partially missing. By strategically combining pseudo-labeling with randomization, it mitigates the negative impacts of label scarcity. Future work will explore improving the robustness of the auxiliary classifier to distribution shifts and automating the selection of the confidence threshold.
Summary updated