arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.09386cs.AIcs.CLcs.HC
收藏

游戏开发作为人类与LLM的交互

Game Development as Human-LLM Interaction

Shanghai Jiao Tong University(上海交通大学)

Jiale Hong, Hongqiu Wu, Hai Zhao

AI总结:

本文提出由LLM驱动的聊天游戏引擎ChatGE,通过自然语言交互让用户开发游戏,采用数据合成和三阶段训练策略,并以扑克游戏验证其交互质量与代码正确性。

摘要:

游戏开发是一项高度专业化的任务,依赖于由复杂编程语言驱动的复杂游戏引擎,这阻碍了许多游戏爱好者进行处理。本文介绍了由LLM驱动的聊天游戏引擎(ChatGE),它允许每个人通过人类与LLM的交互使用自然语言开发自定义游戏。为了使LLM能够充当ChatGE,我们指示它在每一轮中执行以下过程:(1)$P_{script}$:根据用户的输入配置游戏脚本片段;(2)$P_{code}$:根据游戏脚本片段生成相应的代码片段;(3)$P_{utter}$:与用户交互,包括指导和反馈。我们提出了一种基于LLM的数据合成流程,从少量手工制作的种子数据生成游戏脚本-代码对和交互。我们提出了一种三阶段渐进式训练策略,以将基于对话的LLM平滑地转移到我们的ChatGE。我们为扑克游戏构建了一个ChatGE作为案例研究,并从交互质量和代码正确性两个角度对其进行了全面评估。

英文摘要:

Game development is a highly specialized task that relies on a complex game engine powered by complex programming languages, preventing many gaming enthusiasts from handling it. This paper introduces the Chat Game Engine (ChatGE) powered by LLM, which allows everyone to develop a custom game using natural language through Human-LLM interaction. To enable an LLM to function as a ChatGE, we instruct it to perform the following processes in each turn: (1) $P_{script}$: configure the game script segment based on the user's input; (2) $P_{code}$: generate the corresponding code snippet based on the game script segment; (3) $P_{utter}$: interact with the user, including guidance and feedback. We propose a data synthesis pipeline based on LLM to generate game script-code pairs and interactions from a few manually crafted seed data. We propose a three-stage progressive training strategy to transfer the dialogue-based LLM to our ChatGE smoothly. We construct a ChatGE for poker games as a case study and comprehensively evaluate it from two perspectives: interaction quality and code correctness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑