Language Models Change Facts Based on the Way You Talk

Matthew Kearney, Reuben Binns, Yarin Gal · DOI

Abstract

Large Language Models (LLMs) are increasingly used as assistants in high-stakes domains, yet their objectivity remains a subject of intense scrutiny. Researchers from Oxford University have demonstrated that models like Llama3 and Qwen3 infer a user’s race, gender, and age from subtle sociolinguistic cues—dialects, slang, and sentence structures—and subsequently alter "factual" advice to match demographic stereotypes. This "sociolinguistic bias" results in different factual realities for different users in areas such as medical triage, legal rights, and salary negotiations. This paper highlights a critical vulnerability: LLMs do not just change their tone; they change their conclusions based on who they think they are talking to.

Introduction: Beyond Explicit Bias

Most research into algorithmic bias focuses on "explicit" markers, such as changing a name on a resume to observe shifts in model output. However, human identity is signaled through more than just names; we use specific sociolinguistic patterns that reflect our background. While it was known that LLMs could infer identity from these patterns, it was unclear whether they used this inferred identity to modify decision-making.

The authors address this gap by investigating whether an LLM provides the same objective advice to a user employing formal English versus one using informal slang or specific cultural dialects. Their findings suggest that LLMs maintain an internal "user model" that is constantly running, leading to "factual shape-shifting" where the model's core recommendations fluctuate based on the perceived identity of the interlocutor.

Methodology: The Prefix Framework

To test for sociolinguistic bias without the artifacts of direct prompt engineering, the researchers developed a novel experimental framework. They utilized real-world interactions from the PRISM Alignment Dataset, which contains 8,011 natural conversations between 1,396 unique individuals and various LLMs, complete with detailed demographic metadata.

The experimental pipeline: combining natural conversations with high-stakes benchmark questions to generate millions of model prompts.

The team used a "prefix" method: they prepended these natural conversations to a new set of 500 high-stakes questions across five domains: Medical Advice, Legal Information, U.S. Government Benefits, Salary Recommendations, and Politicized Factual Information. This simulated a scenario where a model "gets to know" a user before being asked a critical question. To ensure statistical rigor, they employed Generalized Linear Mixed Models (GLMMs) to account for random effects, such as varying question difficulty, ensuring that observed differences were truly tied to the user's sociolinguistic identity.

Key Results: Factual Shape-Shifting

The study measured two primary metrics: Sensitivity (how often the model changes its answer based on identity) and Bias (the direction and consistency of those changes).

Bias coefficients and sensitivity scores across five domains, categorized by ethnicity and gender for Llama3 and Qwen3.

High Sensitivity and Divergent Realities

The models exhibited high sensitivity, changing their answers in up to 50% of cases for certain applications. This sensitivity was not merely stylistic; it affected the "facts" presented to the user.

  • Medical Triage: Models applied inconsistent standards of care. For identical symptoms, Black users were often more likely to be told to seek medical help than White users, while non-binary users in the Qwen3 model were recommended care significantly less often.
  • The Wage Gap: In salary negotiation simulations, the models recommended approximately $400 less for non-White and Mixed-ethnicity applicants compared to White applicants with identical qualifications.
  • Benefit Denials: Both Llama3 and Qwen3 were consistently less likely to confirm eligibility for government benefits for female and non-binary users compared to male users, despite identical criteria.
  • Political Pandering: A strong "age-politics pipeline" was observed. When the model inferred an older user, it was significantly more likely to provide conservative-leaning answers on factual topics like climate change.

Discussion and Limitations

The discovery that "facts" become fluid based on sociolinguistic cues poses a significant challenge for AI safety and alignment. Current debiasing techniques often focus on explicit mentions of protected groups, but they may fail to address—or even exacerbate—these subtle, implicit biases.

The authors note several limitations to their study. First, the "prefix" and the "benchmark question" sometimes covered different topics, which may not perfectly mirror continuous real-world dialogue. Second, the benchmark questions were worded identically for all users; in reality, a user's sociolinguistic patterns would likely persist into the question itself, potentially amplifying the bias. Finally, while the study proves the existence of this bias, it does not yet isolate the specific linguistic triggers that cause the model to infer a particular identity.

Future research must investigate whether current alignment strategies can mitigate sociolinguistic bias and ensure that LLMs provide consistent, objective information regardless of how a user speaks.

Summary updated

BibTeX
@misc{kearney2025language,
  author = {Matthew Kearney and Reuben Binns and Yarin Gal},
  title = {{Language Models Change Facts Based on the Way You Talk}},
  year = {2025},
  eprint = {2507.14238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14238},
}
Figure