跳到正文
arXiv cs.AI· Jose L. Sampedro Mazon, Ilmi Yoon, Nadim Saad·· 3 小时前AI 评分43

系统提示词到底分配了什么角色?大语言模型职业角色向量的验证与引导研究

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

AI 导读

一项研究提出验证框架,用于提取和注入大语言模型中的职业角色向量——捕捉特定职业角色独特回应方式的激活层方向,并在 Qwen2.5-7B-Instruct 和 Llama-3.1-8B-Instruct 上验证。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: 11 pages main text, 35 pages total including references and appendices. Code and data: this https URL
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
Cite as: arXiv:2611.15989 [cs.CL]
  (or arXiv:2611.15989v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.15989

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Jose Sampedro Mazon [view email]
[v1] Wed, 11 Nov 2026 20:43:45 UTC (235 KB)

来源:arXiv cs.AI · arxiv.org