FairFlow: An Automated Approach to Model-based Counterfactual Data Augmentation For NLP
Ewoenam Kwaku Tokpo, Toon Calders
TL;DR
FairFlow tackles bias in NLP by enabling model-based counterfactual data augmentation without costly parallel corpora. It learns a demographic subspace from a single word-pair prompt, uses an invertible flow DIIN to generate counterfactuals confined to the first $k$ dimensions, and applies an error-correction step with BART to produce fluent parallel data used to fine-tune a generator. Evaluations on Bias-in-bios, ECHR, and Jigsaw show improved fluency (lower perplexity), strong gender transfer, and significant extrinsic bias mitigation with competitive task performance compared to dictionary-based baselines. The approach scales to low-resource settings and reduces reliance on human-generated data, while acknowledging limitations in multilingual and non-binary contexts and emphasizing ethical considerations when deploying counterfactuals.
Abstract
Despite the evolution of language models, they continue to portray harmful societal biases and stereotypes inadvertently learned from training data. These inherent biases often result in detrimental effects in various applications. Counterfactual Data Augmentation (CDA), which seeks to balance demographic attributes in training data, has been a widely adopted approach to mitigate bias in natural language processing. However, many existing CDA approaches rely on word substitution techniques using manually compiled word-pair dictionaries. These techniques often lead to out-of-context substitutions, resulting in potential quality issues. The advancement of model-based techniques, on the other hand, has been challenged by the need for parallel training data. Works in this area resort to manually generated parallel data that are expensive to collect and are consequently limited in scale. This paper proposes FairFlow, an automated approach to generating parallel data for training counterfactual text generator models that limits the need for human intervention. Furthermore, we show that FairFlow significantly overcomes the limitations of dictionary-based word-substitution approaches whilst maintaining good performance.
