Exploring the Personality Traits of LLMs through Latent Features Steering

Shu Yang, Shenzhe Zhu, Liang Liu, Lijie Hu, Mengdi Li +1 more
10/7/2024
cs.CLcs.AI

No official code found. Best implementation: kaustpradalab/LLM-Persona-Steering (18 stars, last commit 2025-01-30).

Abstract

Large language models (LLMs) have significantly advanced dialogue systems and role-playing agents through their ability to generate human-like text. While prior studies have shown that LLMs can exhibit distinct and consistent personalities, the mechanisms through which these models encode and express specific personality traits remain poorly understood. To address this, we investigate how various factors, such as cultural norms and environmental stressors, encoded within LLMs, shape their personality traits, guided by the theoretical framework of social determinism. Inspired by related work on LLM interpretability, we propose a training-free approach to modify the model's behavior by extracting and steering latent features corresponding to factors within the model, thereby eliminating the need for retraining. Furthermore, we analyze the implications of these factors for model safety, focusing on their impact through the lens of personality.

View on arXivView PDF

Code Implementations(1)

Official code of "Exploring the Personality Traits of LLMs through Latent Features Steering"

183Shell, PythonAug 18, 20241 years ago
llmllmpersonalitypersonapsychologysafety+2 more

Similar Papers

Cite this paper

@article{yang2024exploring,
  title  = {Exploring the Personality Traits of LLMs through Latent Features Steering},
  author = {Shu Yang and Shenzhe Zhu and Liang Liu and Lijie Hu and Mengdi Li and Di Wang},
  year   = {2024},
  eprint = {2410.10863},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10863v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.10863.svg)](https://codeofpaper.com/paper/2410.10863)

Discussion