{"id":1057020,"date":"2024-08-05T09:00:00","date_gmt":"2024-08-05T16:00:00","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/blog\/geneva-uses-large-language-models-for-interactive-game-narrative-design\/"},"modified":"2024-07-22T09:53:21","modified_gmt":"2024-07-22T16:53:21","slug":"geneva-uses-large-language-models-for-interactive-game-narrative-design","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/research\/blog\/geneva-uses-large-language-models-for-interactive-game-narrative-design\/","title":{"rendered":"GENEVA uses large language models for interactive game narrative design"},"content":{"rendered":"\n
This paper was presented at the <\/em><\/strong>IEEE 2024 Conference on Games<\/em><\/strong> (opens in new tab)<\/span><\/a> (IEEE CoG 2024), the leading forum on innovation in and through games.<\/em><\/strong><\/p>\n\n\n\n Mastering the art of storytelling, a highly valued skill across films, novels, games, and more, requires creating rich narratives with compelling plots and characters. In recent years, the rise of AI has prompted inquiries into whether large language models (LLMs) can effectively generate and sustain detailed, coherent storylines that engage audiences. Consequentially, researchers have been actively exploring AI’s potential to support creative processes in video game development, where the growing demands of narrative design often surpass the capabilities of traditional tools. This investigation focuses on AI’s capacity for innovation in storytelling and the necessary human interactions to drive such advances.<\/p>\n\n\n\n In this context, we introduce \u201cGENEVA: GENErating and Visualizing branching narratives using LLMs (opens in new tab)<\/span><\/a>,\u201d presented at IEEE CoG 2024. This graph-based narrative generation and visualization tool requires a high-level narrative description and constraints, such as the number of different starts, endings, and storylines, as well as context for grounding the narrative. GENEVA uses the generative capabilities of GPT-4 to create narratives with branching storylines and renders them in a graph format, allowing users to interactively explore different narrative paths through its web interface (opens in new tab)<\/span><\/a>.<\/p>\n\n\n\n The narrative graph itself is a directed acyclic graph (DAG), where each node represents a narrative beat<\/em>\u2014an event that moves the plot forward\u2014with directed edges (arrows) marking the progression through the story\u2019s events. These beats are the fundamental units of the narrative structure, representing the exchange of action and reaction. A single path from a start node to an end node outlines a unique storyline, and the graph illustrates the various potential storylines based on the same overarching narrative.\u202f<\/p>\n\n\n\n The generation and visualization of these narrative graphs are accomplished using GPT-4 in a two-step process. First, the model generates the branching storylines from the given description and constraints. Second, it produces code to render these narratives in a visually comprehensible graph format.<\/p>\n\n\n\n<\/figure>\n\n\n\n
Visualizing narratives using graphs<\/h2>\n\n\n\n