Transformers to Predict the Applicability of Symbolic Integration Routines
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 17 of its 21 references that are in the map. First posted on arXiv 31 Oct 2024.
Builds on
17 of 21 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2020Captum: A unified and generic model interpretability library for PyTorchcited by 542
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2023Learning the greatest common divisor: explaining transformer predictionscited by 33
- 2021Pretrained Language Models are Symbolic Mathematics Solvers too!cited by 17
- 2019Can Neural Networks Learn Symbolic Rewriting?cited by 12
- 2019The Use of Deep Learning for Symbolic Integration: A Review of (Lample and Charton, 2019)cited by 11
5 more
- 2023Machine learning detects terminal singularitiescited by 9
- 2023Explainable AI Insights for Symbolic Computation: A case study on selecting the variable ordering for cylindrical algebraic decompositioncited by 7
- 2023Generating Elementary Integrable Expressionscited by 4
- 2024Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMscited by 3
- 2024The Liouville Generator for Producing Integrable Expressionscited by 2
Built on by
Citing papers per year: 2025: 2.
2 papers.