TL;DR
This paper introduces Wasserstein Fair Classification (WFC), a novel method for achieving fairness in text classification by minimizing the dependency between text representations and sensitive attributes. WFC leverages the Wasserstein Dependency Measure and domain adaptation to learn unbiased models, even when sensitive attribute data is scarce or unavailable during inference.
What Problem Does This Paper Address?
Ensuring fairness in machine learning models, particularly in text classification, is a significant challenge. Models can inadvertently learn and perpetuate biases present in the training data, leading to discriminatory outcomes for different demographic groups. This paper focuses on group fairness, aiming to prevent predictions from being unfairly influenced by sensitive attributes like gender or ethnicity. A key challenge is learning to disentangle information relevant to the classification task from information related to sensitive attributes, especially when sensitive attribute data is limited or unavailable during deployment.
Methods
The core of WFC is the use of the Wasserstein Dependency Measure (Iw) to quantify and minimize the statistical dependence between learned text representations and sensitive attributes. Instead of directly optimizing the dependency between predictions and sensitive attributes, WFC applies Iw to the latent representations of two neural networks: one for classification and another (a "demonic model") for predicting the sensitive attribute. This approach offers theoretical advantages and computational feasibility.
A key innovation is the use of domain adaptation for the demonic model. This allows WFC to learn fair representations even when the target dataset lacks sensitive attribute annotations, by leveraging a source dataset that does have this information. This addresses a major limitation of prior methods that require sensitive attribute data during training. The paper also provides theoretical guarantees for these approximations and the domain adaptation strategy.
Datasets
The paper evaluates WFC on two widely-used datasets:
- Bios: Contains brief biographies from the common crawl, annotated with occupations and genders.
- Moji: Contains tweets annotated with positive/negative polarity and African American English (AAE) or Standard American English (SAE) attributes.
Key Insights and Ideas
- Disentangling representations is key: The paper demonstrates that by minimizing the dependency between latent representations of text and sensitive attributes, one can achieve fairness without sacrificing classification accuracy.
- Wasserstein Dependency Measure is powerful: Iw proves to be a robust metric for capturing and mitigating statistical dependence, offering theoretical advantages over traditional methods like Mutual Information.
- Domain adaptation for fairness: The ability to pre-train the "demonic model" using domain adaptation is crucial for enabling fair classification in scenarios with limited or no sensitive attribute data in the target domain. This makes the approach more practical and compliant with regulations like GDPR.
- Latent representations are sufficient: WFC shows that using latent representations from intermediate layers of neural networks is effective for fairness, avoiding the non-differentiability issues of directly using output predictions.
Key Results
- WFC achieves competitive accuracy while significantly outperforming state-of-the-art methods in fairness metrics on the Moji dataset.
- On the Bios dataset, WFC demonstrates a favorable accuracy-fairness trade-off (DTO score), ranking among the top methods.
- The domain adaptation strategy for the demonic model shows promising results, achieving high accuracy in predicting sensitive attributes even when trained on data from different domains.
Limitations and Future Work
- Continuous sensitive attributes: While the framework can be extended to continuous attributes through binning, finding optimal binning thresholds remains a challenge.
- Data availability: The authors were unable to evaluate performance on continuous sensitive attributes like age due to data limitations. Experiments were also limited to binary classification for gender.
- Anticausal learning: The paper suggests exploring fairness in anticausal settings, where the target label might generate the observed text, which is a common scenario in NLP.
- Softmax temperature: Further investigation into the role of softmax temperature in theoretical bounds and its connection to model calibration is proposed.
- Broader applicability: The authors believe the approach could be extended beyond text classification to tasks like regression or image analysis.
Summary updated