Debiasing Masks: A New Framework for Shortcut Mitigation in NLU

Johannes Mario Meissner, Saku Sugawara, Akiko Aizawa
10/28/2022
cs.CL

Official code: mariomeissner/shortcut-pruning (2 stars, Jupyter Notebook, last commit 2023-09-08).

Abstract

Debiasing language models from unwanted behaviors in Natural Language Understanding tasks is a topic with rapidly increasing interest in the NLP community. Spurious statistical correlations in the data allow models to perform shortcuts and avoid uncovering more advanced and desirable linguistic features.

Show full abstract

A multitude of effective debiasing approaches has been proposed, but flexibility remains a major issue. For the most part, models must be retrained to find a new set of weights with debiased behavior. We propose a new debiasing method in which we identify debiased pruning masks that can be applied to a finetuned model. This enables the selective and conditional application of debiasing behaviors. We assume that bias is caused by a certain subset of weights in the network; our method is, in essence, a mask search to identify and remove biased weights. Our masks show equivalent or superior performance to the standard counterparts, while offering important benefits. Pruning masks can be stored with high efficiency in memory, and it becomes possible to switch among several debiasing behaviors (or revert back to the original biased model) at inference time. Finally, it opens the doors to further research on how biases are acquired by studying the generated masks. For example, we observed that the early layers and attention heads were pruned more aggressively, possibly hinting towards the location in which biases may be encoded.

View on arXivView PDF

Code Implementations(1)

This is the repository for my master's thesis, as well as the EMNLP 2022 paper on masked debiasing.

21Jupyter Notebook, PythonDec 2, 20213 years ago

Similar Papers

Cite this paper

@article{meissner2022debiasing,
  title  = {Debiasing Masks: A New Framework for Shortcut Mitigation in NLU},
  author = {Johannes Mario Meissner and Saku Sugawara and Akiko Aizawa},
  year   = {2022},
  eprint = {2210.16079},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.16079}
}

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

Discussion