Transformer-based Planning for Symbolic Regression

Parshin Shojaee, Kazem Meidani, A. Farimani, Chandan K. Reddy
2/12/2026

No official code found. Best implementation: deep-symbolic-mathematics/TPSR (84 stars, MIT, last commit 2024-11-04).

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.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2023] This is the official code for the paper "TPSR: Transformer-based Planning for Symbolic Regression"

8418Shell, PythonOct 9, 20231 years agoMIT
ai4mathai4sciencedeep-learningequation-discoveryinterpretable-ml+5 more

Similar Papers

Cite this paper

@article{shojaee2026transformerbased,
  title  = {Transformer-based Planning for Symbolic Regression},
  author = {Parshin Shojaee and Kazem Meidani and A. Farimani and Chandan K. Reddy},
  year   = {2026},
  eprint = {2303.06833},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.06833},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.06833.svg)](https://codeofpaper.com/paper/2303.06833)

Discussion