Abstract
Genetic programming is an often-used technique for symbolic regression: finding symbolic expressions that match data from an unknown function. To make the symbolic regression more efficient, one can also use dimensionally-aware genetic programming that constrains the physical units of the equation. Nevertheless, there is no formal analysis of how much dimensionality awareness helps in the regression process. In this paper, we conduct a fitness landscape analysis of dimensionally-aware genetic programming search spaces on a subset of equations from Richard Feynman’s well-known lectures. We define an initialisation procedure and an accompanying set of neighbourhood operators for conducting the local search within the physical unit constraints. Our experiments show that the added information about the variable dimensionality can efficiently guide the search algorithm. Still, further analysis of the differences between the dimensionally-aware and standard genetic programming landscapes is needed to help in the design of efficient evolutionary operators to be used in a dimensionally-aware regression.
Introduction
Symbolic regression is often considered the "holy grail" of data science: the goal is to discover the exact mathematical formula that generated a given set of numerical data. Genetic Programming (GP) is a popular tool for this task, but it frequently struggles with an astronomical search space. Without constraints, GP often produces "nonsense" equations that might fit data points numerically but violate basic physical laws—for instance, attempting to add mass to time.
While Dimensionally-Aware GP (DAGP) has been proposed to mitigate this, there has been a lack of formal understanding regarding how these physical constraints transform the search difficulty. This paper employs Fitness Landscape Analysis to map the "peaks and valleys" of the search space, determining if dimensional constraints make the global optimum (the correct physical equation) significantly easier to locate.
Methodology
The authors implement a local search version of DAGP and compare its performance against standard GP. The core of this approach relies on enforcing physical consistency through unit signatures and constrained operators.
Unit Signatures and Constrained Operators
Every variable and constant is assigned a vector representing five base units: length, time, mass, temperature, and potential. For example, acceleration is represented as $[1, -2, 0, 0, 0]$ (meters per second squared). The algorithm restricts operations to those that are physically valid: while multiplication and division are always permissible (resulting in a new unit signature), addition and subtraction are only allowed between terms with identical unit signatures.
Analytical Framework
To analyze the search space, the researchers used Local Optima Networks (LONs). LONs are graphs where nodes represent local optima (candidate equations) and edges represent transitions between them. This visualization allows for the assessment of the connectivity and "clumpiness" of the search space. Additionally, Linear Scaling was employed to automatically determine optimal coefficients ($a$ and $b$) for expressions like $(a + b \cdot T)$, allowing the GP to focus on structural discovery rather than constant optimization.
Datasets
The study utilizes the Feynman Symbolic Regression Database, selecting 27 equations for detailed analysis. These equations vary in complexity, featuring between 1 and 9 variables and a range of mathematical operators.
Key Results and Insights
The "Trivialization" Effect
For many physical laws, the requirement for matching units is so restrictive that the search space effectively collapses. In several cases, the correct unit signature was only possible for a single initial expression, making the solution instantaneous. For equations like I.12.5 or I.14.3, DAGP found the correct solution in exactly one evaluation, whereas standard GP required thousands.
Landscape Topology and Connectivity
LON analysis revealed that these fitness landscapes often exhibit "small-world" properties. While most local optima are clustered, sparse long-range connections exist. Pruning the search space by units doesn't just reduce its size; it changes its topology. Rugged landscapes full of local traps in standard GP often became smooth or even single-node landscapes in DAGP. For complex equations like II.2.42 (5 variables), DAGP reached a solution in roughly 30,000 evaluations, significantly outperforming standard GP which often failed to converge.
The Role of Linear Scaling
Results indicated that linear scaling is essential for both DAGP and standard GP. By offloading the task of finding precise constants to a simple regression, the evolutionary process can focus entirely on the logical structure of the formula.
Conclusion and Future Work
While DAGP demonstrates significant efficiency gains, it currently faces limitations regarding operator vocabulary. The implementation struggled with equations involving square roots, exponentials, or trigonometric functions. Future work will focus on integrating these dimensional constraints directly into the mutation and crossover operators of population-based GP and exploring "relaxed" constraints to handle measurement noise in real-world data.
Summary updated