arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.12191cs.LGmath.OC
收藏

将数学问题转化为游戏:强化学习和格罗布纳基一起解决可预测可行性问题

Turning Mathematics Problems into Games: Reinforcement Learning and Gröbner bases together solve Integer Feasibility Problems

University of California, Davis(加州大学戴维斯分校)

Yue Wu, Jesús A. De Loera

摘要:

智能体可以通过玩游戏来训练回答困难的数学问题吗?我们考虑整数的可行性问题,一个挑战,决定一个系统的线性方程和不等式是否有一个解决方案的整数值。这是一个著名的NP完全问题,在数学和计算机科学的许多领域都有应用。我们的论文描述了一种新的代数强化学习框架,允许代理玩一个游戏,相当于整数可行性问题。我们解释了如何将整数可行性问题转化为一组具有固定保证金和的数组上的博弈。游戏从一个初始状态(数组)开始,通过应用一个合法的移动,使边缘保持不变,我们的目标是最终达到一个在特定位置为零的获胜状态。为了赢得游戏,玩家必须找到初始状态和最终获胜状态之间的路径(如果存在)。找到这样一个获胜的状态等价于解决整数可行性问题。关键的代数成分是一个格罗布纳基的复曲面理想的基础上的轴向运输多面体。格罗布纳基可以被看作是一组游戏的连接移动(动作)。然后,我们提出了一种新的强化学习方法,训练代理预测连续空间中的动作,以应对大规模的动作空间。然后将连续移动投射到合法移动集合上,使得路径总是通向有效状态。作为概念的证明,我们在实验中证明,我们的代理可以很好地发挥我们的游戏的最简单的版本为2路表。我们的工作突出了通过用于训练代理玩游戏的当代机器学习方法来训练代理解决非平凡数学查询的潜力。

英文摘要:

Can agents be trained to answer difficult mathematical questions by playing a game? We consider the integer feasibility problem, a challenge of deciding whether a system of linear equations and inequalities has a solution with integer values. This is a famous NP-complete problem with applications in many areas of Mathematics and Computer Science. Our paper describes a novel algebraic reinforcement learning framework that allows an agent to play a game equivalent to the integer feasibility problem. We explain how to transform the integer feasibility problem into a game over a set of arrays with fixed margin sums. The game starts with an initial state (an array), and by applying a legal move that leaves the margins unchanged, we aim to eventually reach a winning state with zeros in specific positions. To win the game the player must find a path between the initial state and a final terminal winning state if one exists. Finding such a winning state is equivalent to solving the integer feasibility problem. The key algebraic ingredient is a Gröbner basis of the toric ideal for the underlying axial transportation polyhedron. The Gröbner basis can be seen as a set of connecting moves (actions) of the game. We then propose a novel RL approach that trains an agent to predict moves in continuous space to cope with the large size of action space. The continuous move is then projected onto the set of legal moves so that the path always leads to valid states. As a proof of concept we demonstrate in experiments that our agent can play well the simplest version of our game for 2-way tables. Our work highlights the potential to train agents to solve non-trivial mathematical queries through contemporary machine learning methods used to train agents to play games.

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

↑