The Better Angels of Machine Personality: How Personality Relates to LLM Safety

Jie Zhang, Dongrui Liu, Chen Qian, Ziyue Gan, Yong Liu +2 more
7/17/2024
24 citations
cs.CLcs.CY

No official code found. Best implementation: AI45Lab/Persafety (6 stars, last commit 2024-07-02).

Abstract

Personality psychologists have analyzed the relationship between personality and safety behaviors in human society. Although Large Language Models (LLMs) demonstrate personality traits, the relationship between personality traits and safety abilities in LLMs still remains a mystery.

Show full abstract

In this paper, we discover that LLMs' personality traits are closely related to their safety abilities, i.e., toxicity, privacy, and fairness, based on the reliable MBTI-M scale. Meanwhile, the safety alignment generally increases various LLMs' Extraversion, Sensing, and Judging traits. According to such findings, we can edit LLMs' personality traits and improve their safety performance, e.g., inducing personality from ISTJ to ISTP resulted in a relative improvement of approximately 43% and 10% in privacy and fairness performance, respectively. Additionally, we find that LLMs with different personality traits are differentially susceptible to jailbreak. This study pioneers the investigation of LLM safety from a personality perspective, providing new insights into LLM safety enhancement.

View on arXivView PDF

Code Implementations(1)

AI45Lab/PersafetyCommunity100%

The repository of paper "The Better Angels of Machine Personality: How Personality Relates to LLM Safety".

60Jul 2, 20242 years ago

Similar Papers

Cite this paper

@article{zhang2024better,
  title  = {The Better Angels of Machine Personality: How Personality Relates to LLM Safety},
  author = {Jie Zhang and Dongrui Liu and Chen Qian and Ziyue Gan and Yong Liu and Yu Qiao and Jing Shao},
  year   = {2024},
  eprint = {2407.12344},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12344v1}
}

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/2407.12344.svg)](https://codeofpaper.com/paper/2407.12344)

Discussion