Learning selection strategies in Buchberger's algorithm

Dylan Peifer, Michael Stillman, Daniel Halpern-Leistner
5/5/2020
cs.LGcs.SCmath.AC
rl

Official code: dylanpeifer/deepgroebner (15 stars, Python, GPL-3.0, last commit 2021-06-13).

Abstract

Studying the set of exact solutions of a system of polynomial equations largely depends on a single iterative algorithm, known as Buchberger's algorithm. Optimized versions of this algorithm are crucial for many computer algebra systems (e.g., Mathematica, Maple, Sage).

Show full abstract

We introduce a new approach to Buchberger's algorithm that uses reinforcement learning agents to perform S-pair selection, a key step in the algorithm. We then study how the difficulty of the problem depends on the choices of domain and distribution of polynomials, about which little is known. Finally, we train a policy model using proximal policy optimization (PPO) to learn S-pair selection strategies for random systems of binomial equations. In certain domains, the trained model outperforms state-of-the-art selection heuristics in total number of polynomial additions performed, which provides a proof-of-concept that recent developments in machine learning have the potential to improve performance of algorithms in symbolic computation.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Applications of reinforcement learning to Groebner basis computation.

154Python, C++Nov 11, 20195 years agoGPL-3.0
computer-algebragroebner-basesmachine-learningreinforcement-learning

Similar Papers

Cite this paper

@article{peifer2020learning,
  title  = {Learning selection strategies in Buchberger's algorithm},
  author = {Dylan Peifer and Michael Stillman and Daniel Halpern-Leistner},
  year   = {2020},
  eprint = {2005.01917},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.01917}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.01917.svg)](https://codeofpaper.com/paper/2005.01917)

Discussion