Who, What, When, Where, Why: A Narrative Episodic Memory Framework for Generative AI NPCs in Games
This research proposes a narrative episodic memory framework for generative AI-based NPCs in games, structured around the "Who, What, When, Where, Why" (5Ws) format, which aims to suggest a memory structure for future GenAI NPC model development. The main objective is to allow NPCs to recognize and remember memories of interactions with players and to respond in a way that is contextually rich and consistent with their personality and background. The framework implements the idea of memory decay, enabling NPCs to tune their personality and tone for different players using generative AI over time. By analyzing the interaction memories, NPCs can dynamically adjust their character to create a personalized and immersive experience. The framework will be evaluated using several large language models, and their responses will be compared through analysis. The results will be presented with an emphasis on the differences among models to cater to the distinct needs of developers. While such a framework is considered a component that needs integration, this work establishes a foundation for designing episodic memory structure, allowing NPCs to participate with players with complex memory structure as it allows them to engage in more meaningful interactions. This foundational framework serves as pathways for future development on NPC AI that enables sophisticated interaction and changes character personality specific to the way players engage with them.
Authors
- Lam Yeung Kong Sunny
Institutions
- Hong Kong University of Science and Technology (HK)
Publication Details
- Journal
- Applied and Computational Engineering
- Published
- 2025-02-21
- DOI
- https://doi.org/10.54254/2755-2721/2025.21096
- Primary Topic
- Reinforcement Learning in Robotics
- Type
- article
- Field-Weighted Citation Impact
- 0.00