Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Barket, Rashid, England, Matthew, Gerhard, Jürgen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913325980319744
author Barket, Rashid
England, Matthew
Gerhard, Jürgen
author_facet Barket, Rashid
England, Matthew
Gerhard, Jürgen
contents Computer Algebra Systems (e.g. Maple) are used in research, education, and industrial settings. One of their key functionalities is symbolic integration, where there are many sub-algorithms to choose from that can affect the form of the output integral, and the runtime. Choosing the right sub-algorithm for a given problem is challenging: we hypothesise that Machine Learning can guide this sub-algorithm choice. A key consideration of our methodology is how to represent the mathematics to the ML model: we hypothesise that a representation which encodes the tree structure of mathematical expressions would be well suited. We trained both an LSTM and a TreeLSTM model for sub-algorithm prediction and compared them to Maple's existing approach. Our TreeLSTM performs much better than the LSTM, highlighting the benefit of using an informed representation of mathematical expressions. It is able to produce better outputs than Maple's current state-of-the-art meta-algorithm, giving a strong basis for further research.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14973
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMs
Barket, Rashid
England, Matthew
Gerhard, Jürgen
Machine Learning
Mathematical Software
Symbolic Computation
Computer Algebra Systems (e.g. Maple) are used in research, education, and industrial settings. One of their key functionalities is symbolic integration, where there are many sub-algorithms to choose from that can affect the form of the output integral, and the runtime. Choosing the right sub-algorithm for a given problem is challenging: we hypothesise that Machine Learning can guide this sub-algorithm choice. A key consideration of our methodology is how to represent the mathematics to the ML model: we hypothesise that a representation which encodes the tree structure of mathematical expressions would be well suited. We trained both an LSTM and a TreeLSTM model for sub-algorithm prediction and compared them to Maple's existing approach. Our TreeLSTM performs much better than the LSTM, highlighting the benefit of using an informed representation of mathematical expressions. It is able to produce better outputs than Maple's current state-of-the-art meta-algorithm, giving a strong basis for further research.
title Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMs
topic Machine Learning
Mathematical Software
Symbolic Computation
url https://arxiv.org/abs/2404.14973