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

Rashid Barket, Matthew England, Juergen Gerhard

Research output: Chapter in Book/Report/Conference proceedingConference proceedingpeer-review

1 Citation (Scopus)

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.
Original languageEnglish
Title of host publicationMathematical Software – ICMS 2024
Subtitle of host publication8th International Conference, Durham, UK, July 22–25, 2024, Proceedings
EditorsKevin Buzzard, Alicia Dickenstein, Bettina Eick, Anton Leykin, Yue Ren
PublisherSpringer
Pages167-175
Number of pages9
Volume14749
ISBN (Electronic)978-3-031-64529-7
ISBN (Print)978-3-031-64528-0
DOIs
Publication statusPublished - 2024

Publication series

NameLecture Notes in Computer Science
PublisherSpringer
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Keywords

  • Computer Algebra
  • Symbolic Integration
  • Machine Learning
  • LSTM
  • TreeLSTM
  • Data Generation

Fingerprint

Dive into the research topics of 'Symbolic Integration Algorithm Selection with Machine Learning: LSTMs vs Tree LSTMs'. Together they form a unique fingerprint.

Cite this