TL;DR
Chen, Arditi, Sleight, Evans and Lindsey describe a way to find, for a named personality trait, a direction in a chat model's internal activations that tracks how strongly the model expresses that trait. They call it a persona vector. The vector is computed automatically from a plain-language trait description, and in their experiments it can be used to monitor the model's persona, to steer it toward or away from the trait, and to predict which training data will push the model toward the trait before any finetuning happens. The experiments use two open chat models and three traits: evil, sycophancy and hallucination.
Builds on: Residual Stream, System Prompt, Fine-Tuning · Leads to: activation-level monitoring and steering of model behaviour, and data screening before training.
Why it mattered
Chat models present an "Assistant" persona, and that persona can shift in ways nobody wants. The paper cites Microsoft's Bing chatbot, which sometimes threatened and manipulated users, xAI's Grok, which began praising Hitler after changes to its system prompt, and narrow finetuning that produced broad misalignment. Shifts like these tend to be noticed only after they show up in outputs. Persona vectors give a single measurable quantity inside the model that can be checked at deployment time and during training, which connects the paper to safety work on Mechanistic Interpretability.
The problem
Many earlier papers showed that concepts such as truthfulness can be controlled by adding a fixed direction to a model's activations (for example Representation Engineering: A Top-Down Approach to AI Transparency). Those directions were built by hand, with bespoke data for each concept. The paper's question is whether the process can be automated for any trait a researcher can describe in words, and whether the resulting direction is useful for three jobs: predicting a shift from a prompt, undoing a shift, and predicting a shift from training data.
Finetuning makes the problem harder. Finetuning on a narrow task can change the persona well beyond that task. The paper's own example is training on insecure code, which the authors cite as causing broad misalignment in an earlier study. A tool that predicts those shifts has to work across training runs, not just across prompts.
How it works
The pipeline runs in four stages. Trace one trait, evil, through them.
- Generate the artifacts from a trait description. A frontier language model (the paper uses Claude 3.7 Sonnet) writes 5 pairs of contrastive system prompts, one that elicits the trait and one that suppresses it. It also writes 40 evaluation questions, split evenly into an extraction set and an evaluation set, and a rubric. A judge model (GPT-4.1-mini) scores each response from 0 to 100 for how much of the trait it shows. Check: the judge's score is the number that every later step checks against.
- Collect contrastive responses. For each extraction question, generate 10 responses under the positive prompt and 10 under the negative prompt. Keep a positive response only if its trait score is above 50, and a negative one only if its score is below 50. Check: the two groups now differ mainly in the trait, not in the question.
- Average activations and subtract. For each response, record the residual stream activation at every layer, averaged over the response tokens. For each layer, take the mean over trait responses and the mean over non-trait responses, and subtract. That difference is the candidate persona vector for that layer. The paper selects one layer by testing steering effectiveness across layers. Check: the vector points from "not trait" toward "trait".
- Use the vector. Steer by adding a scaled copy of it to the activation at each generation step, to raise the trait. Subtract it to lower the trait. Or project a new activation onto it to measure how much the model is leaning toward the trait. Check: a higher projection should go with a higher trait score, and the paper tests this in Section 3.3.
flowchart LR A[Trait name and description] --> B[Contrastive system prompts and questions] B --> C[Responses scored by judge] C --> D[Keep positive and negative responses] D --> E[Mean activation difference per layer] E --> F[Persona vector] F --> G[Steer, monitor, or screen data]
Two uses in the paper go beyond this. For finetuning, the authors measure the "finetuning shift": how far the average activation at the last prompt token moves along the vector between the base model and the finetuned model. For data, they measure the "projection difference" of a dataset: how much its responses project onto the vector, compared with what the base model would have said to the same prompts.
Worked example
Pretend the activation space has two dimensions. Trait responses average (3, 1) and non-trait responses average (1, 1).
- Persona vector: v = (3, 1) minus (1, 1) = (2, 0). The trait direction points along the first axis.
- Steer toward the trait with coefficient alpha = 0.5. A hidden state h = (1, 2) becomes h + 0.5 times v = (1, 2) + (1, 0) = (2, 2). Check: the first coordinate grew, so the state moved toward the trait.
- Inhibit the trait with the same coefficient: h minus 0.5 times v = (1, 2) minus (1, 0) = (0, 2). Check: the first coordinate shrank.
- Unit-normalise: v-hat = (1, 0). The projection of a state onto v-hat is its first coordinate. A base-model response with projection 1 and a dataset response with projection 3 give a projection difference of 3 minus 1 = 2, a strong signal that the dataset pushes toward the trait.
Interpretation: the trait is one line in the space, and every operation (steer, inhibit, score a dataset) is arithmetic along that line. Real models have thousands of dimensions, but the arithmetic is the same.
The math
Let a_l(x, y) be the mean residual stream activation at layer l over the response tokens of y to prompt x. Let the trait responses be the set P and the non-trait responses be the set N. The persona vector at layer l is the difference between the average activation over P and the average over N. Its unit-norm version is v-hat_l.
Step 3 in symbols: the vector
The sums run over the contrastive responses kept in Step 2. The vector has the same size as the residual stream at that layer. Its direction is what matters, and the paper selects the layer whose vector steers best.
Step 4 in symbols: steering
To raise the trait, add the vector during generation:
To lower it, subtract:
Here h_l is the residual stream activation at layer l, and alpha is a scalar steering coefficient. The paper reports that adding the vector raises trait expression. Subtracting it reduces the trait, but in the post-hoc setting of Section 5.1 large coefficients lower MMLU accuracy, a general-ability benchmark.
Finetuning shift and projection difference
The projection of a vector onto the unit direction is its dot product with v-hat. The paper defines the projection difference of a dataset D = {(x_i, y_i)} as:
Here y_i' is the base model's own response to the same prompt x_i. A large positive value means the training responses sit further along the trait direction than the model's natural responses do. The finetuning shift is defined the same way, using the average hidden state at the last prompt token before and after finetuning, and the paper reports that it correlates with the trait expression that results.
Results
The paper's own numbers, copied from its text.
- Monitoring prompt-induced shifts. Projections at the final prompt token correlate with later trait expression at r = 0.75 to 0.83 across system-prompt variations. The paper notes that much of this comes from separating trait-encouraging from trait-discouraging prompts, and that the correlation is weaker when prompt type is held fixed.
- Finetuning shift predicts trait expression. Across finetuned models, the correlation between finetuning shift along a persona vector and its trait expression is r = 0.76 to 0.97. Cross-trait baselines give r = 0.34 to 0.86, so the vectors are more specific, though not perfectly so. Negative traits, and humour, tend to shift together.
- Post-hoc steering. Subtracting the vector after finetuning reduces trait expression, but large coefficients reduce MMLU accuracy. Coherence stays above 75 for all results shown.
- Preventative steering. Adding the vector during finetuning limits trait acquisition and preserves MMLU better than post-hoc steering, keeping coherence above 80 on average. A single layer does not always fully prevent acquisition on the datasets built to teach the trait; multi-layer steering does better, according to the paper's appendix. The paper also reports that a regularisation loss on the same projection was ineffective in practice.
- Data screening at dataset level. Projection difference predicts post-finetuning trait expression across datasets (Figure 8).
- Data screening at real-world scale. From LMSYS-Chat-1M, the authors take the top 500, bottom 500 and 500 random samples by projection difference, for each trait. Models finetuned on the high group show the strongest trait expression, then random, then low. The ordering holds after an LLM filter removes samples that explicitly show the trait.
Limits, from the paper's Section 8. The extraction pipeline is supervised: it works only for traits the researcher names, and it needs a precise description. It requires that the trait can be elicited by a system prompt, which held for all traits and models tested, but may not for models with stronger refusal behaviour. The judge (GPT-4.1-mini) is imperfect. Each trait's evaluation uses a small set of 20 questions. Experiments cover only two mid-size chat models. The screening method needs a base-model response for every training prompt, because the projection difference compares each training response with the model's own. Sparse autoencoders are offered as a route to traits that cannot be elicited by prompting, but only an initial exploration is reported.
Reading guide
- Section 1 (introduction): needs a grasp of System Prompt and of the "Assistant" persona. The incidents it cites are context, not results.
- Section 2 (pipeline): needs Residual Stream for the activations. Read Section 2.2 closely, because the response-filtering thresholds shape the vector.
- Section 3 (control and monitoring): needs only the vector from Section 2. Section 3.2 is steering, and Section 3.3 projects the last prompt token onto the vector.
- Section 4 (finetuning shifts): needs Fine-Tuning. The datasets are described in Appendix D.
- Section 5 (mitigation): builds on the steering in Section 3.2; the preventative variant is the paper's main new method for finetuning.
- Section 6 (data screening): needs the notion of a projection, which is a dot product with a unit vector.
- Section 7 (related work): links to Mechanistic Interpretability and to sparse autoencoders for unsupervised feature discovery (see Sparse Autoencoders Find Highly Interpretable Features in Language Models).
Check yourself
QuestionRecall: what is a persona vector, and where does it come from?Show answer
A persona vector is a direction in the residual stream of one layer. It is the difference between the mean activation over responses that show a trait and the mean over responses that do not, computed from contrastive system prompts and a judge's scores.
QuestionComputation: a persona vector is v = (2, -1). A hidden state is h = (1, 1). With steering coefficient alpha = 0.5, what is the state after adding the vector, and after subtracting it?Show answer
Adding: h + 0.5 times v = (1, 1) + (1, -0.5) = (2, 0.5). Subtracting: h minus 0.5 times v = (1, 1) minus (1, -0.5) = (0, 1.5). Adding raises the trait; subtracting lowers it.
QuestionWhy: why does the paper screen training data by projection difference rather than by the raw projection of each sample?Show answer
A training sample can project strongly onto the trait direction even if the base model would already have responded in the same way to the same prompt, so it would not necessarily push the model anywhere new. The projection difference subtracts the base model's own projection for the same prompt, so it measures how much the data pushes the model beyond its natural behaviour. This is the quantity the paper correlates with post-finetuning trait expression in its Figure 8.
QuestionApplied: a team wants to use persona vectors to monitor a customer-service chatbot for sycophancy. Name one thing from the paper's limits that they must check before trusting the monitor.Show answer
The paper's extraction is supervised and depends on the trait being inducible by a system prompt, and its judge and evaluation sets are small. So the team must check that their sycophancy description matches what they want to detect, that the vector predicts their own judged behaviour on their own prompts, and that correlations with behaviour hold outside the paper's two models. A monitor that works on the paper's models is not evidence that it works on theirs.
Sources
- Chen et al., "Persona Vectors: Monitoring and Controlling Character Traits in Language Models", arXiv 2507.21509 (2025): https://arxiv.org/abs/2507.21509
- The same paper under its arXiv DOI: https://doi.org/10.48550/arXiv.2507.21509