Representation of Directed Acyclic Graphs by Sequences of Instructions for Symbolic Regression.
Ezequiel Lopez-Rubio, Mario Pascual-Gonzalez, Karl Thurnhofer-Hemsi
Key points
From the paper's conclusion- We introduce ISALSR (Instruction Set and Language for Symbolic Regression), an encoding that maps every labeled DAG to a canonical string over a two-tier alphabet of structural and operation-labeled tokens.
Abstract
Symbolic Regression (SR) aims to discover a closed-form mathematical expression that fits an observed dataset by representing those expressions as Directed Acyclic Graphs (DAGs). A DAG with k internal nodes admits Θ(k!) equivalent node orderings of the same expression, so structurally identical candidates repeatedly reach the fitness evaluator of the solver model, consuming search budget. We introduce ISALSR (Instruction Set and Language for Symbolic Regression), an encoding that maps every labeled DAG to a canonical string over a two-tier alphabet of structural and operation-labeled tokens. Canonical strings are reached via a greedy algorithm guided by 1-Weisfeiler-Leman (1-WL) subtree hashing. We prove that the canonical string is a complete labeled-DAG invariant under a reachability condition: two expressions share their string if and only if their DAGs are isomorphic. ISALSR integrates at the evaluation boundary and needs no change to the host search algorithm. It has been validated on a systematic enumerator (UDFS) and an evolutionary search (Bingo) over a 70-problem suite assembled from nine published benchmarks, against both the host solvers' native representation and a naive hash of a fixed-order DAG serialization. Canonicalization eliminates a mean of 38.1% of evaluations on UDFS and 43.7% on Bingo, on every one of the 70 problems under both hosts. A paired test across problems puts its reduction factor above that of the naive hash at a Cohen's d of 2.54 and 7.05, both at p < 10-12. Canonicalization consumes 0.04% of run time on UDFS and 16.1% on Bingo. Deduplication is therefore close to free where a fitness evaluation costs orders of magnitude more than a canonical string, and expensive where the two are comparable. ISALSR is the first instruction-based graph encoding to carry operation labels, edge direction and a non-commutative operator, and because the canonical form is itself a string, it also gives sequence models a target that is invariant to node renumbering. Our code is publicly available at https://github.com/MarioPasc/IsalSR.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DIGEST: Discovery-Guided LLM Tuning for Symbolic RegressionarXiv · 2026
- Discovering physical laws with parallel symbolic enumerationNature Computational Science · 2025
- Exhaustive Canonical Skeletons Generation: A Formal Dataset for Decomposable Symbolic RegressionarXiv · 2026
- Differentiable Genetic Programming for High-dimensional Symbolic Regression.IEEE transactions on pattern analysis and machine intelligence · 2026
- Iterated Agent for Symbolic RegressionCommunications in Theoretical Physics · 2026
- A Survey on the Use of Machine Learning within Computer AlgebraarXiv · 2026