Table of Contents
Fetching ...

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

Tereso del Río, Matthew England

Abstract

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.

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

Abstract

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.
Paper Structure (58 sections, 3 equations, 11 figures, 3 tables)

This paper contains 58 sections, 3 equations, 11 figures, 3 tables.

Figures (11)

  • Figure 1: Graph associated to $S_G$.
  • Figure 2: Classification training workflow for the example of \ref{['subsec:illustrative_example']}
  • Figure 3: Classification training workflow with data augmentation: $S'$ has been created by renaming $x_1$ to $y_2$, $x_2$ to $y_1$ and $x_3$ to $y_3$ in $S$.
  • Figure 4: Instances in the classes in the imbalanced classification dataset.
  • Figure 7: Existing heuristics and ML models trained on the biased dataset, evaluated over the biased dataset. See \ref{['sec:heuristics']} for the definitions of gmods, brown and T1, and see \ref{['sec:training models']} for definitions of the other acronyms.
  • ...and 6 more figures