Debiasing Pre-trained Contextualised Embeddings

Masahiro Kaneko, Danushka Bollegala
1/23/2021
171 citations
cs.CL

Official code: kanekomasahiro/context-debias (25 stars, Python, MIT, last commit 2022-02-06).

Abstract

In comparison to the numerous debiasing methods proposed for the static non-contextualised word embeddings, the discriminative biases in contextualised embeddings have received relatively little attention. We propose a fine-tuning method that can be applied at token- or sentence-levels to debias pre-trained contextualised embeddings.

Show full abstract

Our proposed method can be applied to any pre-trained contextualised embedding model, without requiring to retrain those models. Using gender bias as an illustrative example, we then conduct a systematic study using several state-of-the-art (SoTA) contextualised representations on multiple benchmark datasets to evaluate the level of biases encoded in different contextualised embeddings before and after debiasing using the proposed method. We find that applying token-level debiasing for all tokens and across all layers of a contextualised embedding model produces the best performance. Interestingly, we observe that there is a trade-off between creating an accurate vs. unbiased contextualised embedding model, and different contextualised embedding models respond differently to this trade-off.

View on arXivView PDF

Code Implementations(1)

MIT
253Python, Jupyter NotebookJan 21, 20214 years agoMIT

Similar Papers

Cite this paper

@article{kaneko2021debiasing,
  title  = {Debiasing Pre-trained Contextualised Embeddings},
  author = {Masahiro Kaneko and Danushka Bollegala},
  year   = {2021},
  eprint = {2101.09523},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.09523}
}

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

Discussion