Zobrist Hash-based Duplicate Detection in Symbolic Regression
Preprint
Abstract
Symbolic regression encompasses a family of search algorithms that aim to discover the best fitting function for a set of data without requiring an a priori specification of the model structure. The most successful and commonly used technique for symbolic regression is Genetic Programming (GP), an evolutionary search method that evolves a population of mathematical expressions through the mechanism of natural selection. In this work we analyze the efficiency of the evolutionary search in GP and show that many points in the search space are re-visited and re-evaluated multiple times by the algorithm, leading to wasted computational effort. We address this issue by introducing a caching mechanism based on the Zobrist hash, a type of hashing frequently used in abstract board games for the efficient construction and subsequent update of transposition tables. We implement our caching approach using the open-source framework Operon and demonstrate its performance on a selection of real-world regression problems, where we observe up to 34\% speedups without any detrimental effects on search quality. The hashing approach represents a straightforward way to improve runtime performance while also offering some interesting possibilities for adjusting search strategy based on cached information.Keywords
All Related Versions
This publication has 39 references indexed in Scilit:
- Revisiting Gradient-Based Local Search in Symbolic Regression2025
- Exploring the mathematic equations behind the materials science data using interpretable symbolic regressionInterdisciplinary Materials, 2024
- Symbolic Regression by Exhaustive Search: Reducing the Search Space Using Syntactical Constraints and Efficient Semantic Structure Deduplication2020
- Parameter identification for symbolic regression using nonlinear least squaresGenetic Programming and Evolvable Machines, 2019
- A global MINLP approach to symbolic regressionMathematical Programming, 2018
- FFX: Fast, Scalable, Deterministic Symbolic Regression Technology2011
- Impacts of sampling strategies in tournament selection for genetic programmingSoft Computing, 2011
- Evolutionary Computation in the Chemical Industry2008
- Alternatives in Subtree Caching for Genetic ProgrammingLecture Notes in Computer Science, 2004
- On the editing distance between unordered labeled treesInformation Processing Letters, 1992