Skip to main content
QUICK REVIEW

[Paper Review] SymbolicGPT: A Generative Transformer Model for Symbolic Regression

Mojtaba Valipour, Bowen You|arXiv (Cornell University)|Jun 27, 2021
Evolutionary Algorithms and ApplicationsComputer Science20 references37 citations
TL;DR

SymbolicGPT treats symbolic regression as a language-generation task, using an order-invariant T-net embedding of point clouds and a GPT-based skeleton generator to produce symbolic expressions, with constants filled via post-hoc optimization.

ABSTRACT

Symbolic regression is the task of identifying a mathematical expression that best fits a provided dataset of input and output values. Due to the richness of the space of mathematical expressions, symbolic regression is generally a challenging problem. While conventional approaches based on genetic evolution algorithms have been used for decades, deep learning-based methods are relatively new and an active research area. In this work, we present SymbolicGPT, a novel transformer-based language model for symbolic regression. This model exploits the advantages of probabilistic language models like GPT, including strength in performance and flexibility. Through comprehensive experiments, we show that our model performs strongly compared to competing models with respect to the accuracy, running time, and data efficiency.

Motivation & Objective

  • Motivate symbolic regression as a language modelling problem to improve scalability and speed.
  • Develop an order-invariant data embedding to handle variable-sized, multi-variable inputs.
  • Train a GPT-based model to generate symbolic equation skeletons that describe datasets.
  • Separate constant optimization from skeleton generation to improve efficiency.
  • Demonstrate data efficiency and faster inference compared with traditional symbolic regression methods.

Proposed method

  • Generate a large, diverse set of training equations via parse-tree templates with controlled depth and constants.
  • Produce an order-invariant embedding of input datasets using a T-net with global max-pooling.
  • Use a GPT language model to generate a skeleton equation from the dataset embedding and an initial token sequence.
  • Mask constants during skeleton generation and defer constants to a post-processing optimization step (BFGS).
  • Learn constants to decorate the skeleton and obtain the final symbolic expression.
  • Evaluate using normalized mean squared error to compare predicted vs. true outputs.

Experimental results

Research questions

  • RQ1Can symbolic regression be effectively framed as a language modelling task using an order-invariant dataset embedding?
  • RQ2Does a GPT-based skeleton generator, combined with offline training, yield faster and more accurate symbolic expressions across varying input dimensions?
  • RQ3How does SymbolicGPT perform compared with traditional methods (GP, GP Max, DSR, MLP) in terms of accuracy and speed?
  • RQ4What is the data-efficiency and scalability of a one-time trained model for regression across different numbers of input variables?
  • RQ5How effective is post-hoc constant optimization in producing accurate final expressions from skeletons?

Key findings

  • SymbolicGPT achieves higher accuracy across test cases than GP, GP Max, DSR, and MLP in their experiments.
  • SymbolicGPT provides substantial speedups, often an order of magnitude faster than competing methods for solving a symbolic regression instance.
  • SymbolicGPT maintains strong performance as the number of input variables increases, showing robustness across one to five variables.
  • The model’s performance improves with more data points, yet SymbolicGPT consistently yields lower errors than others for given dataset sizes.
  • A one-time offline training enables rapid inference for each new regression instance.
  • Constants are effectively optimized post-hoc, while the skeleton generation handles the structural form of the equation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.