In machine learning, it is well-established that the choice of a random seed can influence a model's final accuracy. However, recent research presented at NAACL 2021 reveals a more concerning phenomenon: the "fairness lottery." This study demonstrates that random seeds have a disproportionately large impact on how fairly clinical classifiers treat different demographic groups, even when overall performance remains stable.
The Problem: Stochasticity and Fairness
In Clinical NLP, the standard workflow involves fine-tuning large pre-trained models, such as ClinicalBERT, on electronic health records (EHR) to predict outcomes like mortality or specific disease phenotypes. Fine-tuning is inherently stochastic, relying on random seeds for weight initialization and data shuffling. While this randomness is known to cause minor "performance jitter" in overall accuracy, this paper investigates whether it also introduces significant variance in fairness metrics.
In a healthcare context, this is critical. A model that appears highly accurate on average but fluctuates wildly in its performance for minority patients due to a random seed is a significant clinical liability. The researchers sought to determine if observed bias is a fixed algorithmic property or merely a result of chance during the training process.
The Underspecification Problem
The study identifies "underspecification" as a primary driver of fairness variance. Underspecification occurs when the requirements provided to a model (e.g., maximizing validation AUC) are insufficient to uniquely determine a single optimal model. Consequently, many models resulting from different seeds may achieve nearly identical overall performance but "disagree" significantly on predictions for minority subgroups.
As shown in the figure above, models clustered around high AUC values (approximately 0.8) exhibit a wide vertical spread in fairness disparity ($|\Delta$ AUC|). This suggests that fair models do exist within the pool of high-performing candidates, but standard optimization techniques do not inherently select for them.
The Sample Size Trap
A key finding of the research is that the high variance in minority subgroup performance is largely a function of small sample sizes. Using the MIMIC-III dataset, the authors noted that the population is heavily imbalanced (roughly 85% White and 55% Male). When evaluating rare conditions within small minority populations, the statistical estimate of the Area Under the ROC Curve (AUC) becomes extremely noisy.
For example, in phenotype classification tasks like "Shock," models with nearly identical overall AUCs showed a spread of nearly 15% in $\Delta$ AUC for the Asian subgroup simply by changing the random seed. This "apparent" unfairness is often indistinguishable from the statistical noise caused by data scarcity.
Experimental Insights and Results
- No Inherent Trade-off: The researchers found no evidence of a fundamental trade-off between accuracy and fairness. Fairer models are present among the high-performing ones; the challenge lies in identification rather than a loss of utility.
- Validation Limitations: Selecting a "fair" seed based on validation set performance is an unreliable strategy. The correlation between fairness on the validation set and the test set was found to be weak or non-existent.
- Suboptimal Optimization: Attempts to jointly optimize for both performance and low disparity on validation data did not yield statistically significant improvements on the test set, further highlighting the noise in these estimates.
Conclusion and Recommendations
The "fairness lottery" suggests that current reporting standards in clinical NLP are insufficient. To move toward more robust and equitable models, the authors recommend:
- Reporting Stochasticity: Researchers should report results across multiple random seeds rather than a single "best" run to provide a realistic view of model stability.
- Addressing Sample Size: New methods are needed to accurately estimate performance disparities when subgroup data is scarce, potentially through data augmentation or balanced evaluation subsets.
- Beyond Seeds: Future work must explore architectural or loss-function constraints that provide the necessary "specification" to ensure fairness, rather than leaving it to the luck of the draw.
Summary updated