Comparing machine learning models to choose the variable ordering for cylindrical algebraic decomposition
Not on the map. Why?
Abstract (arXiv)
There has been recent interest in the use of machine learning (ML) approaches within mathematical software to make choices that impact on the computing performance without affecting the mathematical correctness of the result. We address the problem of selecting the variable ordering for cylindrical algebraic decomposition (CAD), an important algorithm in Symbolic Computation. Prior work to apply ML on this problem implemented a Support Vector Machine (SVM) to select between three existing human-made heuristics, which did better than anyone heuristic alone. The present work extends to have ML select the variable ordering directly, and to try a wider variety of ML techniques. We experimented with the NLSAT dataset and the Regular Chains Library CAD function for Maple 2018. For each problem, the variable ordering leading to the shortest computing time was selected as the target class for ML. Features were generated from the polynomial input and used to train the following ML models: k-nearest neighbours (KNN) classifier, multi-layer perceptron (MLP), decision tree (DT) and SVM, as implemented in the Python scikit-learn package. We also compared these with the two leading human constructed heuristics for the problem: Brown's heuristic and sotd. On this dataset all of the ML approaches outperformed the human made heuristics, some by a large margin.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 24 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 2; 2025: 0; 2026: 1.
7 papers.
- 2023Explainable AI Insights for Symbolic Computation: A case study on selecting the variable ordering for cylindrical algebraic decompositioncited by 7
- 2023Data Augmentation for Mathematical Objectscited by 2
- 2024Lessons on Datasets and Paradigms in Machine Learning for Symbolic Computation: A Case Study on CADcited by 2
- 2023Revisiting Variable Ordering for Real Quantifier Elimination using Machine Learningcited by 1
- 2024Constrained Neural Networks for Interpretable Heuristic Creation to Optimise Computer Algebra Systemscited by 1
- 2022SC-Square: Future Progress with Machine Learning?cited by 0
- 2026Breaking the Data Barrier in Learning Symbolic Computation: A Case Study on Variable Ordering Suggestion for Cylindrical Algebraic Decompositioncited by 0
- 2026Breaking the Data Barrier in Learning Symbolic Computation: A Case Study on Variable Ordering Suggestion for Cylindrical Algebraic Decomposition20 Jan 2026
- 2024Constrained Neural Networks for Interpretable Heuristic Creation to Optimise Computer Algebra Systems26 Apr 2024
- 2024Lessons on Datasets and Paradigms in Machine Learning for Symbolic Computation: A Case Study on CAD24 Jan 2024
- 2023Data Augmentation for Mathematical Objects13 Jul 2023
- 2023Explainable AI Insights for Symbolic Computation: A case study on selecting the variable ordering for cylindrical algebraic decomposition24 Apr 2023
- 2023Revisiting Variable Ordering for Real Quantifier Elimination using Machine Learning27 Feb 2023
- 2022SC-Square: Future Progress with Machine Learning?9 Sep 2022