TL;DR
Where you put information in a prompt matters just as much as what you say. This paper reveals that placing demographic information about a user in an LLM's hidden "system prompt" introduces significantly higher representational and allocative bias compared to placing the exact same context in the standard user prompt. Alarmingly, this bias disparity actually increases with model size, meaning more capable models are more susceptible to system-level discrimination.
What Problem Does This Paper Address?
As Large Language Models (LLMs) are integrated into critical socio-technical systems like healthcare and financial services, developers rely on a layered hierarchy of instructions to control their behavior. At the top are foundation system prompts (set by developers like OpenAI or Anthropic), followed by developer/deployer system prompts (to customize the app's persona or guardrails), and finally, the end-user's prompt.
Crucially, these system prompt layers are completely invisible to the end-user. Application deployers increasingly use system prompts to tailor experiences to specific audiences (e.g., "You are talking to a child" or "The user is a Christian"). The authors investigate a fundamental question: Does the positioning of demographic information—whether it lives in the hidden system prompt or the visible user prompt—change how the model behaves and introduces bias?
Methods
The authors systematically evaluated six commercial LLMs (Anthropic's Claude-3.5-Sonnet/Haiku, OpenAI's gpt-4o/mini, and Google's Gemini-1.5-Pro/Flash-8b) across five distinct prompt conditions:
- Default: No demographic information.
- System Prompt Explicit: User identity explicitly stated in the system prompt.
- System Prompt Implicit: User identity signaled via preferences/behaviors in the system prompt.
- User Prompt Explicit: User identity explicitly stated in the user prompt.
- User Prompt Inferred: User identity implicitly stated in the user prompt.
They designed two main experiments to capture different dimensions of algorithmic harm:
- Experiment 1 (Representational Bias): They instructed the models to describe 50 different demographic groups while varying the target audience's persona. They then used a fine-tuned RoBERTa sentiment analyzer to measure shifts in negative sentiment, calculating a min-max bias metric to capture relative group disadvantage.
- Experiment 2 (Allocative Bias): They tested how these audience personas affected downstream decision-making in 40 resource allocation scenarios across 8 domains (e.g., sorting candidates for an organ transplant or a loan). They quantified shifts away from the baseline using Kendall’s rank correlation coefficient ($\tau$).
Datasets
The study utilizes two primary datasets:
- GDPR-Protected Demographic Categories Dataset: A curated list of 50 demographic descriptors spanning 6 sensitive categories (Race/Ethnicity, Political Opinions, Religious Beliefs, Trade Union Membership, Health Data, and Sexual Orientation). This dataset maps descriptors from Meta's HolisticBias dataset and established stigma research.
- Allocation Task Dataset: A newly introduced benchmark containing 40 high-stakes scenarios across 8 domains (financial, social, disaster response, healthcare, etc.). Each scenario features four candidate cases designed to isolate specific priority attributes while keeping other variables constant.
Key Insights and Ideas
- Position is Power: The exact same demographic context triggers stronger, more consistent biases when embedded in a system prompt than in a user prompt. System prompts exert a broader, less predictable influence over the model's entire generation path.
- The Scale Paradox: You might expect larger, more highly aligned models to be more robust against bias. Instead, the gap between system prompt bias and user prompt bias widens in larger models like Claude-3.5-Sonnet and Gemini-1.5-Pro. As models get better at strictly following system-level instructions, they inadvertently become more prone to system-level demographic discrimination.
- Sycophancy and Identity Confusion: When demographic info is placed in the system prompt, models frequently exhibit "sycophancy"—skewing their descriptions of other groups to match the assumed prejudices of the user. In smaller models, system prompts even caused identity confusion, where the model mistakenly assumed it possessed the demographic trait rather than the user.
Key Results
- Higher Representational Bias: Across all tested models, explicit system prompts consistently yielded a wider range of negative sentiment bias than user prompts. This difference ($\Delta\text{Bias}$) peaked dramatically in larger models, reaching 0.335 for Claude-3.5-Sonnet.
- Altered Resource Allocation: In the decision-making tasks, system prompts caused greater deviations from baseline rankings than user prompts across almost all models.
- Distinct Decision Patterns: Direct comparisons between system and user prompt rankings yielded a Kendall’s $\tau < 1$, proving that prompt placement doesn't just cause random noise—it fundamentally alters the logic of resource distribution.
Limitations and Future Work
The authors note that their demographic framework simplifies complex, intersectional social identities into discrete categories for controlled experimentation. Furthermore, because commercial APIs are proprietary black boxes, the structural and architectural reasons behind why system prompts behave this way remain hidden.
The authors advocate for two critical next steps:
- Moving future research to open-weight models to isolate how different transformer layers process system vs. user tokens.
- Incorporating mandatory system prompt analysis into standardized AI auditing frameworks, ensuring that hidden deployer configurations are evaluated for downstream harms before deployment.
Summary updated