Does Robustness Improve Fairness? Approaching Fairness with Word Substitution Robustness Methods for Text Classification

Yada Pruksachatkun, Satyapriya Krishna, Jwala Dhamala, Rahul Gupta, Kai-Wei Chang

Introduction

The intersection of adversarial robustness and algorithmic fairness presents a promising avenue for improving NLP models. This research explores how training text classifiers to be robust against word substitutions—such as swapping synonyms—can inherently reduce bias against protected demographic groups. By combining certified robustness techniques with traditional bias mitigation, the authors achieve state-of-the-art fairness results, albeit with a minor trade-off in predictive accuracy.

The Problem: Societal Bias in NLP

NLP models frequently internalize societal biases present in training data. For instance, toxicity classifiers might disproportionately flag text containing LGBTQ+ identifiers, or occupation classifiers might rely on gendered pronouns rather than professional qualifications. While traditional methods like debiasing word embeddings or adversarial training address these issues, this paper investigates whether "certified robustness"—originally designed to prevent models from flipping predictions when words are swapped with synonyms—can serve as a mechanism for fairness.

Methodology

The study evaluates two primary architectures: a CNN using GloVe embeddings and BERT.

Robustness Techniques

  1. Interval Bound Propagation (IBP): Applied to the CNN, this method minimizes the upper bound of losses over a set of possible word perturbations.
  2. SAFER: A randomized smoothing technique used for BERT that perturbs inputs during training without changing the model architecture.

Fairness Integration

The authors compare these against standard baselines like Instance Weighting, HardDebias, and Adversarial Training. The novelty lies in modifying perturbation sets to include gendered word pairs (e.g., "he"/"she") and combining robustness training with existing fairness strategies.

Datasets

The hypothesis was tested on two distinct benchmarks:

  • Jigsaw Toxicity: 1.8 million examples for toxicity classification, measured via Equalized Odds (EOdds).
  • Bias in Bios: 270k Wikipedia biographies for occupation classification, measured via Equality of Opportunity.

Analysis of Model Attention

A critical finding of this work is that robustness-trained models shift their internal focus. Using LIME (Local Interpretable Model-agnostic Explanations), the authors observed that these models rely significantly less on gender tokens compared to baseline models.

Frequency of Gender Token LIME Features in Jigsaw Toxicity across different models.

As shown in the Jigsaw Toxicity analysis, robustness methods like IBP and SAFER lead to a more balanced or reduced reliance on specific gendered terms compared to the baseline CNN and BERT models. This suggests that the models are learning to ignore demographic identifiers that shouldn't impact the toxicity label.

Frequency of Gender Token LIME Features in Bias in Bios across different models.

Similarly, in the Bias in Bios dataset, the frequency of gendered tokens as top features decreases when robustness methods are applied, forcing the model to focus on more relevant occupational attributes rather than the subject's gender.

Key Results and Synergy

The experiments demonstrate that robustness often outperforms standalone fairness methods. On Jigsaw Toxicity, IBP improved the EOdds score to 0.184, significantly better than the baseline (0.508) and Adversarial Training (0.491).

The best results were achieved through synergy:

  • Jigsaw: IBP + Instance Weighting reached an EOdds of 0.165.
  • Bias in Bios: IBP + HardDebias reduced the True Positive Equality Difference to 0.101 (from 0.131).

However, a performance trade-off exists. For example, the CNN's AUC on Jigsaw dropped from 0.957 to 0.889 when using IBP + Instance Weighting. Additionally, the authors noted that narrow perturbation sets (e.g., only binary gender) can sometimes hurt fairness for other identities, such as sexual orientation, if the model over-indexes on the specified swaps.

Conclusion and Future Directions

Robustness to word substitutions acts as an effective proxy for fairness by encouraging models to ignore spurious demographic identifiers. While effective, the current approach is limited by narrow perturbation sets and potential grammatical issues in generated text. Future work will expand to a broader range of protected attributes beyond binary gender and explore optimization strategies to mitigate the accuracy trade-off.

Summary updated

BibTeX
@inproceedings{pruksachatkun2021does,
  author = {Yada Pruksachatkun and Satyapriya Krishna and Jwala Dhamala and Rahul Gupta and Kai-Wei Chang},
  title = {{Does Robustness Improve Fairness? Approaching Fairness with Word Substitution Robustness Methods for Text Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.294},
}
Figure