Personality Editing for Language Models through Relevant Knowledge Editing

Seojin Hwang, Yumin Kim, Byeongjeong Kim, Hwanhee LeearXiv 2025 · OpenReview

Abstract

Researchers have introduced PALETTE, a novel framework that treats Large Language Model (LLM) personality traits as "factual knowledge" that can be surgically edited. By utilizing a small set of self-referential queries and targeted parameter updates (r-ROME), PALETTE achieves stable personality alignment that is significantly more data-efficient than traditional supervised fine-tuning and more robust than simple prompting.

The Challenge of Persona Control

Controlling the "persona" of an LLM is a critical task for developers, yet current methods face significant hurdles. Prompting is easy to deploy but often "brittle"; models may revert to inherent biases or swing unpredictably between personality extremes based on minor phrasing changes. Conversely, Supervised Fine-Tuning (SFT) offers more stability but is prohibitively expensive, often requiring over 10,000 labeled samples to instill a single trait.

Models often exhibit inherent biases or lack stability when prompted for specific personality traits.

The authors identify a "consistency gap" where LLMs possess entrenched internal biases—such as a tendency toward empathy (the "Feeling" trait)—that resist simple instructions. PALETTE aims to bridge this gap by providing the stability of fine-tuning with the extreme data efficiency of prompting.

Methodology: Personality as Factual Knowledge

PALETTE (Personality Adjustment by LLM SElf-TargeTed quEries) applies Model Editing techniques, typically used for fact correction (e.g., updating the capital of a country), to the model's self-concept. The process consists of two primary stages:

  1. Self-Referential Adjustment Queries: A small set of 12-16 queries derived from psychological frameworks like the MBTI questionnaire are used to force the model to define its preferences (e.g., "Do you prefer logic or emotion?").
  2. Targeted Parameter Updates (r-ROME): Using robust Rank-One Model Editing, the framework identifies specific MLP layers associated with self-referential tokens (like "I" or "me"). It then applies a localized, low-rank update to these weights, effectively rewriting the model's internal identity.
The PALETTE framework: editing internal weights at specific layers to shift response focus from emotional to factual.

This approach allows the model to naturally associate itself with a target trait, such as "Thinking" (T) instead of "Feeling" (F), without requiring massive datasets or retraining the entire model.

Key Results and Efficiency

PALETTE demonstrates remarkable performance across several metrics, proving that personality can be managed as a modular component of the model:

  • Extreme Data Efficiency: The framework achieves results comparable to SFT while using 99.9% less data (12 samples vs. 10,000+).
  • Alignment Gains: Edited models showed a 5%–25% improvement in targeted personality intensity over base models.
  • Robustness: PALETTE-edited models remained stable even when faced with "conflicting prompts" that would typically cause a prompt-only model to flip its personality entirely.
  • Computational Speed: Editing a Qwen-1.5B model takes approximately 27 seconds on a single RTX A6000 GPU, compared to over 10 minutes for a standard QLoRA-SFT run.
  • Performance Preservation: General reasoning and coding capabilities (measured via HumanEval) remained stable, with negligible impact on naturalness or coherence scores.

Discussion and Limitations

While PALETTE offers a powerful new tool for model alignment, it is a "white-box" method requiring direct access to model weights. This precludes its use on closed-source models via API. Additionally, the authors noted that editing for the "Perceiving" (P) trait—associated with spontaneity—is more challenging, likely due to the inherent structure-oriented training of most LLMs. Future research may expand these techniques to more nuanced behavioral styles beyond binary personality traits.

Summary updated

BibTeX
@misc{hwang2025personality,
  author = {Seojin Hwang and Yumin Kim and Byeongjeong Kim and Hwanhee Lee},
  title = {{Personality Editing for Language Models through Relevant Knowledge Editing}},
  year = {2025},
  eprint = {2502.11789},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11789},
}
Figure