{"title":"Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMs","authors":"Rashid Barket, Matthew England, Jürgen Gerhard","doi":"arxiv-2404.14973","DOIUrl":null,"url":null,"abstract":"Computer Algebra Systems (e.g. Maple) are used in research, education, and\nindustrial settings. One of their key functionalities is symbolic integration,\nwhere there are many sub-algorithms to choose from that can affect the form of\nthe output integral, and the runtime. Choosing the right sub-algorithm for a\ngiven problem is challenging: we hypothesise that Machine Learning can guide\nthis sub-algorithm choice. A key consideration of our methodology is how to\nrepresent the mathematics to the ML model: we hypothesise that a representation\nwhich encodes the tree structure of mathematical expressions would be well\nsuited. We trained both an LSTM and a TreeLSTM model for sub-algorithm\nprediction and compared them to Maple's existing approach. Our TreeLSTM\nperforms much better than the LSTM, highlighting the benefit of using an\ninformed representation of mathematical expressions. It is able to produce\nbetter outputs than Maple's current state-of-the-art meta-algorithm, giving a\nstrong basis for further research.","PeriodicalId":501033,"journal":{"name":"arXiv - CS - Symbolic Computation","volume":"45 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-04-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2404.14973","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
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.