TL;DR
This paper introduces the "Assistant Axis," a linear direction in language model activations that represents the model's default helpful and harmless persona. They demonstrate that steering along this axis can stabilize model behavior, prevent persona drift into harmful outputs, and even mitigate the success of adversarial jailbreaks. This work highlights that while models are steered towards an Assistant persona, they are only loosely tethered, necessitating new strategies for persona stabilization.
What Problem Does This Paper Address?
Large language models (LLMs) are trained to be helpful and harmless assistants, but they can exhibit "persona drift" – deviating from this default persona and producing unexpected, sometimes harmful, behaviors. This drift can be triggered by specific conversational contexts, such as users demanding meta-reflection or disclosing emotional vulnerability. The paper aims to understand this phenomenon by identifying and quantifying the "Assistant persona" within the model's internal representations and developing methods to stabilize it.
Methods
The core of the paper involves analyzing LLM activations in a "persona space."
- Persona Space Construction: They first generate responses from LLMs prompted to adopt various character archetypes (roles). The activations of these responses are then used to define "role vectors." Principal Component Analysis (PCA) is applied to these vectors to identify the main dimensions of persona variation.
- Assistant Axis Identification: The "Assistant Axis" is identified as the primary dimension (PC1) that captures the variation between Assistant-like roles and other, more fantastical or human-like archetypes. This axis is defined as a contrast vector, representing the difference between the average Assistant activation and the average of other role activations.
- Steering: To test the Assistant Axis, they employ "activation steering," a technique that modifies model activations at specific layers by adding or subtracting a vector along the Assistant Axis.
- Activation Capping: A novel stabilization technique called "activation capping" is introduced. This method constrains the model's activations along the Assistant Axis to a predefined range, preventing them from drifting too far from the default Assistant persona.
Datasets
- Role Vectors: Generated from responses of three target LLMs (Gemma 2 27B, Qwen 3 32B, and Llama 3.3 70B) to prompts designed to elicit 275 different roles.
- Persona-based Jailbreaks: A dataset from Shah et al. (2023) containing 1100 system prompt and behavioral question pairs across 44 harm categories.
- Behavioral Questions: Used for evaluating role susceptibility and persona drift, including introspective questions like "Who are you?" and "What is your name?".
- Conversation Domains: Synthetic multi-turn conversations were generated across four domains: coding assistance, writing assistance, therapy-like contexts, and philosophical discussions about AI.
- Benchmarks for Capabilities: IFEval, MMLU Pro, GSM8k, and EQ-Bench were used to evaluate the impact of activation capping on model capabilities.
Key Insights and Ideas
- The Assistant Axis is Dominant: The primary dimension of persona variation in LLMs is the "Assistant Axis," reflecting how closely a model's output aligns with its default helpful and harmless persona. This axis appears to be largely inherited from pre-training.
- Persona Drift is Real and Predictable: Models can drift away from the Assistant persona, especially in conversations involving meta-reflection or emotional vulnerability. This drift is correlated with an increased likelihood of harmful outputs.
- Activation Capping Stabilizes Behavior: By constraining activations along the Assistant Axis, models can be stabilized, reducing harmful responses and persona drift without significantly degrading capabilities.
- Post-training Loosely Tethers Models: While post-training steers models towards an Assistant persona, it doesn't rigidly anchor them. This suggests a need for more robust stabilization mechanisms.
- Different Models Exhibit Different Persona Tendencies: When steered away from the Assistant, models show distinct tendencies. For example, Llama and Gemma might adopt mystical personas, while Qwen might adopt human personas.
Key Results
- Persona Drift in Specific Domains: Persona drift is most pronounced in therapy and philosophical discussions about AI, and to a lesser extent in writing tasks. Coding conversations remain relatively stable.
- Jailbreak Mitigation: Steering towards the Assistant Axis significantly decreased the rate of harmful responses to persona-based jailbreaks by nearly 60% without impacting capabilities.
- Activation Capping Effectiveness: Activation capping reduced harmful response rates by up to 60% with minimal impact on performance across various capability benchmarks.
- Role PC1 vs. Assistant Axis: The first principal component derived from role vectors (PC1) is highly correlated with the Assistant Axis and shows similar effects in steering and persona drift experiments. However, the contrast vector method for defining the Assistant Axis is suggested for greater robustness.
Limitations and Future Work
- Limited Target Models: The study focused on three open-weight models, and future work could explore frontier models, mixture-of-expert models, and reasoning models.
- Synthetic Conversations: The use of simulated human users in multi-turn conversations might not fully capture the nuances of real human interactions.
- Linear Representation Assumption: The assumption that the Assistant Axis is a linear direction might be an oversimplification, as concepts could be represented nonlinearly.
- Future Work: The authors suggest exploring how training data influences persona space, using the Assistant Axis as a real-time measure of model coherence, developing production-ready intervention strategies for persona stabilization, and connecting model internals to richer notions of persona. They also emphasize that stabilization should not suppress legitimate role-playing.
Summary updated