Introduction
Linear Genetic Programming (LGP) is a powerful evolutionary computation technique where individuals are represented as sequences of instructions. While these instructions are executed linearly, they inherently define a Directed Acyclic Graph (DAG) through the flow of data between registers. This paper explores the structural gap between the linear genotype and the graph-based phenotype, proposing a "two-way bridge" to enhance evolutionary search.
The Genotype-Phenotype Gap in LGP
In LGP, the genotype consists of a sequence of register-based instructions. The phenotype, however, is the data-flow graph (DAG) that these instructions construct. Historically, while converting code into a graph is straightforward, the reverse process—turning a graph back into valid register-based instructions—has been a significant challenge.
The primary difficulty lies in register labels. Graphs represent functional dependencies but do not inherently store the register assignments required for a linear program. Without a method to reconstruct these instructions, LGP cannot effectively utilize graph-based genetic operators that might better preserve logical "building blocks."
Bridging the Divide: Graph-Based Operators
The researchers introduced four strategies to integrate graph information back into the LGP genotype:
- Frequency-based Crossover (FX): Biases mutation based on the frequency of primitives in parent graphs.
- Adjacency Matrix-based Crossover (AMX): Uses neighbor relationships between primitives to guide variation.
- Adjacency List-based Crossover (ALX): Extracts and inserts sub-graphs using an adjacency list representation.
- Register Assignment Algorithm: A novel method to re-label registers in an incoming sub-graph, ensuring the topological structure is maintained when converted back to code.
These methods contrast with standard LGP operators, which typically operate directly on the linear instruction sequence.
Case Study: Dynamic Job Shop Scheduling
The proposed methods were evaluated in the context of Dynamic Job Shop Scheduling (DJSS). The study simulated a job shop with 10 machines and random job arrivals, testing six scenarios with varying utilization levels and optimization objectives (e.g., Maximum Tardiness).
Key Insights and Results
The experimental results highlighted several advantages of the graph-based approach:
- Superior Performance: The ALX and combined "LGP + FA" (Frequency + Adjacency) methods consistently outperformed standard LGP and Tree-based GP (TGP).
- Increased Efficiency: ALX-based methods significantly improved the "effective ratio" of the evolved code. Approximately 80% of the instructions in ALX-evolved programs were functional (exons), compared to only 55% in standard LGP.
- Robustness to Register Count: Standard LGP often struggles as the number of registers increases. The graph-based ALX operator proved resilient to this "width" problem by focusing on connectivity rather than register availability.
Conclusion
The development of a two-way bridge between LGP genotypes and phenotypes represents a significant step forward in evolutionary programming. By enabling the use of graph-based operators through sophisticated register assignment, LGP can more effectively navigate complex search spaces. Future work may extend these techniques to other domains like symbolic regression or even neural architecture search.
Summary updated