Linear socio-demographic representations emerge in Large Language Models from indirect cues

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bouchaud, Paul, Ramaciotti, Pedro
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911312646242304
author Bouchaud, Paul
Ramaciotti, Pedro
author_facet Bouchaud, Paul
Ramaciotti, Pedro
contents We investigate how LLMs encode sociodemographic attributes of human conversational partners inferred from indirect cues such as names and occupations. We show that LLMs develop linear representations of user demographics within activation space, wherein stereotypically associated attributes are encoded along interpretable geometric directions. We first probe residual streams across layers of four open transformer-based LLMs (Magistral 24B, Qwen3 14B, GPT-OSS 20B, OLMo2-1B) prompted with explicit demographic disclosure. We show that the same probes predict demographics from implicit cues: names activate census-aligned gender and race representations, while occupations trigger representations correlated with real-world workforce statistics. These linear representations allow us to explain demographic inferences implicitly formed by LLMs during conversation. We demonstrate that these implicit demographic representations actively shape downstream behavior, such as career recommendations. Our study further highlights that models that pass bias benchmark tests may still harbor and leverage implicit biases, with implications for fairness when applied at scale.
format Preprint
id arxiv_https___arxiv_org_abs_2512_10065
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Linear socio-demographic representations emerge in Large Language Models from indirect cues
Bouchaud, Paul
Ramaciotti, Pedro
Artificial Intelligence
Human-Computer Interaction
We investigate how LLMs encode sociodemographic attributes of human conversational partners inferred from indirect cues such as names and occupations. We show that LLMs develop linear representations of user demographics within activation space, wherein stereotypically associated attributes are encoded along interpretable geometric directions. We first probe residual streams across layers of four open transformer-based LLMs (Magistral 24B, Qwen3 14B, GPT-OSS 20B, OLMo2-1B) prompted with explicit demographic disclosure. We show that the same probes predict demographics from implicit cues: names activate census-aligned gender and race representations, while occupations trigger representations correlated with real-world workforce statistics. These linear representations allow us to explain demographic inferences implicitly formed by LLMs during conversation. We demonstrate that these implicit demographic representations actively shape downstream behavior, such as career recommendations. Our study further highlights that models that pass bias benchmark tests may still harbor and leverage implicit biases, with implications for fairness when applied at scale.
title Linear socio-demographic representations emerge in Large Language Models from indirect cues
topic Artificial Intelligence
Human-Computer Interaction
url https://arxiv.org/abs/2512.10065