TL;DR
This paper introduces "size-based tournaments," a novel node selection method for genetic programming (GP) that prioritizes larger subtrees. By outperforming traditional methods like unbiased selection and Koza 90/10 on standard benchmarks, it offers a more effective and simpler approach to guiding GP evolution, potentially leading to faster convergence and better solutions.
What Problem Does This Paper Address?
Genetic programming (GP) relies on reproductive operators like crossover and mutation to evolve computer programs. These operators work by selecting nodes within existing programs to be modified or replaced. The crucial question is how these nodes are selected. Current popular methods, such as unbiased random selection (which often picks small terminal nodes) and the Koza 90/10 method (which biases towards internal nodes but treats all internal nodes equally), have limitations. Unbiased selection can lead to the exchange of small, less impactful program fragments, potentially hindering the evolution of complex solutions and contributing to "code bloat" (unnecessary growth in program size). The Koza 90/10 method, while better, is somewhat arbitrary and doesn't differentiate between internal nodes of different sizes. This paper addresses the need for a more principled and effective node selection mechanism that can improve performance and potentially control code bloat.
Methods
The core contribution of this paper is the introduction of size-based tournaments for node selection in GP. This method draws inspiration from tournament selection used for choosing parent individuals in evolutionary algorithms.
Here's how it works:
- Tournament Formation: When a node needs to be selected for a genetic operation, a small group (tournament) of n nodes is randomly chosen from the individual.
- Selection: From this randomly selected group, the node with the largest subtree is chosen. The size of a subtree is defined as the total number of nodes within it.
This approach directly addresses the limitations of previous methods:
- Bias towards larger subtrees: Unlike unbiased selection, it actively favors larger, potentially more complex, program fragments.
- Differentiation by size: Unlike Koza 90/10, it distinguishes between internal nodes based on their subtree size, giving larger ones a higher chance of selection.
- Simplicity: It requires only one parameter, the tournament size (n), making it easy to implement and tune. Unbiased selection can be seen as a special case of size-based tournaments with n=1.
Datasets
The paper evaluates the proposed method on three standard GP benchmark problems:
- Symbolic Regression: Evolving a function to fit a given dataset (specifically, $f(x) = x^2 + x^3 + x^2 + x$).
- Artificial Ant: Navigating a maze to collect food (using the Santa Fe trail).
- 11-Multiplexer: A boolean function problem.
The paper does not introduce new datasets.
Key Insights and Ideas
- Size Matters for Selection: The paper strongly suggests that the size of subtrees plays a significant role in the effectiveness of node selection. Prioritizing larger subtrees appears to be a more fruitful strategy than simply picking random nodes or biasing towards internal nodes without regard for their complexity.
- Simplicity Can Be Powerful: Size-based tournaments achieve better performance with a simpler mechanism than some prior, more complex methods (like depth-dependent crossover). This suggests that elegant solutions can be found without overly intricate algorithms.
- Koza 90/10's Arbitrariness: The results highlight that the fixed 90/10 split in Koza's method might not be optimal and that its performance is often surpassed by size-based tournaments, especially those with smaller tournament sizes.
- Bloat is Not the Primary Driver of Performance: For the tested problems, the paper observes that while code bloat occurs across all methods, performance improvements are not directly correlated with program size. This implies that the quality of the selected nodes, rather than just the overall program size, is more critical for finding solutions.
Key Results
The paper presents quantitative results across the three benchmark problems:
- Symbolic Regression: Size-based tournaments with tournament sizes 2 and 3 significantly outperformed unbiased selection and Koza 90/10 in terms of computational effort (fewer fitness evaluations needed to find a solution) and number of successes. For instance, "Tourn 2" achieved a computational effort of 77,000 with 206 successes, compared to Koza 90/10's 123,500 effort and 138 successes. Larger tournament sizes (4 and 5) showed diminishing returns.
- Artificial Ant: Unbiased selection and size-based tournaments with sizes 2 and 3 roughly doubled the number of solutions and halved the computational effort compared to Koza 90/10 and larger tournament sizes. "Tourn 2" and "Tourn 3" achieved computational efforts around 2.2 million and 2.0 million respectively, with 24 and 27 successes, while Koza 90/10 had 4.56 million effort and only 12 successes.
- 11-Multiplexer: All size-based tournament runs outperformed Koza 90/10. Size-based tournaments of size 4 had the best computational effort (910,000), and size 2 found the most solutions (199). Unbiased selection was also competitive, with size-based tournaments often matching or exceeding its performance.
Limitations and Future Work
The authors acknowledge several limitations and suggest future research directions:
- Limited Problem Scope: The current tests were conducted on relatively small, standard GP problems. The authors suggest testing size-based tournaments on more challenging problems that aim for "human-competitive" results, as performance might differ.
- Static Tournament Size: The tournament size (n) was kept static throughout each run. Future work could explore dynamic or adaptive tournament sizes. This could involve decreasing the tournament size over time (akin to simulated annealing) or linking it adaptively to individuals within the population.
- Bloat Control: While the method didn't increase bloat, its primary focus was performance improvement. Further analysis into its potential bloat-reducing properties could be beneficial.
Summary updated