Transformer Semantic Genetic Programming for d-dimensional Symbolic Regression Problems
Preprint
Abstract
Transformer Semantic Genetic Programming (TSGP) is a semantic search approach that uses a pre-trained transformer model as a variation operator to generate offspring programs with controlled semantic similarity to a given parent. Unlike other semantic GP approaches that rely on fixed syntactic transformations, TSGP aims to learn diverse structural variations that lead to solutions with similar semantics. We find that a single transformer model trained on millions of programs is able to generalize across symbolic regression problems of varying dimension. Evaluated on 24 real-world and synthetic datasets, TSGP significantly outperforms standard GP, SLIM_GSGP, Deep Symbolic Regression, and Denoising Autoencoder GP, achieving an average rank of 1.58 across all benchmarks. Moreover, TSGP produces more compact solutions than SLIM_GSGP, despite its higher accuracy. In addition, the target semantic distance $\mathrm{SD}_t$ is able to control the step size in the semantic space: small values of $\mathrm{SD}_t$ enable consistent improvement in fitness but often lead to larger programs, while larger values promote faster convergence and compactness. Thus, $\mathrm{SD}_t$ provides an effective mechanism for balancing exploration and exploitation.
Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- The Faiss LibraryIEEE Transactions on Big Data, 2025
- Denoising autoencoder genetic programming: strategies to control exploration and exploitation in searchGenetic Programming and Evolvable Machines, 2023
- Simplification of genetic programs: a literature surveyData Mining and Knowledge Discovery, 2022
- A Unified Framework for Deep Symbolic Regression2022
- PMLB v1.0: an open-source dataset collection for benchmarking machine learning methodsBioinformatics, 2021
- SymPy: symbolic computing in PythonPeerJ Computer Science, 2017
- A survey of semantic methods in genetic programmingGenetic Programming and Evolvable Machines, 2014
- Prediction of high performance concrete strength using Genetic Programming with geometric semantic genetic operatorsExpert Systems with Applications, 2013
- Geometric Semantic Genetic Programming2012
- Semantically driven mutation in genetic programming2009