LARP: Language-Agent Role Play for Open-World Games
Ming Yan, Ruihao Li, Hao Zhang, Hao Wang, Zhilan Yang, Ji Yan
TL;DR
LARP tackles the challenge of creating flexible, memory-rich language agents for open-world games by proposing a modular cognitive architecture (long-term and working memory, memory processing, decision making) paired with an environment interaction layer that uses a learnable action space and postprocessing to align personalities. It leverages a cluster of domain-specialized language models, memory-encoded with probabilistic and logic representations, and memory recall via self-ask and multi-modal search, enhanced by entity APIs and RLHF-driven refinement. The framework also emphasizes diverse persona modeling through LoRA-tuned model clusters and robust post-processing to verify actions and prevent conflicts. Collectively, LARP aims to deliver coherent, culturally varied NPCs and scalable, adaptive behaviors that enrich open-world gameplay and user experience.
Abstract
Language agents have shown impressive problem-solving skills within defined settings and brief timelines. Yet, with the ever-evolving complexities of open-world simulations, there's a pressing need for agents that can flexibly adapt to complex environments and consistently maintain a long-term memory to ensure coherent actions. To bridge the gap between language agents and open-world games, we introduce Language Agent for Role-Playing (LARP), which includes a cognitive architecture that encompasses memory processing and a decision-making assistant, an environment interaction module with a feedback-driven learnable action space, and a postprocessing method that promotes the alignment of various personalities. The LARP framework refines interactions between users and agents, predefined with unique backgrounds and personalities, ultimately enhancing the gaming experience in open-world contexts. Furthermore, it highlights the diverse uses of language models in a range of areas such as entertainment, education, and various simulation scenarios. The project page is released at https://miao-ai-lab.github.io/LARP/.
