Driving Generative Agents With Their Personality

Lawrence J. Klinkert,Stephanie Buongiorno,Corey Clark
DOI: https://doi.org/10.48550/arXiv.2402.14879
2024-02-22
Abstract:This research explores the potential of Large Language Models (LLMs) to utilize psychometric values, specifically personality information, within the context of video game character development. Affective Computing (AC) systems quantify a Non-Player character's (NPC) psyche, and an LLM can take advantage of the system's information by using the values for prompt generation. The research shows an LLM can consistently represent a given personality profile, thereby enhancing the human-like characteristics of game characters. Repurposing a human examination, the International Personality Item Pool (IPIP) questionnaire, to evaluate an LLM shows that the model can accurately generate content concerning the personality provided. Results show that the improvement of LLM, such as the latest GPT-4 model, can consistently utilize and interpret a personality to represent behavior.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how non - player characters (NPCs) in video games can more realistically simulate human behavior by using large language models (LLMs) in combination with Affective Computing (AC) systems. Specifically, the research explores the potential of LLMs in video game character development by using psychometric values, especially personality information. By using the International Personality Item Pool (IPIP) questionnaire to evaluate the content generated by LLMs, the research shows that LLMs can consistently represent given personality traits, thereby enhancing the performance of human characteristics of game characters. ### Core issues of the paper 1. **Improving the behavioral authenticity of NPCs**: Current NPCs often lack the ability to interact with the environment, as well as rich emotions and personality depths, which results in a less immersive and emotionally appealing gaming experience. The research aims to enhance the emotional intelligence of NPCs by combining the psychometric components of the AC system, thereby providing a more immersive and emotionally appealing gaming experience. 2. **Verifying the personality - expressing ability of LLMs**: The research hypothesizes that LLMs can generate content that conforms to expected behaviors by receiving psychometric values (especially personality information) from the AC system. By re - using the IPIP questionnaire to evaluate the content generated by LLMs, the research verifies that LLMs can consistently generate results that are consistent with the initial personality. ### Specific methods - **Data collection**: A data set of Big Five personality test results of more than 1 million participants was obtained from an open - source code psychometric project. - **Data processing**: The data was cleaned and filtered, valid and reasonable time responses were retained, and duplicate submission data was removed. - **Personality assessment**: Each test result was assigned to one of 20 different personality profiles using the nearest - neighbor algorithm. - **Synthetic data generation**: Multiple LLM models of OpenAI (such as text - davinci - 003, gpt - 3.5 - turbo - 0613, and gpt - 4 - 0613) were used to generate synthetic personality test results, and the consistency of these results with the actual personality profiles was evaluated. ### Main findings - **Performance differences**: Different LLM models show significant differences in generating content that conforms to personality traits. Among them, the gpt - 4 - 0613 model performs the best, and the content it generates is highly consistent with the actual personality profiles, with an accuracy rate of 73.98%. - **Consistency evaluation**: Evaluated by the root mean square prediction error (RMSPE) and the inter - rater reliability (IRR), the gpt - 4 - 0613 model shows the highest accuracy and consistency in generating content that conforms to personality traits. ### Conclusion The research proves that by combining the psychometric values of the AC system, LLMs can significantly improve the behavioral authenticity of NPCs, making game characters more human - like. This achievement not only helps to improve the gaming experience but also provides new ideas and technical support for future game design.