Transformer-based Planning for Symbolic Regression
Abstract
Symbolic regression (SR) is a challenging task in machine learning that involves finding a mathematical expression for a function based on its values. Recent advancements in SR have demonstrated the effectiveness of pre-trained transformer-based models in generating equations as sequences, leveraging large-scale pre-training on synthetic datasets and offering notable advantages in terms of inference time over classical Genetic Programming (GP) methods. However, these models primarily rely on supervised pre-training goals borrowed from text generation and overlook equation discovery objectives like accuracy and complexity. To address this, we propose TPSR, a Transformer-based Planning strategy for Symbolic Regression that incorporates Monte Carlo Tree Search into the transformer decoding process. Unlike conventional decoding strategies, TPSR enables the integration of non-differentiable feedback, such as fitting accuracy and complexity, as external sources of knowledge into the transformer-based equation generation process. Extensive experiments on various datasets show that our approach outperforms state-of-the-art methods, enhancing the model's fitting-complexity trade-off, extrapolation abilities, and robustness to noise.
Cite
@article{arxiv.2303.06833,
title = {Transformer-based Planning for Symbolic Regression},
author = {Parshin Shojaee and Kazem Meidani and Amir Barati Farimani and Chandan K. Reddy},
journal= {arXiv preprint arXiv:2303.06833},
year = {2023}
}
Comments
NeurIPS 2023. Project code at: https://github.com/deep-symbolic-mathematics/TPSR