Transformers to Predict the Applicability of Symbolic Integration Routines
Rashid Barket, Uzma Shafiq, Matthew England, Juergen Gerhard

TL;DR
This paper explores using transformer models to predict the success of symbolic integration routines in computer algebra systems, outperforming existing heuristics and providing interpretable insights.
Contribution
It introduces a transformer-based approach for predicting integration success, demonstrating improved accuracy and interpretability over traditional heuristics in CAS.
Findings
Transformers achieve up to 30% higher accuracy than heuristics.
Inference time of transformers is negligible for practical use.
Layer Integrated Gradients can interpret transformer decisions.
Abstract
Symbolic integration is a fundamental problem in mathematics: we consider how machine learning may be used to optimise this task in a Computer Algebra System (CAS). We train transformers that predict whether a particular integration method will be successful, and compare against the existing human-made heuristics (called guards) that perform this task in a leading CAS. We find the transformer can outperform these guards, gaining up to 30% accuracy and 70% precision. We further show that the inference time of the transformer is inconsequential which shows that it is well-suited to include as a guard in a CAS. Furthermore, we use Layer Integrated Gradients to interpret the decisions that the transformer is making. If guided by a subject-matter expert, the technique can explain some of the predictions based on the input tokens, which can lead to further optimisations.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research
