Abstract
Ensuring that Natural Language Processing (NLP) models do not perpetuate societal biases is a critical technical and ethical challenge. This paper presents Wasserstein Fair Classification (WFC), a method that utilizes Wasserstein distance to disentangle sensitive information from model representations. Unlike traditional debiasing techniques, WFC does not require sensitive attribute labels during inference and maintains a competitive balance between fairness and accuracy. Evaluations on the Bias in Bios and Moji datasets demonstrate that WFC achieves state-of-the-art trade-offs while offering greater stability and flexibility in real-world applications.
Introduction
Machine learning models often exhibit "disparate impact," where predictions disproportionately affect specific groups based on sensitive attributes like gender or ethnicity. In text classification, models may learn spurious correlations—such as associating specific occupations with a gender—due to biases inherent in training data.
Existing fairness-aware algorithms often face two primary hurdles:
- Data Dependency: Many methods require sensitive attribute annotations at both training and testing stages, which is often prohibited by privacy regulations like GDPR.
- Fairness-Accuracy Trade-off: Aggressive bias removal frequently leads to significant drops in primary task performance.
WFC addresses these challenges by providing an architecture-agnostic framework that works without sensitive labels at test time and optimizes the trade-off between model utility and fairness.
Methodology: Wasserstein Independence
The core objective of WFC is to ensure that the latent representation used for the main task is independent of any sensitive attributes.
The system employs a frozen text encoder (e.g., BERT) followed by two separate Multi-Layer Perceptrons (MLPs):
- Task Predictor: Learns to predict the target label ($y$).
- Demonic Model: Trained to predict the sensitive attribute ($s$).
To enforce fairness, the authors introduce a regularization term based on the Wasserstein-1 distance. An adversarial "critic" network estimates the dependency between the task-specific representation ($z_y$) and the sensitive representation ($z_s$). By minimizing the Wasserstein distance between the joint distribution $p(z_y, z_s)$ and the product of their marginals $p(z_y)p(z_s)$, the model forces $z_y$ to be independent of $s$.
Experimental Results
The authors evaluated WFC on two standard NLP fairness benchmarks: Bias in Bios (predicting occupation while remaining neutral to gender) and Moji (sentiment analysis where dialect serves as a proxy for ethnicity).
Performance Benchmarks
- Moji Dataset: WFC achieved the best "Distance To Optimum" (DTO), indicating the most effective balance of high accuracy and high fairness compared to baselines like ADV and INLP.
- Bias in Bios: WFC ranked among the top-performing models. While not always the absolute highest in raw accuracy, it exhibited significantly lower variance across runs, suggesting greater robustness.
Demonic Transfer and Autonomy
A significant practical contribution is the "demonic transfer" strategy. The authors demonstrated that the "demonic" model can be trained on a separate dataset containing sensitive labels and then used to debias a target model on a dataset where those labels are missing. This "fairness autonomy" allows for debiasing in data-constrained environments.
Conclusion
WFC represents a significant advancement in robust, representation-level debiasing. By cleaning the latent space rather than just the final predictions, it provides a more stable path toward fair NLP. Future research will explore extending this framework to non-binary sensitive attributes and continuous variables like age.
Code is available at GitHub.
Summary updated