# Lessons on Datasets and Paradigms in Machine Learning for Symbolic Computation: A Case Study on CAD

arXiv: https://arxiv.org/abs/2401.13343 · HTML: https://mlsanity.com/paper/2401.13343/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 13 of its 40 references that are in the map.
- First posted on arXiv 24 Jan 2024.

## Builds on (most cited first, 13 of 13)

- [Deep Learning for Symbolic Mathematics](https://mlsanity.com/paper/1912.01412/) (2019)
- [Learning selection strategies in Buchberger's algorithm](https://mlsanity.com/paper/2005.01917/) (2020)
- [Neurons on Amoebae](https://mlsanity.com/paper/2106.03695/) (2021)
- [Applying machine learning to the problem of choosing a heuristic to select the variable ordering for cylindrical algebraic decomposition](https://mlsanity.com/paper/1404.6369/) (2014)
- [Comparing machine learning models to choose the variable ordering for cylindrical algebraic decomposition](https://mlsanity.com/paper/1904.11061/) (2019)
- [Explainable AI Insights for Symbolic Computation: A case study on selecting the variable ordering for cylindrical algebraic decomposition](https://mlsanity.com/paper/2304.12154/) (2023)
- [Using Machine Learning to Improve Cylindrical Algebraic Decomposition](https://mlsanity.com/paper/1804.10520/) (2018)
- [Algorithmically generating new algebraic features of polynomial systems for machine learning](https://mlsanity.com/paper/1906.01455/) (2019)
- [Improved cross-validation for classifiers that make algorithmic choices to minimise runtime without compromising output correctness](https://mlsanity.com/paper/1911.12672/) (2019)
- [Machine learning the real discriminant locus](https://mlsanity.com/paper/2006.14078/) (2020)
- [Using Machine Learning to Decide When to Precondition Cylindrical Algebraic Decomposition With Groebner Bases](https://mlsanity.com/paper/1608.04219/) (2016)
- [Data Augmentation for Mathematical Objects](https://mlsanity.com/paper/2307.06984/) (2023)
- [Good pivots for small sparse matrices](https://mlsanity.com/paper/2006.01623/) (2020)

## Built on by (most cited first, 2 of 2)

- [Constrained Neural Networks for Interpretable Heuristic Creation to Optimise Computer Algebra Systems](https://mlsanity.com/paper/2404.17508/) (2024)
- [Tree-Based Deep Learning for Ranking Symbolic Integration Algorithms](https://mlsanity.com/paper/2508.06383/) (2025)

## Abstract (arXiv)

Symbolic Computation algorithms and their implementation in computer algebra systems often contain choices which do not affect the correctness of the output but can significantly impact the resources required: such choices can benefit from having them made separately for each problem via a machine learning model. This study reports lessons on such use of machine learning in symbolic computation, in particular on the importance of analysing datasets prior to machine learning and on the different machine learning paradigms that may be utilised. We present results for a particular case study, the selection of variable ordering for cylindrical algebraic decomposition, but expect that the lessons learned are applicable to other decisions in symbolic computation. We utilise an existing dataset of examples derived from applications which was found to be imbalanced with respect to the variable ordering decision. We introduce an augmentation technique for polynomial systems problems that allows us to balance and further augment the dataset, improving the machine learning results by 28% and 38% on average, respectively. We then demonstrate how the existing machine learning methodology used for the problem - classification - might be recast into the regression paradigm. While this does not have a radical change on the performance, it does widen the scope in which the methodology can be applied to make choices.
