SPRING:研读论文并推理以游玩游戏
SPRING: Studying the Paper and Reasoning to Play Games
AI总结:
针对开放世界生存游戏中强化学习样本复杂度高的问题,提出SPRING框架,利用大语言模型结合游戏论文知识和DAG推理决策,在Crafter环境中无需训练即超越训练100万步的最优RL基线。
摘要:
开放世界生存游戏因具备多任务、深度探索和目标优先级排序的要求,对AI算法提出了重大挑战。尽管强化学习(RL)在解决游戏问题方面应用广泛,但其高样本复杂度限制了它在Crafter或Minecraft等复杂开放世界游戏中的有效性。我们提出了一种名为SPRING的新方法,该方法读取游戏的原始学术论文,并通过大语言模型(LLM)利用所学知识进行推理和游玩游戏。我们的SPRING框架以LaTeX源文件作为游戏上下文、智能体当前观测的描述作为提示,采用有向无环图(DAG),其中与游戏相关的问题作为节点,依赖关系作为边。我们通过遍历DAG并按拓扑顺序计算每个节点的LLM响应来确定环境中要采取的最优动作,LLM对最终节点的回答直接转化为环境动作。在实验中,我们在Crafter开放世界环境的设置下,研究了不同形式的提示所引发的上下文内“推理”的质量。实验表明,当使用一致的思维链进行提示时,LLM在完成复杂的高级轨迹方面具有巨大潜力。在量化层面,搭载GPT-4的SPRING无需任何训练,性能就优于所有经过100万步训练的最先进RL基线。最后,我们展示了游戏作为LLM测试平台的潜力。
英文摘要:
Open-world survival games pose significant challenges for AI algorithms due to their multi-tasking, deep exploration, and goal prioritization requirements. Despite reinforcement learning (RL) being popular for solving games, its high sample complexity limits its effectiveness in complex open-world games like Crafter or Minecraft. We propose a novel approach, SPRING, to read the game's original academic paper and use the knowledge learned to reason and play the game through a large language model (LLM). Prompted with the LaTeX source as game context and a description of the agent's current observation, our SPRING framework employs a directed acyclic graph (DAG) with game-related questions as nodes and dependencies as edges. We identify the optimal action to take in the environment by traversing the DAG and calculating LLM responses for each node in topological order, with the LLM's answer to final node directly translating to environment actions. In our experiments, we study the quality of in-context "reasoning" induced by different forms of prompts under the setting of the Crafter open-world environment. Our experiments suggest that LLMs, when prompted with consistent chain-of-thought, have great potential in completing sophisticated high-level trajectories. Quantitatively, SPRING with GPT-4 outperforms all state-of-the-art RL baselines, trained for 1M steps, without any training. Finally, we show the potential of games as a test bed for LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。