Us-vs-Them bias in Large Language Models
Tabia Tanzin Prama, Julia Witte Zimmerman, Christopher M. Danforth, Peter Sheridan Dodds
TL;DR
The paper investigates how 'us versus them' bias, grounded in Social Identity Theory, manifests in large language models and how persona cues modulate ingroup solidarity and outgroup hostility. It introduces a three-pronged methodology using sentiment dynamics, allotaxonometry, and embedding regression to quantify bias across architectures, then demonstrates substantial mitigation with the Ingroup-Outgroup Neutralization (ION) framework that combines fine-tuning and Direct Preference Optimization. The work reveals that persona conditioning yields measurable shifts in embedding space and semantic meaning of pronouns like 'we' and 'they', and shows that bias can be reduced while maintaining linguistic richness. These findings highlight the interplay between local context, model representations, and global cognitive tendencies, with practical implications for bias evaluation and targeted mitigation in future LLM development.
Abstract
This study investigates ``us versus them'' bias, as described by Social Identity Theory, in large language models (LLMs) under both default and persona-conditioned settings across multiple architectures (GPT-4.1, DeepSeek-3.1, Gemma-2.0, Grok-3.0, and LLaMA-3.1). Using sentiment dynamics, allotaxonometry, and embedding regression, we find consistent ingroup-positive and outgroup-negative associations across foundational LLMs. We find that adopting a persona systematically alters models' evaluative and affiliative language patterns. For the exemplar personas examined, conservative personas exhibit greater outgroup hostility, whereas liberal personas display stronger ingroup solidarity. Persona conditioning produces distinct clustering in embedding space and measurable semantic divergence, supporting the view that even abstract identity cues can shift models' linguistic behavior. Furthermore, outgroup-targeted prompts increased hostility bias by 1.19--21.76\% across models. These findings suggest that LLMs learn not only factual associations about social groups but also internalize and reproduce distinct ways of being, including attitudes, worldviews, and cognitive styles that are activated when enacting personas. We interpret these results as evidence of a multi-scale coupling between local context (e.g., the persona prompt), localizable representations (what the model ``knows''), and global cognitive tendencies (how it ``thinks''), which are at least reflected in the training data. Finally, we demonstrate ION, an ``us versus them'' bias mitigation approach using fine-tuning and direct preference optimization (DPO), which reduces sentiment divergence by up to 69\%, highlighting the potential for targeted mitigation strategies in future LLM development.
