It Is Time for New Perspectives on How to Fight Bloat in GP

Francisco Fernández de Vega, Gustavo Olague, Francisco Chávez de la O, Daniel Lanza, Wolfgang Banzhaf, Erik D. Goodman

In the world of Genetic Programming (GP), there is a persistent and frustrating problem known as bloat. Just as biological organisms might carry around "junk DNA," GP algorithms tend to evolve programs that grow larger and larger without actually becoming any smarter. This "bloat" wastes memory, slows down evolution, and makes the resulting programs nearly impossible for humans to understand.

A recent paper titled "It is Time for New Perspectives on How to Fight Bloat in GP" proposes a clever, "natural" solution: instead of counting lines of code to penalize size, why not just use the clock?

TL;DR

Researchers have developed a way to combat "bloat" in Genetic Programming by grouping individuals based on their execution time during parallel evaluation. By restricting breeding to groups of similar complexity, they reduced program size by up to two-thirds while maintaining high performance.

What Problem Does This Paper Address?

In Genetic Programming, we "evolve" computer programs to solve tasks. However, these programs often suffer from uncontrolled growth in size (bloat) that doesn't correlate with improved fitness. Traditional fixes usually involve "parsimony pressure"—essentially giving the algorithm a "speeding ticket" or a penalty for being too big.

The challenge is that measuring "size" (counting nodes in a program tree) is an extra computational step. Meanwhile, as we move toward massively parallel and distributed computing, we need bloat-control methods that fit naturally into how modern hardware works. The authors wanted to see if the inherent timing differences in a parallel system could be used to regulate program growth.

Methods

The authors introduced a method that uses execution time as a proxy for complexity. Here is how it works:

  1. Parallel Evaluation: Individuals in a population are sent to different processor cores to be evaluated.
  2. Timing: The system records exactly how long each individual takes to run its fitness test.
  3. Grouping: Instead of allowing any two programs to breed, the algorithm sorts individuals by their execution time and splits them into groups (threads).
  4. Isolated Breeding: Selection, crossover, and mutation only happen within these groups.
  5. "Fast" (small) programs breed with other fast programs.
  6. "Slow" (large) programs breed with other slow programs.

This approach leverages the hypothesis that parents of a certain size tend to produce offspring of a similar size. By isolating the "giants" from the "dwarfs," the algorithm prevents the runaway growth typically seen when large programs dominate the breeding pool.

Datasets

The researchers evaluated their approach using a classic benchmark in the GP community: the 12-bit Even Parity problem.

  • The Task: Evolve a logic circuit that returns "true" if an even number of the 12 input bits are set to 1.
  • Why this one? It is a notoriously difficult problem for GP that typically triggers significant bloat during long runs, making it the perfect "stress test" for a new anti-bloat mechanism.

Key Insights and Ideas

  • Time is "Free" Metadata: In a parallel environment, you are already measuring execution time to manage load balancing. Using this data for bloat control adds almost zero computational overhead.
  • Natural Selection via Scheduling: The method turns a hardware constraint (load balancing) into an algorithmic feature. It treats "time" and "space" (program size) as two sides of the same coin.
  • The "Similar Parent" Hypothesis: The core of the success lies in restricting crossover. When a massive program breeds with a tiny one, the result is often just another massive program. By forcing similar-sized programs to breed, the population's "size distribution" stays more stable.

Key Results

The results were striking, especially as the number of groups (threads) increased:

  • Dramatic Size Reduction: In the 128-group configuration, the average program size was reduced to roughly one-third (33%) of the size seen in a standard GP run.
  • Maintained Fitness: Despite the massive reduction in "junk code," the quality of the solutions (fitness) remained high. While there was a slight decrease in fitness as the number of groups grew very large, the authors argue the trade-off is well worth the efficiency gains.
  • Hardware Efficiency: Because the individuals were grouped by execution time, the parallel threads finished their work at similar times, leading to better CPU utilization.

Limitations and Future Work

The authors acknowledge a few "weak points":

  • Crossover Randomness: Crossover doesn't guarantee similar-sized offspring; it's a random split. While the "central tendency" helps, it isn't a perfect filter.
  • Benchmark Diversity: The study focused on the Even Parity problem. Future work needs to test this on a wider variety of symbolic regression and classification problems to ensure the "time-size" correlation holds up across different instruction sets.
  • System Noise: On a busy multi-user server, execution time can be "noisy" due to background tasks. The authors suggest that more sophisticated timing or instruction-counting might be needed in non-dedicated environments.

By rethinking bloat as a temporal problem rather than just a spatial one, this research opens the door for GP algorithms that are faster, leaner, and better suited for the multi-core era.

Summary updated

Abstract

The present and future of evolutionary algorithms depends on the proper use of modern parallel and distributed computing infrastructures. Although still sequential approaches dominate the landscape, available multi-core, many-core and distributed systems will make users and researchers to more frequently deploy parallel version of the algorithms. In such a scenario, new possibilities arise regarding the time saved when parallel evaluation of individuals are performed. And this time saving is particularly relevant in Genetic Programming. This paper studies how evaluation time influences not only time to solution in parallel/distributed systems, but may also affect size evolution of individuals in the population, and eventually will reduce the bloat phenomenon GP features. This paper considers time and space as two sides of a single coin when devising a more natural method for fighting bloat. This new perspective allows us to understand that new methods for bloat control can be derived, and the first of such a method is described and tested. Experimental data confirms the strength of the approach: using computing time as a measure of individuals’ complexity allows to control the growth in size of genetic programming individuals.
BibTeX
@inproceedings{vega2019it,
  author = {Francisco Fernández de Vega and Gustavo Olague and Francisco Chávez de la O and Daniel Lanza and Wolfgang Banzhaf and Erik D. Goodman},
  title = {{It Is Time for New Perspectives on How to Fight Bloat in GP}},
  booktitle = {GPTP},
  year = {2019},
  url = {https://openreview.net/forum?id=m5JUDbNbso},
}

Loading related content...

Figure