设计角色向量以改善 LLM 推理行为
Designing Role Vectors to Improve LLM Inference Behaviour
AI总结:
本文提出从模型激活构建 29 个角色向量,并通过激活添加与方向消融验证其能定向提升 LLM 相关领域性能,效果优于人格提示。
摘要:
人格对大语言模型(LLM)的影响已得到广泛研究,但其对性能的直接影响仍不确定。本工作探索了一种通过角色向量引导 LLM 行为的新方法,作为基于人格的提示的替代方案。我们从模型激活中构建了 29 个角色向量,并评估它们对多个领域基准性能的影响。我们的分析考察这些向量能否有效引导模型获得面向特定领域的专业能力。我们测量了两种关键干预:(i)激活添加,用于强化角色特定方向;(ii)方向消融,用于移除这些方向。在成熟基准上的结果表明,角色向量确实会影响模型行为,在相关领域提升任务性能,同时仅对不相关任务产生轻微影响。这进而表明,操纵模型内部表征对结果的影响大于基于人格的提示。
英文摘要:
The influence of personas on Large Language Models (LLMs) has been widely studied, yet their direct impact on performance remains uncertain. This work explores a novel approach to guiding LLM behaviour through role vectors, an alternative to persona-based prompting. We construct 29 role vectors derived from model activations and evaluate their impact on benchmark performance across multiple domains. Our analysis investigates whether these vectors can effectively steer models toward domain-specific expertise. We measure two key interventions: (i) activation addition, which reinforces role-specific directions, and (ii) directional ablation, which removes them. Results on well-established benchmarks indicate that role vectors do, in fact, influence model behaviour, improving task performance in relevant domains while marginally affecting unrelated tasks. This, in turn, suggests that manipulating internal model representations has a greater impact on outcomes than persona-based prompting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。