The research introduces PANGeA (Procedural Artificial Narrative using Generative AI), a structured approach for leveraging large language models (LLMs) to generate narrative content and foster dynamic, free-form interactions between players and the game environment in turn-based role-playing video games (RPGs).
During game initialization, PANGeA uses a multi-step prompting sequence to generate baseline narrative assets, including the game setting, player persona, non-playable characters (NPCs), and narrative beats. The NPCs are assigned personality traits from the Big 5 Personality Model, which biases their generated responses.
To address challenges with ingesting free-form text input, which can prompt LLM responses beyond the scope of the game narrative, PANGeA includes a novel validation system. This system uses the LLM's intelligence to evaluate text input and align generated responses with the unfolding narrative. PANGeA's custom memory system stores game data, providing context to augment the generated responses and maintain narrative consistency.
PANGeA's server has a REST interface, enabling any game engine to directly integrate with it. The server also supports the use of local LLMs or private models like OpenAI's.
An empirical study and ablation test of two versions of a demo game, Dark Shadows, demonstrate PANGeA's ability to generate narrative-consistent content even when provided varied and unpredictable, free-form text input. Without the validation system, the LLM frequently generated out-of-scope responses.
Başka Bir Dile
kaynak içeriğinden
arxiv.org
Önemli Bilgiler Şuradan Elde Edildi
by Steph Buongi... : arxiv.org 05-01-2024
https://arxiv.org/pdf/2404.19721.pdfDaha Derin Sorular