TL;DR
This paper introduces CAPE, a novel framework for evaluating the personality of Large Language Models (LLMs) that accounts for conversational history. They found that while context improves response consistency, it can also lead to significant personality shifts, especially in models like GPT-3.5/4-Turbo, and that some models are more sensitive to context than others.
What Problem Does This Paper Address?
Traditional methods for assessing LLM personality treat each question in isolation, akin to a "Disney World test" where context is ignored. This is unrealistic because LLMs in real-world applications, like chatbots or virtual assistants, operate within ongoing conversations where prior interactions shape responses. This disconnect raises questions about the reliability and validity of personality assessments, especially when LLMs are used as human proxies. The authors aim to bridge this gap by developing a framework that incorporates conversational history to provide a more realistic and robust evaluation of LLM personality.
Methods
The core of the paper is the Context-Aware Personality Evaluation (CAPE) framework. Unlike context-free methods, CAPE retains prior questions and responses to evaluate their impact on LLM personality. To quantify this, they introduce novel metrics for response consistency, a key human trait. They analyze how various "inconsistency factors" (temperature, option wording, option order, instructions, and item paraphrasing) affect consistency.
Key novelties include:
- CAPE Framework: Explicitly models the influence of conversational history on personality assessments.
- Novel Consistency Metrics:
- Trajectory Consistency (TC): Measures the similarity of response patterns across multiple runs of the same LLM on a personality test. It uses Gaussian Process Regression (GPR) to model trajectories and quantifies consistency based on the overlap of posterior predictive distributions.
- OCEAN Consistency (OC): An order-invariant metric that assesses consistency across the Big Five personality traits (OCEAN) by considering all permutations of trait scores.
Datasets
The paper uses two primary datasets for evaluation:
- Machine Personality Inventory (MPI): A dataset with 120 items from the International Personality Item Pool (IPIP) and its IPIP-NEO adaptations.
- Big Five Inventory (BFI): A dataset with 44 items, used specifically for evaluating Role Playing Agents (RPAs).
Key Insights and Ideas
- Context Matters: Conversational history significantly impacts LLM personality assessments, improving response consistency through in-context learning.
- Personality Shifts: While consistency improves, context can also induce notable personality shifts, particularly in advanced models like GPT-3.5-Turbo and GPT-4-Turbo.
- Model Sensitivity Varies: GPT models are generally robust to question ordering, but Gemini-1.5-Flash and Llama-3.1-8B show significant sensitivity to context and ordering.
- Intrinsic vs. Historical Influence: GPT models seem to balance intrinsic personality traits with prior interactions, whereas Gemini and Llama models rely more heavily on conversational history.
- Human Alignment: Context-dependent personality shifts can improve response consistency and better align LLM-derived traits with human judgments, especially in applications like Role Playing Agents.
- Logical Consistency is Not Guaranteed: While LLMs maintain consistency for semantically similar questions, they struggle with logically inconsistent ones, suggesting that in-context learning enhances stability but not necessarily logical reasoning.
Key Results
- Improved Consistency: The context-dependent setting generally improves consistency metrics (TAR, TC, OC) across most LLMs compared to context-free settings, as highlighted by green-marked values in Table 1.
- GPT-3.5/4-Turbo Deviations: These models exhibit extreme personality shifts in the context-dependent setting.
- Llama-3.1-8B Sensitivity: This model shows significant sensitivity to option order and struggles to leverage context effectively, possibly due to its smaller size.
- RPA Alignment: Context-dependent RPAs (RPA++) showed improved alignment with human judgments (higher OA, lower MAE) and significantly higher consistency (TC, OC) compared to context-independent RPAs. For instance, RPA++ achieved an average 13.4-point improvement in TC and OC.
- Question Order Robustness: GPT models are robust to question ordering, similar to humans, while Gemini-1.5-Flash and Llama-3.1-8B are highly sensitive.
Limitations and Future Work
- Psychometric Limitations: The authors acknowledge that psychometric questionnaires alone may not perfectly capture all real-world conversational contexts.
- Broader Generalization: The current study focuses on personality questionnaires. Broader generalization to open-ended human-LLM interactions is a planned future direction.
- Potential Misuse: The study highlights risks of misuse in psychological interventions or for deceptive purposes, emphasizing the need for safeguards and transparency.
- LLM Substitution: LLMs should not be solely substituted as human proxies based on psychometric evaluations alone.
- Deepseek-R1 Exclusion: The Deepseek-R1 model was excluded from main experiments due to performance degradation in the context-dependent setting, suggesting over-reliance on previous responses and speculative overthinking. Future work could explore why this occurs.
Summary updated