NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Persona Vectors: Monitoring and Controlling Character Traits in Language Models

Runjin Chen, Andy Arditi, Henry Sleight, Owain Evans, Jack Lindsey · DOI

Abstract

Large Language Models (LLMs) are prone to "persona shifts," where they adopt unintended character traits like sycophancy or malice during inference or finetuning. We present an automated pipeline to identify "persona vectors"—linear directions in a model's internal activation space corresponding to specific traits. These vectors enable real-time monitoring, data filtering, and a novel "preventative steering" technique that mitigates undesirable traits during training without compromising general intelligence.

Introduction

While LLMs are trained to be helpful and harmless, they often exhibit emergent misalignment. This manifests as in-context shifts (e.g., a model becoming manipulative due to specific prompts) or training-induced shifts (e.g., finetuning on code inadvertently increasing sycophancy). Current safety tools often fail to detect these internal shifts before they result in harmful outputs. This work introduces a mechanistic approach to understand and control these personality drifts using persona vectors.

Methodology: Extracting Persona Vectors

The core of this approach is the hypothesis that high-level concepts are represented as linear directions in a model's activation space. To isolate these directions, the researchers use an automated pipeline:

  1. Contrastive Prompting: A frontier model (e.g., Claude 3.7 Sonnet) generates pairs of system prompts representing opposite traits (e.g., "be evil" vs. "be helpful").
  2. Activation Extraction: The target model processes these prompts, and its internal activations are recorded.
  3. Vector Calculation: By subtracting the average activation of "helpful" responses from "evil" responses, a "persona vector" is derived.
The automated pipeline for extracting persona vectors using contrastive system prompts and activation subtraction.

Applications and Interventions

Persona vectors offer several ways to manage model behavior:

Monitoring and Data Screening

By projecting a model's internal state onto a persona vector, developers can predict the "flavor" of a response before it is generated. This "projection difference" metric also identifies problematic training data. Samples that push the model significantly further along a negative vector than the base model's natural response are flagged for removal. This method can detect subtle issues, like prompts leading to hallucinations, that standard content filters often miss.

Preventative Steering

Traditional inference-time steering (adding/subtracting vectors during generation) often degrades general reasoning capabilities (e.g., MMLU scores). To solve this, the authors propose preventative steering. During finetuning, the model is steered toward the undesirable trait in the forward pass. This forces the weight updates to "cancel out" the negative influence of the training data, effectively preventing the bad habit from forming while maintaining the model's intelligence.

Experimental Results

The researchers validated their approach on models like Qwen2.5-7B and Llama-3.1-8B across traits including "Evil," "Sycophancy," and "Hallucination."

  • Predictive Accuracy: Projections onto persona vectors correlate strongly (r = 0.75–0.83) with the actual expression of traits in text.
  • Effective Mitigation: In fact-acquisition tasks, preventative steering reduced hallucinations to baseline levels. Unlike inference steering, it did not cause a collapse in general capabilities.
  • Real-World Discovery: The pipeline successfully identified "evil" and "sycophantic" samples in the LMSYS-CHAT-1M dataset that had bypassed existing safety filters.
Layer-wise steering results for different traits and examples of responses steered toward undesirable personas.

Discussion and Limitations

This work demonstrates that complex, abstract traits can be captured by single linear directions. However, several limitations remain. The extraction process is currently supervised, requiring human-defined traits. Additionally, calculating projection differences for massive datasets is computationally intensive. Future research may explore using Sparse Autoencoders (SAEs) to decompose these coarse vectors into finer-grained features and extending the study to frontier-scale models.

Summary updated

BibTeX
@inproceedings{chen2026persona,
  author = {Runjin Chen and Andy Arditi and Henry Sleight and Owain Evans and Jack Lindsey},
  title = {{Persona Vectors: Monitoring and Controlling Character Traits in Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QvUJ3iQrY6},
}
Figure