用语言模型生成游戏策略,让AI一键玩转数千款3D游戏
Agents Play Thousands of 3D Video Games
- 将游戏决策转为语言建模,用LLM生成可解释的行为树
- 在上千款FPS游戏中实现高效泛化,策略多样性显著提升
- 适合游戏开发、AI训练与自动化测试场景
我们提出PORTAL框架,通过语言引导的策略生成,使AI代理能够玩转数千款3D视频游戏。该方法将决策问题转化为语言建模任务,利用大语言模型(LLM)生成领域特定语言(DSL)表示的行为树,避免传统强化学习的计算负担,同时保持战略深度和快速适应能力。框架采用混合策略结构,融合规则节点与神经网络组件,兼顾高层战略推理与底层精确控制。引入结合量化游戏指标与视觉-语言模型分析的双重反馈机制,实现战术与战略层面的迭代优化。生成的策略具备即时部署、人类可读及跨环境泛化能力。实验表明,PORTAL在上千款第一人称射击(FPS)游戏中表现优异,相较于传统方法,在开发效率、策略泛化性和行为多样性上均有显著提升。PORTAL为跨数千款商业游戏构建复杂智能体提供了低开销实用方案。实验结果详见 https://zhongwen.one/projects/portal。
原文摘要 · Abstract (English)
We present PORTAL, a novel framework for developing artificial intelligence agents capable of playing thousands of 3D video games through language-guided policy generation. By transforming decision-making problems into language modeling tasks, our approach leverages large language models (LLMs) to generate behavior trees represented in domain-specific language (DSL). This method eliminates the computational burden associated with traditional reinforcement learning approaches while preserving strategic depth and rapid adaptability. Our framework introduces a hybrid policy structure that combines rule-based nodes with neural network components, enabling both high-level strategic reasoning and precise low-level control. A dual-feedback mechanism incorporating quantitative game metrics and vision-language model analysis facilitates iterative policy improvement at both tactical and strategic levels. The resulting policies are instantaneously deployable, human-interpretable, and capable of generalizing across diverse gaming environments. Experimental results demonstrate PORTAL's effectiveness across thousands of first-person shooter (FPS) games, showcasing significant improvements in development efficiency, policy generalization, and behavior diversity compared to traditional approaches. PORTAL represents a significant advancement in game AI development, offering a practical solution for creating sophisticated agents that can operate across thousands of commercial video games with minimal development overhead. Experiment results on the 3D video games are best viewed on https://zhongwen.one/projects/portal .
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。