A Survey on the Use of Machine Learning within Computer Algebra
Organizations: Deakin University, Australia · Coventry University, United Kingdom
Abstract
This survey explores the use of Machine Learning (ML) in the field of Computer Algebra (CA), both to optimise existing CA algorithms, and to perform symbolic computation directly. Traditional symbolic methods, while mathematically rigorous, often are computationally expensive thus limiting their use in real-world applications. Recent advances have shown that data-driven techniques can address these limitations by guiding heuristic decisions, selecting optimal algorithms, predicting structural properties of algebraic objects, or even making direct symbolic computations. We take a systematic literature review approach and uncover work in CA applications including cylindrical algebraic decomposition, Gröbner basis computation, symbolic integration, and many more. The survey compares the different ML approaches that have been employed for these tasks, ranging from decision trees to transformers. Issues uncovered by the survey include the lack of benchmark datasets for CA, which hinders the comparison of methods and the generalizability of ML models. The survey identifies the potential for explainable AI tools to help develop trust in decisions, and to drive forward CA research itself.
Figures & tables
| Category | Keywords/Databases |
|---|---|
| Keywords for ML | Machine Learning, ML, Artificial Intelligence, AI, Reinforcement Learning, RL, Deep Learning, DL. |
| Keywords for CA | Computer Algebra, Symbolic Computation, Non-linear Polynomials, Non-linear Systems, Non-linear Arithmetic, Gröbner basis, Groebner Basis, Grobner Basis, Buchberger’s Algorithm. |
| Databases Searched | Scopus, IEEE Xplore, ACM Digital Library, Science Direct. |
| Additional Sources | arXiv, MATH AI Workshop Proceedings (NeurIPS). |
| ML Keywords | Symbolic Computation and Variants | Non-linear Polynomials and Variants | Gröbner Basis and Variants |
|---|---|---|---|
| Scopus | |||
| AI variants | 347 | 222 | 89 |
| ML variants | 104 | 192 | 20 |
| RL variants | 9 | 80 | 1 |
| DL variants | 27 | 76 | 3 |
| IEEE Xplore | |||
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Study | Focus Area | Key Findings | ML Method | XAI | Drawback |
|---|---|---|---|---|---|
| Huang et al. (2014) ( Huang et al., 2014 ) | ML to choose from three human-designed heuristics for variable ordering. | ML choices better than any one heuristic. | SVM | No | Dataset limited to three variables; later found biased. |
| Huang et al. (2016) ( Huang et al., 2016 ) | ML to check if preconditioning with GB benefits solving non-linear systems with CAD. | On 1200 synthetic problems (2–4 vars), ML predicts when GB is beneficial. | SVM | No | Random dataset may not represent real-world data. |
| England and Florescu (2019) ( England and Florescu, 2019 ) | Replaced heuristics in ( Huang et al., 2014 ) with ML ordering directly. | Removes human entirely from ordering choice. | KNN, DT, MLP, SVM | No | ML ignores ranking of incorrect orderings. |
| Florescu et al. (2019) ( Florescu and England, 2019 ) | Generated new features for CAD variable ordering. | outperformed human heuristics and benefitted from added features. | KNN, DT, MLP, SVM | No | Biased dataset. |
| Florescu et al. (2020a) ( Florescu and England, 2020a ) | Open-source pipeline for CAD ordering. | Random datasets with stats similar to real-world inputs. | KNN, DT, MLP, SVM | No | Dataset realism not evaluated. |
| Florescu et al. (2020b) ( Florescu and England, 2020b ) | Cross-validation based on CAD runtime. | Sensitive to non-optimal orderings, improving reliability. | KNN, DT, MLP, SVM | No | Still framed as classification in training. |
| Study | Focus Area | Key Findings | ML Method | Drawback |
|---|---|---|---|---|
| FMN (2020) ( Löschenbrand, 2020 ) | Approximate complex polynomial systems. | ML approximates systems to allow simpler Gröbner basis computation. | Evolution strategies | Potential loss of structure; not suitable for non-permutation-invariant systems. |
| Peifer et al. (2020) ( Peifer et al., 2020 ) | Optimising Buchberger’s algorithm. | RL agent selects S-pairs for binomial systems, reducing computation. | Reinforcement Learning | Limited to binomials; trained and tested on random data. |
| Mojsilovic & Peifer (2021) ( Mojsilović et al., 2023 ) | Predicting polynomial additions. | Simple features perform better than complex algebraic ones. | LR, RNN | Indirect improvement only; focuses on prediction, not algorithmic enhancement. |
| Xu et al. (2024) ( Xu et al., 2019 ) | Variable ordering for Gröbner basis. | Model selects variable order using coefficient sets. | Deep Learning | Overhead from ANN; applies only to permutation-invariant cases. |
| Kera et al. (2024) ( Kera et al., 2024 ) | Gröbner basis produced directly by transformers. | Hybrid embedding scheme for reverse Gröbner basis generation. | Transformers | Needs large datasets; fails on out-of-range coefficients; only approximate, no easy validation. |
| Malhou et al. (2026) ( Malhou et al., 2026 ) | Gröbner basis computation using hierarchical attention transformers. | Tree-structured inductive bias matching polynomial hierarchy, combined with curriculum learning. | Hierarchical Attention Transformers | Still approximate with no easy validation; relies on curriculum learning to scale; performance beyond 13 variables unverified. |
| Study | Focus Area | Key Findings | ML/RL Integration | Drawback |
|---|---|---|---|---|
| Lample and Charton (2020) ( Lample and Charton, 2020 ) | Neural models for symbolic integration and differential equations. | Transformers solve problems that CASs cannot. | Seq2seq transformers | Limited evidence of generalizability; dataset quality concerns. |
| Albojwaid et al. (2023) ( Albojwaid et al., 2023 ) | Replication of ( Lample and Charton, 2020 ) with modified data generation. | Larger training data, same methodology. | Seq2seq transformers | Little novelty compared to prior work. |
| Barket et al. (2023) ( Barket et al., 2023 ) | Dataset generation with elementary functions. | Reverse-engineers Risch algorithm to address bias in ( Lample and Charton, 2020 ) . | Data generation for ML | Limited control over structure and length; restricted expression size. |
| Barket et al. (2024) ( Barket et al., 2024b ) | Dataset generation for elementary and non-elementary functions. | Reverse-engineers Risch-Normal algorithm; adds variability and control. | Data generation for ML | Limited benchmarking of ML benefit; not extended to special functions. |
| Barket et al. (2024) ( Barket et al., 2024a ) | Predicting optimal Maple sub-algorithms via ML. | Tree-LSTMs outperform standard LSTMs. | LSTM and Tree-LSTM | Does not generalise well enough to beat Maple on independent data. |
| Barket et al. (2024) ( Barket et al., 2024c ) | Predicting applicability of Maple methods via ML. | Improves existing guards, adds new ones; XAI reveals missing simple guard rule. | Seq2seq transformers; LIGs | Most LIG outputs not interpretable; runtime impact of guards not evaluated. |
| Study | Description | ML Role | Limitation |
| 1. Using ML to guide symbolic algorithms | |||
| Berczi et al. (2023) ( Berczi et al., 2023 ) | Resolution of singular points as a game with RL agent. | Reinforcement Learning | Reward may be better tailored to problem. |
| Hashemi et al. (2024) ( Hashemi et al., 2025 ) | ML chooses coordinate changes for putting ideals into quasi-stable position. | Feature engineered supervised learning | Tested only on random ideals; generalizability unclear. |
| 2. ML algorithm selection for resultants | |||
| Simpson et al. (2016) ( Simpson et al., 2016 ) | Predicts best resultant algorithm in Maple/Mathematica for given instance. | Feature engineered supervised learning | Trained platform-specific; cross-platform performance uncertain. |
| 3. ML to improve CA for physics | |||