Gender Biases and Where to Find Them: Exploring Gender Bias in Pre-Trained Transformer-based Language Models Using Movement Pruning

Przemyslaw Joniak, Akiko Aizawa
7/6/2022
cs.CL

No official code found. Best implementation: kainoj/pruning-bias (7 stars, last commit 2022-07-11).

Abstract

Language model debiasing has emerged as an important field of study in the NLP community. Numerous debiasing techniques were proposed, but bias ablation remains an unaddressed issue. We demonstrate a novel framework for inspecting bias in pre-trained transformer-based language models via movement pruning. Given a model and a debiasing objective, our framework finds a subset of the model containing less bias than the original model. We implement our framework by pruning the model while fine-tuning it on the debiasing objective. Optimized are only the pruning scores - parameters coupled with the model's weights that act as gates. We experiment with pruning attention heads, an important building block of transformers: we prune square blocks, as well as establish a new way of pruning the entire heads. Lastly, we demonstrate the usage of our framework using gender bias, and based on our findings, we propose an improvement to an existing debiasing method. Additionally, we re-discover a bias-performance trade-off: the better the model performs, the more bias it contains.

View on arXivView PDF

Code Implementations(1)

kainoj/pruning-biasCommunity100%

Pruning bias from transformers / NAACL 2022

70PythonJul 19, 20214 years ago
bert-modelgender-biasnaacl2022nlptransformers

Similar Papers

Cite this paper

@article{joniak2022gender,
  title  = {Gender Biases and Where to Find Them: Exploring Gender Bias in Pre-Trained Transformer-based Language Models Using Movement Pruning},
  author = {Przemyslaw Joniak and Akiko Aizawa},
  year   = {2022},
  eprint = {2207.02463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.02463v1}
}

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/2207.02463.svg)](https://codeofpaper.com/paper/2207.02463)

Discussion