Localizing Persona Representations in LLMs

Celia Cintas, Miriam Rateike, Erik Miehling, Elizabeth M. Daly, Skyler Speakman

Abstract

We present a study on how and where personas—defined by distinct sets of human characteristics, values, and beliefs—are encoded in the representation space of large language models (LLMs). Such insights can improve the model's interpretability and enable more precise control over the generative process. Using a range of dimension reduction and pattern recognition methods, we first identify the model layers that show the greatest divergence in encoding these representations. We then analyze the activations within a selected layer to examine how specific personas are encoded relative to others, including their shared and distinct embedding spaces. We find that, across multiple pre-trained decoder-only LLMs, the analyzed personas show large differences in representation space only within the final third of the decoder layers. When we look at some of the later layers, we observe overlapping activations for specific ethical perspectives—such as moral nihilism and utilitarianism—suggesting a degree of polysemy. In contrast, political ideologies like conservatism and liberalism appear to be represented in more distinct regions. These findings improve our understanding of how LLMs represent information internally and allow for greater control over how specific human traits are expressed in their responses.

Introduction

As Large Language Models (LLMs) are increasingly integrated into complex social roles, users frequently prompt them to adopt specific "personas"—ranging from empathetic counselors to political commentators. While these prompts effectively steer model outputs, the internal mechanics governing these transformations have largely remained a "black box." This research addresses this gap by localizing where these traits are represented within the model's architecture. Understanding these localizations is vital for enhancing safety against adversarial "jailbreaking," ensuring alignment with diverse human values, and improving overall model interpretability.

Methodology

The study investigated three popular decoder-only models: Llama3-8B-Instruct, Granite-7B-Instruct, and Mistral-7B-Instruct. The researchers utilized a dataset of 600 high-confidence statements per persona across 14 dimensions, including the Big Five personality traits, ethical theories (e.g., Utilitarianism), and political views (e.g., Liberalism).

The analysis proceeded in two stages:

  1. Layer Identification: Activation vectors were extracted from the final token of persona-aligned vs. non-aligned sentences. Principal Component Analysis (PCA) and clustering metrics were used to identify layers with maximum divergence.
  2. Deep Scan Localization: Using Non-Parametric Scan Statistics, the team identified "salient activations"—specific subsets of neurons that distinguish one persona from another at varying levels of granularity (inter-persona, intra-topic, and inter-topic).

Key Results

The "Final Third" Rule

A consistent finding across all tested models is that persona-specific information is not distributed uniformly. Instead, representations become significantly more distinct and refined only in the final third of the decoder layers. This suggests that LLMs treat personas as high-level semantic abstractions that are constructed after lower-level linguistic processing is complete.

Euclidean distance between persona-matching and non-matching activations across model layers, highlighting the sharp increase in divergence in the final third of the network.

Visualizing Activation Divergence

PCA visualizations confirm that as information moves through the network, the activation clusters for different personas become increasingly separable. In the earliest layers, activations are largely overlapping, but they diverge into distinct regions by the final layer, providing a clear signal for persona identification.

PCA of activations for the 'Anti-immigration' persona across layers 1, 7, 10, and 31, demonstrating the progression from overlapping to distinct representation spaces.

Political Clarity vs. Ethical Ambiguity

The research revealed a disparity in how different types of personas are encoded. Political ideologies (e.g., Liberal vs. Conservative) occupy relatively unique subspaces with only 9.42% overlap in salient activations. In contrast, ethical frameworks like Utilitarianism and Moral Nihilism exhibit significant overlap (17.55%). This "polysemanticity" in ethical encoding suggests that the model uses shared neural pathways for different moral concepts, making it harder to steer a model's ethics compared to its political tone.

Discussion and Limitations

While this work successfully localizes persona signals, several limitations remain. The datasets primarily reflect Western, English-speaking perspectives, which may bias the results toward specific cultural norms. Furthermore, the study relies on synthetic, model-generated data. Future work will focus on "controlled editing"—directly manipulating these localized activations to prove a causal link between internal representations and generated behavior, which is a critical step for robust model alignment.

Summary updated

BibTeX
@inproceedings{cintas2025localizing,
  author = {Celia Cintas and Miriam Rateike and Erik Miehling and Elizabeth M. Daly and Skyler Speakman},
  title = {{Localizing Persona Representations in LLMs}},
  booktitle = {INTERPLAY @ COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=QnayDNXZNO},
}
Figure