Skip to main content
QUICK REVIEW

[Paper Review] Measuring Fairness with Biased Rulers: A Survey on Quantifying Biases in Pretrained Language Models

Pieter Delobelle, Ewoenam Kwaku Tokpo|arXiv (Cornell University)|Dec 14, 2021
Ethics and Social Impacts of AISocial Sciences12 citations
TL;DR

This paper surveys fairness metrics for contextualized language models like BERT, evaluating their compatibility and correlation with downstream bias. It finds that intrinsic metrics are highly sensitive to templates, seed words, and embedding choices, leading to inconsistent results; the authors recommend prioritizing extrinsic fairness evaluations in downstream tasks and using embedding-agnostic metrics like DisCo or LPBS over embedding-based ones.

ABSTRACT

An increasing awareness of biased patterns in natural language processing resources, like BERT, has motivated many metrics to quantify `bias' and `fairness'. But comparing the results of different metrics and the works that evaluate with such metrics remains difficult, if not outright impossible. We survey the existing literature on fairness metrics for pretrained language models and experimentally evaluate compatibility, including both biases in language models as in their downstream tasks. We do this by a mixture of traditional literature survey and correlation analysis, as well as by running empirical evaluations. We find that many metrics are not compatible and highly depend on (i) templates, (ii) attribute and target seeds and (iii) the choice of embeddings. These results indicate that fairness or bias evaluation remains challenging for contextualized language models, if not at least highly subjective. To improve future comparisons and fairness evaluations, we recommend avoiding embedding-based metrics and focusing on fairness evaluations in downstream tasks.

Motivation & Objective

  • To survey existing fairness metrics for contextualized language models such as BERT.
  • To evaluate the compatibility and consistency of these metrics across different configurations (templates, seeds, embeddings).
  • To investigate the relationship between intrinsic fairness metrics and extrinsic bias in downstream tasks.
  • To provide actionable recommendations for reliable bias evaluation in NLP systems.
  • To highlight limitations of current metrics and caution against overreliance on intrinsic measures as proxies for real-world fairness.

Proposed method

  • Conducted a comprehensive literature survey of fairness metrics for contextualized language models.
  • Performed empirical evaluations using five popular models: BERT-base-uncased, BERT-large-uncased, RoBERTa-base, DistilBERT-base-uncased, and BERT-base-multilingual-uncased.
  • Applied correlation analysis between intrinsic fairness metrics and the extrinsic benchmark BiasInBios to assess alignment.
  • Evaluated the impact of different templates, seed word choices, and embedding representations (e.g., [CLS], target word embeddings) on metric stability.
  • Used the BiasInBios dataset to finetune and evaluate models, enabling comparison between intrinsic and extrinsic bias measures.
  • Released code and a package for fairness metrics at https://github.com/iPieter/biased-rulers to support reproducibility and reuse.

Experimental results

Research questions

  • RQ1Which fairness measures exist for contextualized language models like BERT?
  • RQ2How do these fairness measures generalize beyond English?
  • RQ3What are the relationships between fairness measures, the templates they use, and the choice of embeddings?
  • RQ4Which set of fairness metrics is most reliable and compatible for bias evaluation?

Key findings

  • Many intrinsic fairness metrics are incompatible due to high sensitivity to template design, seed word selection, and embedding representation.
  • Using target word embeddings instead of [CLS] embeddings leads to more stable and robust metric results across different templates.
  • Correlation between intrinsic and extrinsic fairness measures (e.g., BiasInBios) is often weak or negative, indicating poor alignment between intrinsic metrics and real-world bias in downstream tasks.
  • Metrics like CrowS-pairs show low correlation with BiasInBios, partly due to template and representation differences, highlighting their instability.
  • The WEAT variant by Tan and Celis (2019) shows relatively strong correlation with extrinsic bias, suggesting it may be more reliable among intrinsic metrics.
  • The study concludes that embedding-based intrinsic metrics introduce significant variance and should be avoided in favor of embedding-agnostic alternatives like DisCo or LPBS, and that extrinsic fairness evaluation in downstream tasks is essential for meaningful fairness assessment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.