Tracing the Latent Threads: A Mechanistic Study of How LLMs Represent and Operationalize Race and Ethnicity Cues
cs.CL, cs.LG
Submitted: 2026-01-19
Updated: 2026-08-31
Comments: EMNLP 2026 Findings
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language models (LLMs) increasingly operate in high-stakes settings where demographic attributes such as race and ethnicity may be explicitly stated or implicitly suggested through textual cues.
Terminology
Abstract
Large language models (LLMs) increasingly operate in high-stakes settings where demographic attributes such as race and ethnicity may be explicitly stated or implicitly suggested through textual cues. 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 cues 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 sensitivity to demographic cues is distributed across internal units and varies substantially across models. These units often align with entangled semantic facets, including explicit group labels, geography, language, culture, and associations related to stereotypes. Interventions on selected units can change some biased prediction patterns, but substantial residual effects remain, suggesting that effective mitigation requires understanding distributed, task-specific mechanisms rather than manipulating a small set of identified neurons alone. Code: https://github.com/LARK-NLP-Lab/LLM-Bias-Interpretability.
Sources
- The Llama 3 Herd of Models
- Elucidating Mechanisms of Demographic Bias in LLMs for Healthcare
- Mistral 7B
- Can SAEs reveal and mitigate racial biases of LLMs in healthcare?
- Robustly Improving LLM Fairness in Realistic Settings via Interpretability
- Assessing Bias in Metric Models for LLM Open-Ended Generation Bias Benchmarks
- ChatGPT Exhibits Gender and Racial Biases in Acute Coronary Syndrome Management
- FairSteer: Inference Time Debiasing for LLMs with Dynamic Activation Steering
- Fairness Evaluation and Inference Level Mitigation in LLMs
- Bias patterns in the application of LLMs for clinical decision support: A comprehensive study
- GLU Variants Improve Transformer
- Understanding and Mitigating Gender Bias in LLMs via Interpretable Neuron Editing
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering