Skip to content
Open access

FastSymbolicGP: A Lightweight Python Library for Efficient Symbolic Regression and Classification

Aug 2026 · Inventions · Vol 11, pp. 80 · 0 citations · 27 references

TL;DR

FastSymbolicGP, a lightweight Python library for symbolic regression, binary classification, and multiclass classification through a compact, scikit-learn-compatible interface, provides a practical balance of predictive performance, computational efficiency, task coverage, and symbolic interpretability for reproducible scientific and machine learning applications.

Abstract

Symbolic regression and symbolic classification generate explicit mathematical expressions that combine predictive modelling with direct model interpretability. However, symbolic learning based on genetic programming can be computationally expensive because large populations of candidate expressions must be repeatedly evaluated over multiple generations. This paper presents FastSymbolicGP, a lightweight Python library for symbolic regression, binary classification, and multiclass classification through a compact, scikit-learn-compatible interface. The library implements tree-based genetic programming, protected mathematical operators, tournament selection, subtree crossover, subtree, hoist, and point mutation, elitism, validation-aware model selection, adaptive parsimony, expression complexity analysis, and Numba-compiled postfix evaluation. FastSymbolicGP was evaluated through 940 successful benchmark runs covering real-world scientific regression, binary and multiclass classification, physical law recovery, dynamical system identification, parameter sensitivity, ablation, and scalability. Across four real-world scientific regression datasets, FastSymbolicGP achieved the highest mean test R2 on every dataset and obtained significantly better pooled paired results than gplearn and PySR under the evaluated configurations. These results are specific to the selected hyperparameters, primitive sets, stopping criteria, and computational budgets, and should not be interpreted as evidence of universal superiority. In binary classification, it achieved a mean balanced accuracy of 0.8507, compared with 0.7458 for gplearn, while validation-based threshold optimization and class weighting further improved performance under severe class imbalance. FastSymbolicGP also achieved competitive multiclass and dynamical system results while generally producing substantially simpler models than gplearn. In the scalability experiment with 50,000 samples, FastSymbolicGP was approximately 6.20 times faster than PySR and 1.63 times faster than gplearn, while obtaining predictive performance nearly identical to PySR. physical law experiments showed that nondimensionalization increased the dimensional validity rate of recovered FastSymbolicGP expressions from 24% to 96%, while reducing runtime and expression complexity. Analysis of the stored equation pools further showed that near-optimal model selection reduced symbolic complexity by an average of 28.6% when a simpler candidate was available, with negligible predictive degradation. These results indicate that FastSymbolicGP provides a practical balance of predictive performance, computational efficiency, task coverage, and symbolic interpretability for reproducible scientific and machine learning applications.

Read PDF

Similar papers

Review Open access Aug 2026

A Comprehensive Survey on Symbolic Regression: State-of-the-Art Approaches, Key Applications, Benchmark Evaluations, and Future Research Directions

This survey comprehensively analyzes contemporary symbolic regression methodologies by systematically integrating four paradigmatic approaches: deterministic methods, metaheuristic algorithms, neural-symbolic frameworks, and emerging hybrid strategies, establishing a unified taxonomic framework that bridges evolutionar...

Vikas Palakonda, Samira Ghorbanpour, Sangseok Yun et al. · 0 citations
#large language models Open access Sep 2026

Iterated Agent for Symbolic Regression

Symbolic regression (SR), the automated discovery of mathematical expressions from data, is a cornerstone of scientific inquiry. However, it is often hindered by the combinatorial explosion of the search space and a tendency to overfit. Popular methods, rooted in genetic programming, explore this space syntactically,...

Zhuo-Yang Song, Ze-Yu Cai, Shu-Tao Zhang et al. · 0 citations
Sep 2026

Differentiable Genetic Programming for High-dimensional Symbolic Regression.

Symbolic Regression (SR) aims to uncover hidden relationships within data by generating mathematical expressions, offering a pathway toward interpretable machine learning. Genetic Programming (GP) has traditionally dominated SR due to its flexibility in evolving expression trees. However, as the dimensionality of SR pr...

Xiao-Tian Song, Peng Zeng, Andrew Lensen et al. · 0 citations
#machine learning Preprint Sep 2026

SMILE: Bridging Continuous Optimization and Discrete Symbolic Recovery

Symbolic regression (SR) discovers closed-form mathematical expressions from data, offering interpretability beyond black-box models. Existing methods suffer from slow convergence in combinatorial search spaces and lack mechanisms to exploit compositional structure in the data. We introduce SMILE (Sine, Multiplication,...

Mansooreh Montazerin, Antonio Ortega, Ajitesh Srivastava · 0 citations
Review Aug 2026

AutoSR: Automatic Symbolic Regression by Searching Research States

We introduce Automatic Symbolic Regression (AutoSR), a fully automated system that instantiates Research-Space Symbolic Regression by searching persistent scientific investigations rather than isolated equations. Finite, noisy data often yield numerically competitive expressions that imply very different behavior outsi...

Ke-Jia Zhang, You-Ran Sun, Xinyu Ren et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.