Identifying and Manipulating the Personality Traits of Language Models

Graham Caron, Shashank SrivastavaarXiv 2022

TL;DR

This paper investigates whether large language models (LLMs) like BERT and GPT-2 exhibit consistent personality traits and if these traits can be manipulated. The authors demonstrate that LLMs can indeed reflect personality markers when provided with contextual information, suggesting they can be used to both identify and control personas in AI applications.

What Problem Does This Paper Address?

As AI systems, particularly those powered by LLMs, become increasingly integrated into our lives (think virtual assistants like Siri and Alexa), understanding their "personalities" is crucial. While research has explored biases like race and gender in LLMs, the aspect of personality bias and its implications remains largely unexamined. This paper addresses the question of whether LLMs exhibit consistent personality traits, similar to humans, and if these perceived traits can be predictably influenced by external factors. This understanding is vital for tailoring AI behavior for specific applications, such as enhancing user experience in general conversation or ensuring appropriate interactions in sensitive contexts like mental health support.

Methods

The core of the methodology involves using the "Big Five" personality trait taxonomy (extroversion, agreeableness, conscientiousness, emotional stability, and openness to experience) as a framework. The researchers adapted standard "Big Five" personality questionnaires into a sentence completion format, allowing LLMs to fill in the blanks.

Two primary experimental approaches were used:

  1. Contextual Manipulation: LLMs were presented with personality assessment items that were preceded by various forms of context. This context included:
  2. Answers to personality assessment items themselves.
  3. Personality descriptions scraped from Reddit.
  4. Self-reported personality descriptions from human users collected via Amazon Mechanical Turk. The goal was to observe how these contexts influenced the LLMs' responses to the personality assessment and whether this influence was predictable.

  5. Personality Prediction: The researchers explored whether LLMs could predict human personality traits by using human-provided personality descriptions as context for the LLMs' responses to the "Big Five" assessment.

Datasets

The paper utilizes and contributes the following datasets:

  • Standard "Big Five" Personality Assessment Items: Adapted from the IPIP (International Personality Item Pool).
  • Reddit Data: A dataset of personality descriptions collected from Reddit threads.
  • Crowd-sourced Survey Data: A dataset of self-reported personality descriptions from human subjects, paired with their "Big Five" personality assessment data, collected via Amazon Mechanical Turk.

Key Insights and Ideas

  • LLMs Have Perceived Personalities: Language models, when prompted with personality-related questions, exhibit responses that can be interpreted as having personality traits.
  • Context is King (for Personality): The perceived personality of LLMs is highly susceptible to contextual information. Providing specific descriptions or answers can predictably shift the model's "personality" profile.
  • Predictable Manipulation: The manipulation of LLM personality traits is not random; it follows predictable patterns, making them amenable to controlled persona generation.
  • LLMs as Personality Probes: The ability of LLMs to infer personality from text suggests they could be valuable tools for assessing human personality, especially in situations where direct assessment is difficult.
  • Gendered Responses: The study found that LLMs, like humans, can exhibit gendered personality tendencies, with female names generally leading to higher scores in agreeableness, conscientiousness, and emotional stability.

Key Results

  • High Correlation in Contextual Manipulation: The study found high correlations (median Pearson correlation coefficients up to 0.84 for BERT and 0.81 for GPT-2) between expected and observed changes in personality traits when using contextual modifiers.
  • Predictive Power in Personality Assessment: When using human self-descriptions as context, LLMs could predict personality traits with a surprising degree of accuracy (correlation up to 0.48 between model scores and human scores).
  • Broad Range of Achieved Scores: LLMs demonstrated the ability to achieve a wide range of personality scores across different contexts, including the full spectrum of human scores for conscientiousness and emotional stability.
  • Gender Differences Observed: Mean female scores were higher for agreeableness, conscientiousness, and emotional stability for both BERT and GPT-2.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Spurious Correlations: A potential weakness is the use of questionnaire items as context, which could lead to spurious correlations if the model simply copies the modifier. While adjustments were made, this remains a consideration.
  • Generalizability to Other Models: The findings are based on BERT and GPT-2. Further research is needed to determine if these results generalize to other, potentially larger, language models (e.g., GPT-3, MT-NLG).
  • Role of Pretraining Data: The influence of pretraining data on the development of LLM personality traits is an important area for future exploration.
  • Alternate Taxonomies: Exploring other personality frameworks beyond the "Big Five" could provide a more comprehensive understanding.
  • Ethical Implications: The ability to manipulate LLM personalities raises serious ethical concerns, including the risk of malicious attacks to make systems hostile. Developing defenses against such attacks is a critical future consideration.

Summary updated

BibTeX
@misc{caron2022identifying,
  author = {Graham Caron and Shashank Srivastava},
  title = {{Identifying and Manipulating the Personality Traits of Language Models}},
  year = {2022},
  eprint = {2212.10276},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.10276},
}
Figure