Designing Role Vectors to Improve LLM Inference Behaviour

Daniele Potertì, Andrea Seveso, Fabio Mercorio
2/17/2025
cs.CL

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{potert2025designing,
  title  = {Designing Role Vectors to Improve LLM Inference Behaviour},
  author = {Daniele Potertì and Andrea Seveso and Fabio Mercorio},
  year   = {2025},
  eprint = {2502.12055},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12055v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12055.svg)](https://codeofpaper.com/paper/2502.12055)

Discussion