Feature Engineered Reinforcement Learning for S-pair Selection in Buchberger's Algorithm
Abstract
Selecting the order in which to process S-pairs is a crucial decision in Buchberger's algorithm for computing Groebner bases: this choice can change the cost by orders of magnitude. Recent work has shown that reinforcement learning agents viewing exponent vectors of the polynomials outperform classical heuristics on binomial ideals. We extend this line of work to general polynomial ideals by using statistical features. We introduce a 17-dimensional feature vector to describe a polynomial and use PPO to train policies on five distributions of random ideals. We find that using S-polynomial features significantly outperforms S-pair features on all five distributions. The new policies also outperform the retrained RL baseline on all five distributions, reducing algorithmic work by 41--53\% relative to the degree heuristic on four distributions where learning helps. The additional cost of the feature engineering means that wall-clock cost remains similar to the baseline, but our new approach benefits from easier transfer to unseen distributions.
Create a lesson
Metadata
- Categories
- cs.LG, cs.SC
- Comments
- 12 pages, Accepted in UKCI 2026 (in press)
Related papers
Temporal Selective Exploration for Reinforcement Learning-Guided Continuous-Discrete Flow Matching in 3D Molecular Design
Shared title terminologycs.LGLianghong Chen, Yan Yi Li, Gen Zhou et al.
ST-GNN-AAAS: Spatio-Temporal Graph Neural Networks for Anytime Automatic Algorithm Selection in the Traveling Salesman Problem
Shared title terminologycs.LGZeyu Zhang, Mustafa Misir
Self-supervised Clipped-objective Reinforcement Leaning Framework for Risk-aware Portfolio Management
Shared title terminologycs.LGZongshen Mu
Reinforcement Learning Can Be Recovered From Its Own Rollouts
Shared title terminologycs.LGJiayi Sheng, Jingwen Gu, Guanning Zeng et al.
Local Indices Are Not Enough: Synchrony and Global Information in Bandit Algorithms
Shared title terminologycs.LGAakash Gore, Shivaram Kalyanakrishnan
When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes
Shared title terminologycs.LGGendo Kumoi