Made with ScholarlyAsk questions about your own PDFs and videos
Shared by asd
This paper introduces a novel method to tailor the personality traits of large language models (LLMs) through the use of Unsupervisedly-Built Personalized Lexicons (UBPL). Personality impacts human expression significantly, and adjusting an LLM's personality can enhance user experience by aligning model expressions with user preferences. Prior approaches to customizing LLM personalities either (1) fine-tune models on specific corpora, which is resource-intensive and lacks fine-grained control, or (2) rely on prompt engineering, which cannot precisely manipulate personality traits at a fine scale.
To overcome these limitations, the authors propose UBPL, a pluggable lexicon built from a Situational Judgment Test dataset (SJTs4LLM) constructed around the Big Five personality traits. This lexicon is used to subtly adjust word prediction probabilities during the decoding phase of LLMs, enabling fine-grained, efficient control over multiple personality aspects without model parameter updates.
The Big Five is a widely accepted psychological model defining personality across five traits:
These traits capture stable behavioral patterns and correlate with one another; for example, OPE and EXT typically correlate positively, while NEU often shows negative correlations with others.
Fine-tuning: Changing model weights on specialized datasets to induce personality traits. This method, while effective for some traits, is inefficient, costly, and not fine-grained.
Prompt Engineering: Using carefully designed prompts to elicit personalities. This approach avoids model fine-tuning but often lacks precise control and robustness.
SJTs present hypothetical scenarios and ask for responses, indirectly revealing personality traits.
SJTs offer high validity and bypass subjects' defensive responses common in direct personality questionnaires.
SJTs are novel in assessing LLM personalities by simulating situational judgments rather than direct questioning.
A new dataset, SJTs4LLM, derived from the Big Five framework, was created using GPT-4 to generate questions and answers embodying contrasting personality traits.
The dataset contains situational prompts and corresponding answer sets representing high/low levels of five personality traits.
Step 1: Tokenization and Assignment
Step 2: Normalization and Scaling
The lexicon (UBPL) consists of tokens mapped to personality trait value vectors.
During generation via Top-p nucleus sampling, the predicted probability of each next token is adjusted by the lexical values from UBPL.
Formula to adjust token probability:
where sz is the token’s original probability, and G(⋅) is a linear combination of control parameters to amplify or diminish traits.
Unlike fine-tuning, UBPL requires no re-training of model parameters, enabling resource-efficient personality control.
Unlike prompt engineering, UBPL offers fine-grained, quantitative control over multiple personality traits simultaneously without prompt design complexity.
UBPL is modular and pluggable, applicable to any open-source LLM.
Six LLMs tested, ranging in sizes from 7B to 34B parameters (e.g., Llama2-7b-chat, OpenChat3.5-7b, Baichuan2-7B-Chat, Llama2-13b-chat, Yi-34b-Chat).
Decoding settings: Top-p nucleus sampling with p=0.95 and temperature T=0.85.
Assessment Metrics:
Adjusting β for one trait at a time showed strong, statistically significant correlations (Pearson R > 0.9) between β and the expression intensity of that trait across all six LLMs.
This demonstrates fine-grained controllability and consistent UBPL effectiveness in personality expression modulation.
Manipulating combinations of personality traits (dual, triple, quadruple sets) illustrated that UBPL can produce compound effects respecting psychological trait correlations.
For example, decreasing Openness and increasing Neuroticism accordingly influenced correlated traits, consistent with Big Five theory.
Adjusted Spearman correlations aligned with expectations, validating UBPL’s capability for nuanced personality control.
The automatic assessment results closely matched human evaluations in mean scores and variability across personality traits.
This validates using automatic LLM-based scoring as a credible proxy for labor-intensive human assessments.
Qualitative examples showed UBPL enabled meaningful shifts in personality expression, e.g., generating open and curious vs. reserved and conventional answers to the same prompts.
Examples included manipulating Openness and Extraversion effectively.
UBPL offers a novel, efficient, and finely-controllable method to tailor LLM personality traits by adjusting token probabilities during decoding based on an unsupervised lexicon derived from SJTs.
This pluggable approach avoids costly fine-tuning and prompt engineering limitations, enabling broad applicability.
Extensive experiments confirm UBPL’s effectiveness and fine-grained controllability over multiple Big Five personality dimensions across diverse LLMs.
The method promises to enhance personalized user experiences with LLMs by aligning personality expression without modifying model internals.
Personality is defined as coherent patterns of affect, cognition, and goals.
Descriptions of five traits:
Correlations among traits influence personality assessments and manipulations.
Make from this