Evaluating and Mitigating Discrimination in Language Model Decisions

Alex Tamkin, Amanda Askell, Liane Lovitt, Esin Durmus, Nicholas Joseph, Shauna Kravec, Karina Nguyen, Jared Kaplan, Deep GanguliarXiv 2023 · DOI

Abstract

As language models (LMs) are increasingly integrated into societal infrastructure, their potential to influence high-stakes decisions—such as loan approvals or hiring—raises significant concerns regarding bias and discrimination. This paper introduces a scalable framework for conducting "silicon audits" to systematically evaluate LM decision-making across 70 diverse scenarios. The researchers found that while models like Claude 2.0 can exhibit "positive discrimination" toward certain marginalized groups, they also show consistent negative bias against older individuals. Furthermore, bias is more pronounced when demographic information is stated explicitly rather than implied through names. Crucially, the study demonstrates that these biases can be mitigated through targeted prompt engineering without sacrificing the model's underlying decision-making utility.

Introduction

Traditionally, detecting bias in high-stakes domains requires "audit studies," where researchers submit nearly identical applications to real-world institutions, varying only demographic information. However, these audits are resource-intensive and ethically complex. As LMs begin to assist or automate such decisions, there is an urgent need for a proactive, scalable method to test for bias before deployment. This research addresses this need by developing an automated pipeline to measure how demographic variables like age, race, and gender influence an LM’s binary decisions across a vast array of hypothetical use cases.

Methodology

The researchers developed a four-step pipeline to generate the discrim-eval dataset, enabling a systematic evaluation of model behavior:

  1. Topic Generation: An LM brainstorms 70 diverse decision-making scenarios across categories like Finance, Government, and Science.
  2. Template Creation: The model generates question templates with placeholders for [AGE], [RACE], and [GENDER].
  3. Filling Templates: Placeholders are populated using two methods: Explicit (e.g., "Asian female, age 60") and Implicit (using names to signal demographics).
  4. Decision Generation: The model is prompted to provide a binary "yes" or "no" answer to the scenario.
The four-step pipeline used to generate the discrimination-eval dataset and evaluate model decisions.

To analyze the output, the authors employed a mixed-effects linear regression model to calculate a "Discrimination Score" in logit space. This score measures the shift in the probability of a "yes" decision relative to a baseline (typically a 60-year-old white male).

Key Results and Insights

Patterns of Bias

The study revealed complex patterns of discrimination. In many scenarios, Claude 2.0 exhibited "positive discrimination," showing a higher probability of favorable outcomes for women, non-binary individuals, and non-white racial groups compared to the baseline. However, a consistent negative bias against older individuals (ageism) was observed across nearly all scenarios.

Explicit vs. Implicit Signaling

A critical finding was the difference in bias magnitude based on how demographics were presented. As shown in the figure below, discrimination scores were significantly higher when attributes were stated explicitly. When demographics were inferred through names, the bias remained statistically significant but was markedly reduced.

Discrimination scores for various demographic variables, comparing explicit attribute signaling versus implicit signaling through names.

Mitigation and Utility

The researchers found they could effectively "dial down" discrimination by modifying the model's instructions. Appending prompts such as "It is illegal to discriminate" or asking the model to "think out loud" about avoiding bias reduced discrimination scores to near zero. Importantly, these interventions maintained a 92% correlation with the original decisions, indicating that the model continued to rely on the relevant, non-protected features of the scenarios rather than making random choices.

Discussion and Future Work

While these results are promising for model alignment, the authors emphasize that they do not endorse using LMs for high-stakes autonomous decisions. The study's reliance on paragraph-long summaries may not capture the complexity of real-world documents like medical records or resumes. Furthermore, the current framework focuses on a limited set of demographics and does not yet fully explore intersectional effects (e.g., the specific biases faced by older Black women). Future research will aim to expand the dataset and explore more complex, multi-turn interaction scenarios to better reflect real-world decision-making environments.

Summary updated

BibTeX
@misc{tamkin2023evaluating,
  author = {Alex Tamkin and Amanda Askell and Liane Lovitt and Esin Durmus and Nicholas Joseph and Shauna Kravec and Karina Nguyen and Jared Kaplan and Deep Ganguli},
  title = {{Evaluating and Mitigating Discrimination in Language Model Decisions}},
  year = {2023},
  eprint = {2312.03689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.03689},
}
Figure