Abstract
While crossover is a critical and often indispensable component in other forms of Genetic Programming, such as Linear- and Tree-based, it has consistently been claimed that it deteriorates search performance in CGP. As a result, a mutation-alone $(1+λ)$ evolutionary strategy has become the canonical approach for CGP. Although several operators have been developed that demonstrate an increased performance over the canonical method, a general solution to the problem is still lacking. In this paper, we compare basic crossover methods, namely one-point and uniform, to variants in which nodes are "preserved," including the subgraph crossover developed by Roman Kalkreuth, the difference being that when "node preservation" is active, crossover is not allowed to break apart instructions. We also compare a node mutation operator to the traditional point mutation; the former simply replaces an entire node with a new one. We find that node preservation in both mutation and crossover improves search using symbolic regression benchmark problems, moving the field towards a general solution to CGP crossover.
Introduction
In Evolutionary Computation, Genetic Programming (GP) is a technique for evolving computer programs. Cartesian Genetic Programming (CGP) represents these programs as directed acyclic graphs (DAGs) encoded as a linear string of integers. Historically, the CGP community has favored a mutation-only strategy, specifically the $(1 + \lambda)$ evolutionary strategy, because standard crossover operators often proved destructive. This destructiveness stems from "breaking" instructions—swapping a node's function while leaving its original input pointers, or vice versa—which disrupts the positional dependence inherent in the graph structure. This paper investigates whether "node preservation" can mitigate these issues and make crossover a viable, or even superior, search operator in CGP.
Methodology: The Concept of Node Preservation
The core innovation presented is the shift from treating the CGP genome as a flat vector of integers to treating it as a collection of indivisible "nodes." In a standard CGP genome, a node is defined by a function (operator) and its inputs (operands).
Crossover and Mutation Variants
The authors propose and compare several operators to test the impact of granularity:
- Node Preservation in Crossover: In one-point or uniform crossover, the algorithm is restricted from splitting a node. It must swap the entire triplet (Operator, Operand0, Operand1) as a single unit.
- Node Mutation (NM): Unlike standard point mutation (PM) which changes a single integer in the genome, node mutation replaces an entire randomly selected node with a completely new one.
- Subgraph Crossover (SGx): A more advanced method that preserves nodes and includes a "rewiring" step to maintain the activity of subgraphs within the offspring.
Experimental Design
The effectiveness of these operators was tested against ten symbolic regression benchmarks, including the Koza series (1-3), the Nguyen series (4-7), and complex optimization landscapes like Ackley, Rastrigin, and Levy. These problems require the search to find mathematical expressions that minimize error relative to a set of target data points.
Key Results and Discussion
The study utilized the Plackett-Luce model to rank the performance of different operator combinations. Several key insights emerged:
- Superiority of Node Preservation: Methods that utilized node preservation in both crossover and mutation consistently outperformed their "flattened" counterparts (where nodes could be broken) and the canonical mutation-only approach.
- The Power of Node Mutation: Node mutation was found to have a 52% higher probability of producing a superior model compared to standard point mutation. This suggests that larger, atomic changes to the graph help the search escape local optima.
- Subgraph Crossover Performance: Subgraph crossover (SGx) emerged as the overall top performer, indicating that preserving functional sub-structures is highly beneficial for CGP search efficiency.
- Complexity Trade-off: While crossover methods achieved higher accuracy, the canonical mutation-only approach tended to produce smaller, less complex models. However, the authors emphasize that accuracy is the primary metric for search performance in these benchmarks.
- Challenging the Canon: Surprisingly, the canonical $(1+4)$ mutation-only strategy performed significantly worse than the crossover-based methods in these benchmarks. This suggests that the historical dismissal of crossover in CGP may have been premature, rooted in suboptimal operator granularity rather than an inherent limitation of the representation.
Conclusion and Future Work
This research demonstrates that by respecting the "node" as the fundamental unit of evolution, crossover becomes a highly effective tool for Cartesian Genetic Programming. Node preservation prevents the destruction of useful functional units, allowing for more productive recombination. Future work should explore the application of these techniques beyond symbolic regression, specifically in domains like Boolean logic and robotic control, and further refine the "rewiring" mechanisms used in subgraph crossover to optimize functional integration.
Summary updated