What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs
Abstract
Applications built on large language models assign the model a role through its system prompt, intending to shape how it responds for their use case. We introduce a validation framework for extracting and injecting occupational role vectors, activation-level directions that capture how someone in a given occupational role would distinctively respond to a task or question. We validate these vectors through two complementary lenses, on Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct. The interpretability lens asks whether each vector is a stable, separable, domain-consistent representation of its role: extracted vectors are highly reproducible across repeated runs and sampling temperatures, remain separable even for very similar roles, and agree more with themselves across in-domain and out-of-domain questions than with other roles' signal. The control lens asks whether injecting a role vector during generation makes the model express the role, and sustain it over a conversation, as well as a role prompt does. On Qwen, injecting the vector alone makes the model express the intended role substantially more often than unsteered, but at best matches a role prompt; on both models, adding the vector to the prompt strengthens the role in single answers but did not slow the role's decline over 30 turns. Together, the two lenses show why both are needed: out of domain the role is expressed only subtly, yet the activations still encode it; and a vector that is stable and separable can still barely steer the model's behavior.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.LG
- Comments
- 11 pages main text, 35 pages total including references and appendices. Code and data: https://doi.org/10.5281/zenodo.23992923
Related papers
Do Rule-Based Tools Help LLMs Translate Endangered Uralic Languages in the Prompt or over MCP?
Shared title terminologycs.CLIaroslav Chelombitko, Mika Hämäläinen
From Facts to Personas: Interpretable Role Unlearning in LLMs via Mixture-of-Experts
Shared title terminologycs.CLRuihong Zeng, Puning Yang, Jinghui Zhang et al.
Creating Steering Vectors via Input Optimisation
Shared title terminologycs.CLBatuhan Akar
Faithful Persona Steering under Incongruity via Dual-Stream Refinement
Shared title terminologycs.CLYu-An Chu, Jen-Ren Pong, Chia-Yao Yeh et al.
Can LLM-Simulated Respondents Pre-Test Survey Questions? Evidence From Preregistered Prospective Validation
Shared title terminologycs.CLSristi Bafna, Mac MacComas, Michael Bader et al.
Serialization and the Character-System: Measuring Narrative Concentration in French Fiction (1800--1940)
Shared title terminologycs.CLJean Barré, Antoine Bourgois, Thierry Poibeau