Explainable AI Insights for Symbolic Computation: A case study on selecting the variable ordering for cylindrical algebraic decomposition
Lynn Pickering, Tereso Del Rio Almajano, Matthew England, Kelly Cohen
TL;DR
The paper tackles the problem of selecting variable orderings in Cylindrical Algebraic Decomposition (CAD), a decision with a major impact on performance. It applies SHAP, an explainable AI tool, to a preexisting ML pipeline that predicts CAD orderings from 81 algorithmically derived features, balancing the data to improve interpretability. Through local and global SHAP analyses, the authors identify features that align with established heuristics and uncover novel features that can drive human-level heuristics. By merging and ranking these features across four models, they construct new greedy heuristics that outperform prior state-of-the-art methods on three-variable problems, while maintaining interpretability and avoiding AI dependencies in deployed software. The work demonstrates a practical pathway for using AI-derived insights to guide CAD algorithm design and suggests broader applicability of XAI-driven heuristic development in symbolic computation.
Abstract
In recent years there has been increased use of machine learning (ML) techniques within mathematics, including symbolic computation where it may be applied safely to optimise or select algorithms. This paper explores whether using explainable AI (XAI) techniques on such ML models can offer new insight for symbolic computation, inspiring new implementations within computer algebra systems that do not directly call upon AI tools. We present a case study on the use of ML to select the variable ordering for cylindrical algebraic decomposition. It has already been demonstrated that ML can make the choice well, but here we show how the SHAP tool for explainability can be used to inform new heuristics of a size and complexity similar to those human-designed heuristics currently commonly used in symbolic computation.
