Inexact Simplification of Symbolic Regression Expressions with Locality-sensitive Hashing

Guilherme Seidyo Imai Aldeia, Fabricio Olivetti de Franca, William G. La Cava
4/8/2024
cs.NEcs.LG

No official code found. Best implementation: gAldeia/hashing-symbolic-expressions (2 stars, last commit 2025-08-27).

Abstract

Symbolic regression (SR) searches for parametric models that accurately fit a dataset, prioritizing simplicity and interpretability. Despite this secondary objective, studies point out that the models are often overly complex due to redundant operations, introns, and bloat that arise during the iterative process, and can hinder the search with repeated exploration of bloated segments. Applying a fast heuristic algebraic simplification may not fully simplify the expression and exact methods can be infeasible depending on size or complexity of the expressions. We propose a novel agnostic simplification and bloat control for SR employing an efficient memoization with locality-sensitive hashing (LHS). The idea is that expressions and their sub-expressions traversed during the iterative simplification process are stored in a dictionary using LHS, enabling efficient retrieval of similar structures. We iterate through the expression, replacing subtrees with others of same hash if they result in a smaller expression. Empirical results shows that applying this simplification during evolution performs equal or better than without simplification in minimization of error, significantly reducing the number of nonlinear functions. This technique can learn simplification rules that work in general or for a specific problem, and improves convergence while reducing model complexity.

View on arXivView PDF

Code Implementations(1)

Simplifying symbolic regression expressions through memoization and locality-sensitive hashing

20Shell, PythonJan 11, 20241 years ago

Similar Papers

Cite this paper

@article{aldeia2024inexact,
  title  = {Inexact Simplification of Symbolic Regression Expressions with Locality-sensitive Hashing},
  author = {Guilherme Seidyo Imai Aldeia and Fabricio Olivetti de Franca and William G. La Cava},
  year   = {2024},
  eprint = {2404.05898},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.05898v1}
}

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/2404.05898.svg)](https://codeofpaper.com/paper/2404.05898)

Discussion