Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworks

Lukas Hauzenberger, Shahed Masoudian, Deepak Kumar, Markus Schedl, Navid Rekabsaz
5/30/2022
cs.LGcs.CLcs.CY

Official code: sirluk/sparse_transformers (1 star, Jupyter Notebook, last commit 2023-01-14).

Abstract

Societal biases are reflected in large pre-trained language models and their fine-tuned versions on downstream tasks. Common in-processing bias mitigation approaches, such as adversarial training and mutual information removal, introduce additional optimization criteria, and update the model to reach a new debiased state.

Show full abstract

However, in practice, end-users and practitioners might prefer to switch back to the original model, or apply debiasing only on a specific subset of protected attributes. To enable this, we propose a novel modular bias mitigation approach, consisting of stand-alone highly sparse debiasing subnetworks, where each debiasing module can be integrated into the core model on-demand at inference time. Our approach draws from the concept of \emph{diff} pruning, and proposes a novel training regime adaptable to various representation disentanglement optimizations. We conduct experiments on three classification tasks with gender, race, and age as protected attributes. The results show that our modular approach, while maintaining task performance, improves (or at least remains on-par with) the effectiveness of bias mitigation in comparison with baseline finetuning. Particularly on a two-attribute dataset, our approach with separately learned debiasing subnetworks shows effective utilization of either or both the subnetworks for selective bias mitigation.

View on arXivView PDF

Code Implementations(1)

10Jupyter Notebook, PythonJun 19, 20223 years ago

Similar Papers

Cite this paper

@article{hauzenberger2022modular,
  title  = {Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworks},
  author = {Lukas Hauzenberger and Shahed Masoudian and Deepak Kumar and Markus Schedl and Navid Rekabsaz},
  year   = {2022},
  eprint = {2205.15171},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15171}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.15171.svg)](https://codeofpaper.com/paper/2205.15171)

Discussion