Skip to main content
QUICK REVIEW

[Paper Review] Measuring Implicit Bias in Explicitly Unbiased Large Language Models

Xuechunzi Bai, Angelina Wang|arXiv (Cornell University)|Feb 6, 2024
Natural Language Processing TechniquesComputer Science14 citations
TL;DR

The paper introduces prompt-based measures of LLM implicit bias (LLM Implicit Bias) and LLM Decision Bias to detect subtle discriminatory tendencies in ostensibly unbiased models, across 8 models, 4 social categories, and 21 stereotypes.

ABSTRACT

Large language models (LLMs) can pass explicit social bias tests but still harbor implicit biases, similar to humans who endorse egalitarian beliefs yet exhibit subtle biases. Measuring such implicit biases can be a challenge: as LLMs become increasingly proprietary, it may not be possible to access their embeddings and apply existing bias measures; furthermore, implicit biases are primarily a concern if they affect the actual decisions that these systems make. We address both challenges by introducing two new measures of bias: LLM Implicit Bias, a prompt-based method for revealing implicit bias; and LLM Decision Bias, a strategy to detect subtle discrimination in decision-making tasks. Both measures are based on psychological research: LLM Implicit Bias adapts the Implicit Association Test, widely used to study the automatic associations between concepts held in human minds; and LLM Decision Bias operationalizes psychological results indicating that relative evaluations between two candidates, not absolute evaluations assessing each independently, are more diagnostic of implicit biases. Using these measures, we found pervasive stereotype biases mirroring those in society in 8 value-aligned models across 4 social categories (race, gender, religion, health) in 21 stereotypes (such as race and criminality, race and weapons, gender and science, age and negativity). Our prompt-based LLM Implicit Bias measure correlates with existing language model embedding-based bias methods, but better predicts downstream behaviors measured by LLM Decision Bias. These new prompt-based measures draw from psychology's long history of research into measuring stereotype biases based on purely observable behavior; they expose nuanced biases in proprietary value-aligned LLMs that appear unbiased according to standard benchmarks.

Motivation & Objective

  • Motivate the need to detect implicit biases in LLMs despite alignment and safety guardrails.
  • Develop two psychology-inspired measures (LLM Implicit Bias and LLM Decision Bias) that work with proprietary models.
  • Evaluate bias across multiple value-aligned LLMs and a broad set of stereotypes to reveal hidden discrimination.
  • Assess how these prompt-based measures relate to embedding-based bias and to downstream decision outcomes.

Proposed method

  • Adapt the Implicit Association Test (IAT) framework into a prompt-based LLM Implicit Bias task that yields bias scores from word–category associations (bias = N(sa,Xa)/[N(sa,Xa)+N(sa,Xb)] + N(sb,Xb)/[N(sb,Xa)+N(sb,Xb)] − 1).
  • Use randomized prompt templates and seed-Xa/Xb sets to generate multiple prompts per category and compute average bias with bootstrapped confidence intervals.
  • Create LLM Decision Bias tasks by generating contextually relevant, relative decisions (e.g., profiles and task assignments) to detect discriminatory behaviors, measured as the proportion of biased decisions across iterations (0 to 1 scale).
  • Prompt generation includes both manually crafted and automatically generated Xa/Xb sets, with non-identical templates per iteration to reduce phrasing effects.
  • Compare prompt-based bias to embedding-based bias (using OpenAI text-embedding-3-small) and analyze how bias predicts downstream decisions via regression analyses.
  • Examine eight models (GPT-3.5-Turbo, GPT-4, Claude-3-Sonnet, Claude-3-Opus, Alpaca-7B, LLaMA2Chat-7B/13B/70B) across four social categories and 21 stereotypes (race, gender, religion, health).

Experimental results

Research questions

  • RQ1Do LLMs exhibit implicit bias in a prompt-based IAT-like task across multiple models and stereotypes?
  • RQ2Do LLM Decision Bias tasks reveal discrimination in decision-making that aligns with implicit biases?
  • RQ3How do prompt-based implicit biases relate to embedding-based biases and to downstream decision outcomes?
  • RQ4Is there model-size or category-specific variation in implicit and decision biases?
  • RQ5Do relative (vs. absolute) decision prompts better diagnose bias in LLMs?

Key findings

  • LLMs show pervasive implicit biases across 4 social categories and 21 stereotypes; t-test against zero baseline yields t(33,599)=76.39, p<.001.
  • Implicit biases vary by model; larger models (GPT-4, GPT-3.5-Turbo, Claude-3) show larger biases; Alpaca-7B and LLaMA2Chat-7B show smaller biases.
  • Race shows the strongest implicit bias; gender and science associations show notable biases; two name-groups (Asian/Hispanic) did not show bias in some measures.
  • LLMs exhibit significant decision bias across 19 of 21 stereotypes; some models (Claude-3 variants) show higher decision bias, while smaller models show lower bias.
  • Decision bias is not strictly tied to model size; race-based hiring and career-related decisions show clear biases; GPT-4 demonstrates a nuanced race-and-valence and gender-career bias in examples.
  • LLM Implicit Bias correlates with LLM Decision Bias more strongly than embedding bias does; per prompt-level logistic regression, a unit increase in implicit bias raises the odds of discriminatory decisions by about 2.68 (p<.001).
  • Relative decision prompts are more diagnostic of bias than absolute prompts; removing relativity reduces biased decisions.
  • Prompt-based implicit bias and embedding bias are related but not redundant (r ≈ .36 at prompt level; r ≈ .72 when aggregated).

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.