NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bridging directed acyclic graphs to linear representations in linear genetic programming: a case study of dynamic scheduling

Zhixing Huang, Yi Mei, Fangfang Zhang, Mengjie Zhang, Wolfgang Banzhaf

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.

Figure 4: The relationship between the LGP genotype (instruction sequence) and its corresponding phenotype (Directed Acyclic Graph).

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:

  1. Frequency-based Crossover (FX): Biases mutation based on the frequency of primitives in parent graphs.
  2. Adjacency Matrix-based Crossover (AMX): Uses neighbor relationships between primitives to guide variation.
  3. Adjacency List-based Crossover (ALX): Extracts and inserts sub-graphs using an adjacency list representation.
  4. 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.

Figure 6: Standard LGP genetic operators including crossover, macro mutation, and micro mutation.

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

BibTeX
@article{huang2024bridging,
  author = {Zhixing Huang and Yi Mei and Fangfang Zhang and Mengjie Zhang and Wolfgang Banzhaf},
  title = {{Bridging directed acyclic graphs to linear representations in linear genetic programming: a case study of dynamic scheduling}},
  journal = {Genet. Program. Evolvable Mach.},
  year = {2024},
  doi = {10.1007/s10710-023-09478-8},
}
Figure