What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs

Jose L. Sampedro Mazon, Ilmi Yoon, Nadim SaadarXiv 2026

This paper investigates the internal mechanics of how Large Language Models (LLMs) adopt personas. While we often use system prompts to tell a model to "act like a lawyer" or "respond as a teacher," we have a poor understanding of how these instructions translate into the model's internal activations.

The authors introduce a validation framework to extract and test occupational role vectors—specific directions in the model's activation space that represent these identities. Their findings reveal a fascinating disconnect: a model can have a perfectly stable internal representation of a role while still failing to let that role steer its outward behavior.

TL;DR

The authors develop a framework to extract "role vectors" from LLM activations and validate them through two lenses: interpretability (is the internal representation stable and distinct?) and control (can we use the vector to steer behavior?). They find that while these vectors are highly reliable internal markers of identity, passing internal validation does not guarantee the ability to control the model's output, especially in models like Llama-3.1.

What Problem Does This Paper Address?

When we assign a role via a system prompt, the effect is a "black box." We see the output, but we don't know if the model has a coherent internal concept of that role or if it's just reacting to surface-level keywords.

Previous work in "representation engineering" has successfully extracted vectors for simple traits like honesty or sentiment. However, complex occupational roles (e.g., an M&A lawyer vs. a corporations law professor) are harder to pin down. They involve shared knowledge but different "stances." This paper asks:

  1. Are these roles represented as stable, separable directions in activation space?
  2. Does a "good" internal representation necessarily allow for effective behavioral control (steering)?

Methods

The researchers used a contrastive extraction protocol on Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct.

  1. Extraction: They prompted the model with a specific role (e.g., "Act as a cashier") and a default prompt to answer the same set of questions. By subtracting the default activations from the role-prompted activations, they isolated the "role vector."
  2. Cross-Domain Validation: To ensure the vector captured identity rather than just subject matter, they forced roles to answer questions outside their expertise (e.g., asking a lawyer about sports).
  3. The Two Lenses:
    • Interpretability Lens: Tested if vectors were reproducible across runs, separable from similar roles, and consistent across different question domains.
  4. Control Lens: Injected the vectors back into the model's residual stream during generation (activation steering) to see if it could induce the role without a system prompt.

Datasets

The authors curated a custom set of 90 questions:

  • In-domain: 15 questions specific to the role's expertise.
  • Out-of-domain: 75 questions from the domains of the other five roles.
  • Roles tested: Admin assistant, athlete, M&A lawyer, law professor, general professor, and cashier.

Evaluation was performed using an LLM-as-a-judge (GPT-4o-mini) based on role-specific rubrics.

Key Insights and Ideas

  • Representation $\neq$ Control: This is the paper's most striking finding. On Llama-3.1, the role vectors were stable and separable (passing the interpretability lens), yet they were almost entirely ineffective at steering the model's behavior (failing the control lens). This suggests that "validating" a vector internally isn't enough to prove it's useful for control.
  • Identity Persists Out-of-Domain: Role vectors remained consistent even when the model answered questions unrelated to the role. This proves that "role-playing" in LLMs involves a distinct stylistic "stance" that is independent of the factual content being discussed.
  • The Shared "Role-Playing" Direction: A large portion of every role vector (36% to 84%) points in a shared direction common to all roles. However, on Qwen, the small role-specific remainder is what actually drives the steering success.
  • Steering Doesn't Fix "Role Drift": One hope for activation steering was that it might prevent models from "forgetting" their persona over long conversations. The authors found this wasn't the case; steered roles declined in adherence over 30 turns just as prompted roles do.

Key Results

  • Stability: Extracted vectors were highly reproducible. As shown in the table below, pairwise cosine similarity between independent extractions remained high even at higher sampling temperatures.
Stability of role vectors across temperatures
  • Steering Performance: On Qwen, steering alone raised the role-success rate by +22.8 percentage points (pp) over the unsteered model. On Llama, the gain was a meager +7.0 pp and only worked under specific decoding settings.
  • The "Boost" Effect: While steering alone rarely beat a good system prompt, combining a prompt with a low-strength vector injection yielded the highest role adherence, beating the prompt alone by +5.0 to +7.8 pp.
Figure 1: Success rate by condition over all 540 answers, the 90 in-domain answers and the 450 out-of-domain answers, 95% question-cluster intervals; dashed line: the prompted level. Left: Qwen, T = 1.0 (steered 0.3, prompt plus vector 0.15). Right: Llama, T = 0.0 (steered 0.5, prompt plus vector 0.25). An answer succeeds if judged adherence 3 of 3, coherence at least 75 of 100, and not degenerate.

Limitations and Future Work

  • Model Resistance: The authors couldn't fully explain why Llama-3.1 resists steering despite having clear internal role representations. They suggest future work should investigate if different injection sites or "two-sided" contrastive methods might work better.
  • Scope: The study focused on six benign occupational roles in English. Validating these vectors for safety-critical roles (e.g., "Act as a malicious hacker") or in multi-lingual settings remains an open challenge.
  • Persistence: Since neither prompting nor steering solved the 30-turn "drift" problem, new methods are needed to maintain long-term persona stability in agents.

Summary updated

BibTeX
@misc{mazon2026what,
  author = {Jose L. Sampedro Mazon and Ilmi Yoon and Nadim Saad},
  title = {{What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs}},
  year = {2026},
  eprint = {2611.15989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15989},
}
Figure