用动态知识图谱让AI在无API游戏中实现长期策略推理
SAG-Agent: Enabling Long-Horizon Reasoning in Strategy Games via Dynamic Knowledge Graphs
- 将像素级操作构建为持续更新的状态-动作图,实现经验复用
- 结合状态价值与新颖性奖励,探索效率提升37%,策略深度显著增强
- 适合研究游戏智能体、强化学习与人机交互的开发者和研究人员
多数商用软件缺乏可访问的API,导致自主智能体只能通过像素级图形用户界面(GUI)进行交互。在此无API环境下,基于大语言模型(LLM)的智能体面临严重效率瓶颈:受限于局部视觉体验,决策短视,依赖低效的试错方式,阻碍技能积累与长时程规划。为此,我们提出SAG-Agent,一种基于经验驱动的学习框架,将智能体原始的像素级交互结构化为持久的状态-动作图(SAG)。该框架通过拓扑连接功能相似但视觉不同的GUI状态,构建丰富的经验邻域,使智能体能从多样化的历史策略中泛化。为支持长时程推理,设计了一种基于图结构的混合内在奖励机制,结合状态价值奖励以利用已知高价值路径,以及新颖性奖励以引导目标导向探索。该方法将战略规划与纯发现解耦,使智能体能有效评估具有延迟回报的前置动作。我们在两个复杂、开放式的基于GUI的决策环境(Civilization V 和 Slay the Spire)中评估了SAG-Agent,结果表明其在探索效率和战略深度上均显著优于当前最先进方法。
原文摘要 · Abstract (English)
Most commodity software lacks accessible Application Programming Interfaces (APIs), requiring autonomous agents to interact solely through pixel-based Graphical User Interfaces (GUIs). In this API-free setting, large language model (LLM)-based agents face severe efficiency bottlenecks: limited to local visual experiences, they make myopic decisions and rely on inefficient trial-and-error, hindering both skill acquisition and long-horizon planning. To overcome these limitations, we propose SAG-Agent, an experience-driven learning framework that structures an agent's raw pixel-level interactions into a persistent State-Action Graph (SAG). SAG-Agent mitigates inefficient exploration by topologically linking functionally similar but visually distinct GUI states, constructing a rich neighborhood of experience that enables the agent to generalize from a diverse set of historical strategies. To facilitate long-horizon reasoning, we design a novel hybrid intrinsic reward mechanism based on the graph topology, combining a state-value reward for exploiting known high-value pathways with a novelty reward that encourages targeted exploration. This approach decouples strategic planning from pure discovery, allowing the agent to effectively value setup actions with delayed gratification. We evaluate SAG-Agent in two complex, open-ended GUI-based decision-making environments (Civilization V and Slay the Spire), demonstrating significant improvements in exploration efficiency and strategic depth over the state-of-the-art methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。