Dynamic Generation of Personalities with Large Language Models
Jianzhi Liu, Hexiang Gu, Tianyu Zheng, Liuyu Xiang, Huijia Wu, Jie Fu, Zhaofeng He
TL;DR
The paper tackles the challenge of endowing LLMs with dynamic, nuanced personalities to improve deliberation. It proposes Dynamic Personality Generation (DPG), which embeds Big Five traits into GPT-4 for automatic personality assessment, constructs a personality-dialogue dataset, and uses Hypernetworks to generate LoRA adapters that encode personality in pre-trained LLMs. Across scripted-dialogue, open-ended questions, and new-personality generation tasks, DPG outperforms traditional fine-tuning and prompt-based baselines, even surpassing GPT-4 prompts in several metrics. The approach combines an enhanced personality assessment module with a Hypernetworks-based LoRA framework, enabling flexible, input-conditioned personality expressions with practical implications for adaptive, user-aligned dialogue systems.
Abstract
In the realm of mimicking human deliberation, large language models (LLMs) show promising performance, thereby amplifying the importance of this research area. Deliberation is influenced by both logic and personality. However, previous studies predominantly focused on the logic of LLMs, neglecting the exploration of personality aspects. In this work, we introduce Dynamic Personality Generation (DPG), a dynamic personality generation method based on Hypernetworks. Initially, we embed the Big Five personality theory into GPT-4 to form a personality assessment machine, enabling it to evaluate characters' personality traits from dialogues automatically. We propose a new metric to assess personality generation capability based on this evaluation method. Then, we use this personality assessment machine to evaluate dialogues in script data, resulting in a personality-dialogue dataset. Finally, we fine-tune DPG on the personality-dialogue dataset. Experiments prove that DPG's personality generation capability is stronger after fine-tuning on this dataset than traditional fine-tuning methods, surpassing prompt-based GPT-4.
