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

Probing then Editing Response Personality of Large Language Models

Tianjie Ju, Zhenyu Shao, Bowen Wang, Yujia Chen, Zhuosheng Zhang, Hao Fei, Mong-Li Lee, Wynne Hsu, Sufeng Duan, Gongshen Liu · DOI

Abstract

While Large Language Models (LLMs) can effectively role-play specific personalities through prompting, the internal mechanisms that encode these traits are often treated as a "black box." This paper presents a systematic study of how personality is represented within LLM hidden layers. The authors introduce a two-phase approach: first, probing layers to locate personality-specific information, and second, an inference-time editing technique that mathematically nudges hidden states to alter the model's personality on the fly. Experimental results demonstrate that this method can successfully override explicit prompt instructions while preserving the model's general reasoning capabilities.

Introduction

The ability of LLMs to adopt diverse personas—such as a "neurotic assistant" or an "agreeable companion"—is a cornerstone of modern AI interaction. However, existing research primarily focuses on final text outputs rather than internal representations. Furthermore, permanently altering a model's personality typically requires extensive fine-tuning, which can degrade general performance, or complex system prompts that may be ignored in long-context scenarios. This work seeks to identify where personality "lives" inside an LLM and provides a mechanism to manipulate it directly in the vector space.

Methodology

Layer-Wise Probing

To map the internal landscape of personality, the researchers utilized a layer-wise probing strategy. By feeding the model prompts requesting specific traits (e.g., from the Big Five personality model), they extracted hidden representations of the final token at every layer. Simple linear classifiers, or "probes," were trained to distinguish between these traits. To ensure the probes were capturing the model's inherent knowledge rather than just learning the task themselves, the authors employed $\mathcal{V}$-information as a robust metric of information content.

Step-by-Step Layer-Wise Editing

Once the probes established mathematical boundaries (hyperplanes) between personality types, the authors developed an editing algorithm. During inference, a targeted perturbation is applied to the hidden states at each decoding step. This "nudge" pushes the representation across the boundary toward the desired target personality, effectively steering the generation process at the representation level.

Key Insights

  • Emergence in Middle Layers: Personality information is not present in the earliest layers. Instead, $\mathcal{V}$-information spikes between layers 5 and 12, stabilizing in the upper layers where traits become most distinct.
  • Instruction Tuning Effects: Models that have undergone instruction tuning exhibit a much sharper separation of personality traits in their latent space compared to base models.
  • Trait Proximity: Shifting a "Neurotic" response to an "Agreeable" one is significantly more difficult than shifting either toward "Extraversion." This is because Neuroticism and Agreeableness are represented as distant clusters, while Extraversion occupies a more central position.
  • Causal Neurons: Analysis revealed that the top 20% of neurons in probed layers are responsible for the majority of personality encoding. Patching these specific neurons causes the editing success rate to drop sharply, confirming their causal role.

Experimental Results

The method was evaluated across 11 open-source LLMs, including LLaMA 2/3, Vicuna, and Qwen 2.5, using the PersonalityEdit Benchmark.

  • Adversarial Success: In tests where the model was prompted to be Personality A but edited to be Personality B, the method achieved a 66.73% Success Rate on LLaMA 3.1 8B Instruct. This significantly outperformed baseline methods like IKE (10.87%) and MEND (13.69%).
  • Preservation of Knowledge: General reasoning skills remained intact. The zero-shot MMLU score for LLaMA 3.1 8B Instruct showed only a marginal decrease (from 64.75% to ~63.4%).
  • Efficiency: The probing phase is remarkably efficient, requiring only 0.1 hours of training, compared to nearly 50 hours for some traditional editing baselines.

Discussion and Limitations

While highly effective, the method introduces a 2-3x slowdown in inference speed due to the per-layer perturbations required for every token. Additionally, the authors highlight ethical considerations: the ability to override system prompts at the hidden-state level could potentially be used to bypass safety guardrails. Future research may extend these techniques beyond the Big Five traits to more complex behavioral profiles.

Summary updated

BibTeX
@inproceedings{ju2025probing,
  author = {Tianjie Ju and Zhenyu Shao and Bowen Wang and Yujia Chen and Zhuosheng Zhang and Hao Fei and Mong-Li Lee and Wynne Hsu and Sufeng Duan and Gongshen Liu},
  title = {{Probing then Editing Response Personality of Large Language Models}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=z9SbcYYP0M},
}
Figure