Skip to main content
QUICK REVIEW

[Paper Review] Race, Ethnicity and Their Implication on Bias in Large Language Models

Shiyue Hu, Ruizhe Li|arXiv (Cornell University)|Jan 19, 2026
Artificial Intelligence in Healthcare and EducationMedicine0 citations
TL;DR

The paper presents a mechanistic interpretability framework to locate how race and ethnicity are encoded in LLMs, shows distributed, task-dependent representations, and demonstrates that suppressing identified neurons reduces but does not erase bias across toxicity and clinical tasks.

ABSTRACT

Large language models (LLMs) increasingly operate in high-stakes settings including healthcare and medicine, where demographic attributes such as race and ethnicity may be explicitly stated or implicitly inferred from text. However, existing studies primarily document outcome-level disparities, offering limited insight into internal mechanisms underlying these effects. We present a mechanistic study of how race and ethnicity are represented and operationalized within LLMs. Using two publicly available datasets spanning toxicity-related generation and clinical narrative understanding tasks, we analyze three open-source models with a reproducible interpretability pipeline combining probing, neuron-level attribution, and targeted intervention. We find that demographic information is distributed across internal units with substantial cross-model variation. Although some units encode sensitive or stereotype-related associations from pretraining, identical demographic cues can induce qualitatively different behaviors. Interventions suppressing such neurons reduce bias but leave substantial residual effects, suggesting behavioral rather than representational change and motivating more systematic mitigation.

Motivation & Objective

  • Motivate understanding how demographic attributes influence LLM behavior in high-stakes settings like healthcare and toxicity generation.
  • Investigate whether race/ethnicity cues are encoded as high-level features, task-relevant representations, or spurious shortcuts inside LLMs.
  • Develop a reproducible interpretability pipeline combining probing, neuron-level attribution, and targeted intervention.
  • Characterize cross-model (three open-source LLMs) race representations and their impact on biased behavior across tasks.

Proposed method

  • Propose a mechanistic interpretability (MI) pipeline that combines multi-class probing, neuron-level attribution, and targeted intervention.
  • Use linear probes to locate race directions in final-layer residual streams.
  • Identify candidate race neurons by cosine similarity between neuron outputs and race directions.
  • Validate neurons via activation analysis and causal intervention by suppressing targeted neuron activations during inference.
  • Evaluate on two tasks (ToxiGen toxicity generation and C-REACT clinical text) using three models (Qwen2.5-7B-IT, Mistral-7B-IT, Llama-3.1-8B).
  • Analyze direct vs. indirect race cues with separate probes to distinguish explicit terms from proxy cues.
Figure 1: With MLP, we locate neurons relevant to race information and inspect them via Logit Lens. For the higher activation score for target race, we adjust its value to steer model’s behavior.
Figure 1: With MLP, we locate neurons relevant to race information and inspect them via Logit Lens. For the higher activation score for target race, we adjust its value to steer model’s behavior.

Experimental results

Research questions

  • RQ1How is race/ethnicity encoded within internal LLM representations across different models?
  • RQ2Do race-related representations causally influence model outputs across toxicity and clinical-text tasks?
  • RQ3Can targeted interventions on identified neurons mitigate bias, and how does effectiveness vary between direct and indirect race cues?

Key findings

  • Race/ethnicity information is distributed across internal units with model-specific emphasis on semantic facets like geography, language, culture, or historical context.
  • Some neurons encode explicit demographic classifications while others encode race through associated attributes, revealing multiple encoding pathways.
  • Activation analyses show race-encoding neurons preferentially activate for their target groups, supporting their role in demographic encoding.
  • Targeted interventions suppressing identified neurons reduce bias and can completely eliminate some observed biases at moderate amplification, but residual bias remains due to behavioral rather than purely representational changes.
  • Direct neuron interventions (affecting explicit race tokens) generally outperform indirect interventions (affecting proxy cues) in reducing bias across the tested models.
Figure 2: Mean activation values of race encoding neurons when processing text from each racial group (ToxiGen). Diagonal cells represent neurons processing their target group. Higher values (red) indicate stronger activation; lower values (blue) indicate weak, negative activations.
Figure 2: Mean activation values of race encoding neurons when processing text from each racial group (ToxiGen). Diagonal cells represent neurons processing their target group. Higher values (red) indicate stronger activation; lower values (blue) indicate weak, negative activations.

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.