mlsanityData to 7 Oct 2026

Turning Mathematics Problems into Games: Reinforcement Learning and Gr"obner bases together solve Integer Feasibility Problems

arXiv 2208.12191 ↗First posted 25 Aug 2022cs.LG math.OCcited by 3

Not on the map. Why?

Abstract (arXiv)

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"obner basis of the toric ideal for the underlying axial transportation polyhedron. The Gr"obner 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.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 8 of its 26 references that are in the map. First posted on arXiv 25 Aug 2022.

Builds on

8 of 26 references.

References · 8

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2017Neural Discrete Representation Learningcited by 4,650
  3. 2015Continuous control with deep reinforcement learningcited by 3,279
  4. 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
  5. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  6. 2018An Algorithmic Perspective on Imitation Learningcited by 455
  7. 2017Overcoming Exploration in Reinforcement Learning with Demonstrationscited by 322
  8. 2016Deep Learning for Reward Design to Improve Monte Carlo Tree Search in ATARI Gamescited by 13

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 1.

3 papers.