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

TL;DR

This paper introduces a novel method to understand how Large Language Models (LLMs) internally represent and generate personality in their responses, moving beyond just observing output. They developed a "layer-wise probing" technique to pinpoint where personality is encoded within LLM layers and then used this knowledge to edit an LLM's personality during inference, even when the prompt contradicts the desired personality.

What Problem Does This Paper Address?

While LLMs can convincingly mimic personalities, we have a limited understanding of how they achieve this internally. Current methods primarily analyze personality through the final output, leaving a gap in understanding the underlying mechanisms within the LLM's parameters. This lack of insight makes it difficult to reliably control or modify an LLM's personality. The paper aims to bridge this gap by investigating the layer-wise encoding of personality and developing a method to edit it.

Methods

The core of the paper's contribution lies in two main stages:

  1. Layer-wise Probing: The authors developed a framework to probe LLMs layer by layer. They feed prompts designed to elicit specific personalities (from the Big Five traits: Neuroticism, Extraversion, Agreeableness) into an LLM and extract the internal representations of the final token at each layer. A linear classifier is then trained on these representations to predict the intended personality. The performance of these classifiers (measured by V-information) indicates how well each layer encodes personality information.
  2. Layer-wise Personality Editing: Building on the probing results, the trained probing classifiers are used to guide edits. The hyperplane learned by each classifier is interpreted as a boundary separating personality representations. The authors propose a method to iteratively perturb the hidden representations at each layer during inference, pushing them across the learned boundary towards a target personality. This is done on a token-by-token basis, allowing for fine-grained control.

Datasets

  • PersonalityEdit Benchmark: This is the primary dataset used for both probing and editing experiments. It's derived from the Big Five personality traits, focusing on Neuroticism, Extraversion, and Agreeableness. The paper uses its original partitioning for training and testing.
  • MMLU Benchmark: Used for evaluating the impact of the proposed editing method on the LLM's general capabilities.

Key Insights and Ideas

  • Personality is Layered: Personality simulation isn't an all-or-nothing phenomenon within LLMs. It emerges gradually, with middle and upper layers showing a stronger ability to distinguish and encode personality traits.
  • Instruction Tuning Helps: LLMs that have undergone instruction tuning (like chat models) exhibit a clearer separation of personality traits in their internal representations, suggesting that this tuning process enhances their ability to align with personality-driven prompts.
  • Probing Classifiers as Boundaries: The linear classifiers trained during probing can be viewed as learning the "decision boundaries" for different personalities within the LLM's internal representation space. This insight is crucial for the editing method.
  • Targeted Editing is Possible: The proposed layer-wise perturbation method can successfully alter an LLM's response personality, even when the initial prompt explicitly requests a different personality. This demonstrates a powerful capability for controlling LLM behavior.
  • Conversion Difficulty Varies: The ease with which one personality can be edited into another is not uniform. This difficulty correlates with the representational distances observed during the probing phase, suggesting that some personality traits are more intrinsically "distant" in the LLM's internal space.

Key Results

  • Probing: V-information analysis across 11 LLMs showed that personality encoding generally starts in middle layers (around layers 5-12) and stabilizes in upper layers. Instruction-tuned models often showed a slight improvement (1-3%) in V-information.
  • Editing: The proposed method achieved significantly higher Success Rates (SR) and Personality Adjective Evaluation (PAE) scores compared to baselines like MEND and IKE. For example, in one scenario, the authors' method achieved an average SR of 44.16 and PAE of 1.29, while baselines performed much worse.
  • General Capability: The personality editing process had a minimal impact on general task performance, as measured by the MMLU benchmark, indicating that the method doesn't significantly degrade the LLM's overall intelligence.
  • Efficiency: The method has acceptable inference latency (2-3x slower than baselines) and significantly lower training time compared to some existing methods.

Limitations and Future Work

  • Human Judgment vs. Automated Metrics: While the paper uses automated metrics (RoBERTa classifier, GPT-40) for evaluation, it acknowledges that direct human judgment can be more nuanced. The automated metrics are presented as complementary and reliable.
  • Potential for Misuse: The authors explicitly mention the ethical concern that the proposed editing method could be misused to covertly manipulate LLM behavior, leading to outputs contrary to explicit instructions. They encourage attention to LLMs during inference.
  • Future Work: The authors suggest further research into investigating and leveraging latent personality representations captured by LLMs. They also call for more research into the layer-wise capabilities of LLMs.

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