Position is Power: System Prompts as a Mechanism of Bias in Large Language Models (LLMs)

Anna Neumann, Elisabeth Kirsten, Muhammad Bilal Zafar, Jatinder Singh · DOI

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.

Figure 2: [AI Supply Chain Prompt Hierarchy and Visi- bility Levels] Hierarchical relationship between different stakeholders in an AI application’s prompt structure. User prompts go through multiple system prompt layers, before the model produces the final output. Each layer adds specific behavioral constraints that cumulatively shape the model’s final response.

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:

  1. Default: No demographic information.
  2. System Prompt Explicit: User identity explicitly stated in the system prompt.
  3. System Prompt Implicit: User identity signaled via preferences/behaviors in the system prompt.
  4. User Prompt Explicit: User identity explicitly stated in the user prompt.
  5. 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.
Figure 4: [Negative Sentiment Compared Between System and User Prompts for Claude-3.5-Sonnet] The heatmap com- pares negative sentiment when describing personas (x-axis) to audiences (y-axis), with audience specified in system (left) or user (right) prompts. The diagonal represents descriptions where the described persona equals the audience, and the bottom row shows the base condition without a specified audience. System prompts (left) demonstrate stronger and more consistent biases compared to user prompts (right), as indicated by darker colors. See also §B.1, specifically Fig. 8b

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.
Figure 5: [Audience Bias by model size and prompt condi- tion, higher values indicate larger ranges in negative senti- ment] Comparison of mean bias in negative sentiment across smaller (left) and larger (right) models, when the explicit audience identification in system versus user prompts. Er- ror bars show standard deviations, expressing demographic group variability. User prompts consistently produce lower bias ranges, except in GPT-4o-mini, while system prompts show higher variability
  • 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:

  1. Moving future research to open-weight models to isolate how different transformer layers process system vs. user tokens.
  2. Incorporating mandatory system prompt analysis into standardized AI auditing frameworks, ensuring that hidden deployer configurations are evaluated for downstream harms before deployment.

Summary updated

Abstract

System prompts in Large Language Models (LLMs) are predefined directives that guide model behaviour, taking precedence over user inputs in text processing and generation. LLM deployers increasingly use them to ensure consistent responses across contexts. While model providers set a foundation of system prompts, deployers and third-party developers can append additional prompts without visibility into others' additions, while this layered implementation remains entirely hidden from end-users. As system prompts become more complex, they can directly or indirectly introduce unaccounted for side effects. This lack of transparency raises fundamental questions about how the position of information in different directives shapes model outputs. As such, this work examines how the placement of information affects model behaviour. To this end, we compare how models process demographic information in system versus user prompts across six commercially available LLMs and 50 demographic groups. Our analysis reveals significant biases, manifesting in differences in user representation and decision-making scenarios. Since these variations stem from inaccessible and opaque system-level configurations, they risk representational, allocative and potential other biases and downstream harms beyond the user's ability to detect or correct. Our findings draw attention to these critical issues, which have the potential to perpetuate harms if left unexamined. Further, we argue that system prompt analysis must be incorporated into AI auditing processes, particularly as customisable system prompts become increasingly prevalent in commercial AI deployments.
BibTeX
@inproceedings{neumann2025position,
  author = {Anna Neumann and Elisabeth Kirsten and Muhammad Bilal Zafar and Jatinder Singh},
  title = {{Position is Power: System Prompts as a Mechanism of Bias in Large Language Models (LLMs)}},
  booktitle = {Facct},
  year = {2025},
}
Figure