Learning a performance metric of Buchberger's algorithm

Jelena Mojsilović, Dylan Peifer, Sonja Petrović
6/7/2021
math.ACcs.LGcs.SC

Official code: Sondzus/LearningGBvaluemodel (1 star, Jupyter Notebook, last commit 2022-05-31).

Abstract

What can be (machine) learned about the complexity of Buchberger's algorithm? Given a system of polynomials, Buchberger's algorithm computes a Gröbner basis of the ideal these polynomials generate using an iterative procedure based on multivariate long division.

Show full abstract

The runtime of each step of the algorithm is typically dominated by a series of polynomial additions, and the total number of these additions is a hardware independent performance metric that is often used to evaluate and optimize various implementation choices. In this work we attempt to predict, using just the starting input, the number of polynomial additions that take place during one run of Buchberger's algorithm. Good predictions are useful for quickly estimating difficulty and understanding what features make Gröbner basis computation hard. Our features and methods could also be used for value models in the reinforcement learning approach to optimize Buchberger's algorithm introduced in [Peifer, Stillman, and Halpern-Leistner, 2020]. We show that a multiple linear regression model built from a set of easy-to-compute ideal generator statistics can predict the number of polynomial additions somewhat well, better than an uninformed model, and better than regression models built on some intuitive commutative algebra invariants that are more difficult to compute. We also train a simple recursive neural network that outperforms these linear models. Our work serves as a proof of concept, demonstrating that predicting the number of polynomial additions in Buchberger's algorithm is a feasible problem from the point of view of machine learning.

View on arXivView PDF

Code Implementations(1)

Supplementary code for ``Learning a performance metric of Buchberger’s algorithm" by Jelena Mojsilović, Dylan Peifer, Sonja Petrović

10Jupyter Notebook, PythonMay 31, 20224 years ago

Similar Papers

Cite this paper

@article{mojsilovi2021learning,
  title  = {Learning a performance metric of Buchberger's algorithm},
  author = {Jelena Mojsilović and Dylan Peifer and Sonja Petrović},
  year   = {2021},
  eprint = {2106.03676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.03676}
}

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/2106.03676.svg)](https://codeofpaper.com/paper/2106.03676)

Discussion