[Paper Review] Algorithmically generating new algebraic features of polynomial systems for machine learning
This paper presents a framework for algorithmically generating algebraic features from polynomial systems to improve machine learning (ML) models for selecting variable orderings in cylindrical algebraic decomposition (CAD). By systematically enumerating features within a defined framework, the method significantly boosts ML performance—reducing computation time to just 6% above the optimal minimum, outperforming human-designed heuristics by a factor of four in efficiency and achieving 66.3% accuracy with KNN using 78 features compared to 11 in prior work.
There are a variety of choices to be made in both computer algebra systems (CASs) and satisfiability modulo theory (SMT) solvers which can impact performance without affecting mathematical correctness. Such choices are candidates for machine learning (ML) approaches, however, there are difficulties in applying standard ML techniques, such as the efficient identification of ML features from input data which is typically a polynomial system. Our focus is selecting the variable ordering for cylindrical algebraic decomposition (CAD), an important algorithm implemented in several CASs, and now also SMT-solvers. We created a framework to describe all the previously identified ML features for the problem and then enumerated all options in this framework to automatically generation many more features. We validate the usefulness of these with an experiment which shows that an ML choice for CAD variable ordering is superior to those made by human created heuristics, and further improved with these additional features. We expect that this technique of feature generation could be useful for other choices related to CAD, or even choices for other algorithms with polynomial systems for input.
Motivation & Objective
- To address the challenge of limited and non-informative features in machine learning applications for symbolic computation, particularly in non-linear real arithmetic (NRA).
- To improve the performance of machine learning models in selecting optimal variable orderings for cylindrical algebraic decomposition (CAD), a key algorithm in quantifier elimination over the reals.
- To develop a systematic, automated method for generating a large number of relevant, algebraically derived features from polynomial systems without requiring complex projections.
- To validate that these algorithmically generated features lead to superior ML decisions compared to human-designed heuristics and prior feature sets.
Proposed method
- The authors define a formal framework to describe all previously identified ML features for CAD variable ordering, enabling systematic enumeration of all possible feature combinations.
- They generate a large set of new features—78 in total—by combining basic algebraic properties such as variable frequency, polynomial degree, and coefficient distributions, all derived directly from input polynomials.
- The method avoids computationally expensive operations like Gröbner basis computation or projection, ensuring low-cost feature generation.
- The generated features are used to train multiple ML models (DT, KNN, MLP, SVM) on a benchmark dataset of polynomial systems to predict optimal variable orderings.
- Performance is evaluated using accuracy in selecting the best ordering and total computation time across the test set.
Experimental results
Research questions
- RQ1Can a systematic, algorithmic approach generate a significantly larger and more effective set of features for machine learning in symbolic computation?
- RQ2Does the use of these automatically generated features improve the performance of ML models in selecting variable orderings for CAD compared to human-designed heuristics?
- RQ3To what extent do the new features reduce computation time relative to the optimal baseline in CAD variable ordering decisions?
- RQ4Are the benefits of the new feature set consistent across different ML models, and can they be generalized beyond the current problem?
Key findings
- The K-Nearest Neighbors (KNN) model achieved the fastest total computation time of 9,178 seconds, only 6% above the theoretical minimum of 8,623 seconds.
- The new feature set (78 features) reduced the total computation time to 6% above minimum, compared to 14% above with the prior 11-feature set.
- All ML models outperformed human-made heuristics: Brown heuristic took 10,951 seconds (27% above minimum), while KNN achieved 9,178 seconds (6% above).
- The best ML model (KNN) was 4 times closer to the optimal time than the best human heuristic (Brown), which lies at 4.16 on a scaled time-to-minimum metric.
- Over 75% of the test problems were solved within 1% of the minimum time using ML models, whereas human heuristics often exceeded this threshold significantly.
- The new feature generation framework produced features that are often non-intuitive and hard to describe in natural language, highlighting the advantage of algorithmic over human-driven feature design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.