BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text Generation

Tianxiang Sun, Junliang He, Xipeng Qiu, Xuanjing Huang
10/14/2022
cs.CLcs.AI

Official code: txsun1997/Metric-Fairness (41 stars, Jupyter Notebook, MIT, last commit 2022-10-19).

Abstract

Automatic evaluation metrics are crucial to the development of generative systems. In recent years, pre-trained language model (PLM) based metrics, such as BERTScore, have been commonly adopted in various generation tasks.

Show full abstract

However, it has been demonstrated that PLMs encode a range of stereotypical societal biases, leading to a concern on the fairness of PLMs as metrics. To that end, this work presents the first systematic study on the social bias in PLM-based metrics. We demonstrate that popular PLM-based metrics exhibit significantly higher social bias than traditional metrics on 6 sensitive attributes, namely race, gender, religion, physical appearance, age, and socioeconomic status. In-depth analysis suggests that choosing paradigms (matching, regression, or generation) of the metric has a greater impact on fairness than choosing PLMs. In addition, we develop debiasing adapters that are injected into PLM layers, mitigating bias in PLM-based metrics while retaining high performance for evaluating text generation.

View on arXivView PDF

Code Implementations(1)

MIT

EMNLP'2022: BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text Generation

414Jupyter Notebook, PythonOct 8, 20224 years agoMIT
bertscoredeep-learningfairness-aifairness-mlmetric-bias+3 more

Similar Papers

Cite this paper

@article{sun2022bertscore,
  title  = {BERTScore is Unfair: On Social Bias in Language Model-Based Metrics for Text Generation},
  author = {Tianxiang Sun and Junliang He and Xipeng Qiu and Xuanjing Huang},
  year   = {2022},
  eprint = {2210.07626},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07626}
}

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

Discussion