arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.09622cs.AI
收藏

AlphaSnake:非确定NP-hard马尔可夫决策过程的策略迭代

AlphaSnake: Policy Iteration on a Nondeterministic NP-hard Markov Decision Process

Harvard University(哈佛大学);DeepMind(深度思维);Tsinghua University(清华大学);University of Houston(休斯顿大学)

Kevin Du, Ian Gemp, Yi Wu, Yingying Wu

摘要:

强化学习最近已被用于解决图论中著名的NP难组合问题。在这些问题中,哈密顿循环问题是非常难以分析的,即使是限制在结构复杂的图形的个别实例。在本文中,我们使用蒙特卡罗树搜索(MCTS),许多最先进的强化学习算法(如AlphaZero)背后的搜索算法,来创建学习玩Snake游戏的自主智能体,这是一种以网格图上的Hamilton循环属性为中心的游戏。贪吃蛇游戏可以表述为一个单玩家折扣马尔可夫决策过程(MDP),其中代理必须在随机环境中表现最佳。确定蛇的最优策略,定义为最大化获胜概率或获胜率的策略-具有较高的优先级,并最小化期望的时间步数,以赢得较低的优先级,被证明是NP-难的。性能方面,与Snake游戏中的先前工作相比,我们的算法是第一个在$0.5$上实现胜率的算法(均匀随机策略实现胜率$< 2.57 \times 10^{-15}$),证明了AlphaZero在接近NP难环境中的多功能性。

英文摘要:

Reinforcement learning has recently been used to approach well-known NP-hard combinatorial problems in graph theory. Among these problems, Hamiltonian cycle problems are exceptionally difficult to analyze, even when restricted to individual instances of structurally complex graphs. In this paper, we use Monte Carlo Tree Search (MCTS), the search algorithm behind many state-of-the-art reinforcement learning algorithms such as AlphaZero, to create autonomous agents that learn to play the game of Snake, a game centered on properties of Hamiltonian cycles on grid graphs. The game of Snake can be formulated as a single-player discounted Markov Decision Process (MDP) where the agent must behave optimally in a stochastic environment. Determining the optimal policy for Snake, defined as the policy that maximizes the probability of winning - or win rate - with higher priority and minimizes the expected number of time steps to win with lower priority, is conjectured to be NP-hard. Performance-wise, compared to prior work in the Snake game, our algorithm is the first to achieve a win rate over $0.5$ (a uniform random policy achieves a win rate $< 2.57 \times 10^{-15}$), demonstrating the versatility of AlphaZero in approaching NP-hard environments.

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

↑