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

Evolving boolean functions with conjunctions and disjunctions via genetic programming

Benjamin Doerr, Andrei Lissovoi, Pietro S. Oliveto

TL;DR

This paper provides a rigorous theoretical analysis of how Genetic Programming (GP) can efficiently evolve Boolean functions, specifically conjunctions, even when the GP system has access to both AND and OR operators. The authors introduce a novel mutation operator and a "super-multiplicative drift theorem" to prove that GP can find solutions with high accuracy in a logarithmic number of iterations, both in ideal and more realistic scenarios.

What Problem Does This Paper Address?

Genetic Programming (GP) is a powerful technique for evolving computer programs, but its theoretical understanding, especially for complex functions and realistic GP setups, has lagged behind its practical success. While previous work has shown that simple GP systems can evolve Boolean conjunctions, these studies often used highly simplified GP setups and components. This paper tackles the challenge of analyzing GP's performance when it's equipped with a more realistic set of building blocks (AND and OR operators) and needs to evolve a target function (conjunction) that might not be explicitly represented by the available operators. A key problem is "bloat," where GP programs grow excessively in size without improving performance, and the authors address this by introducing a tree size limit and a modified mutation operator.

Methods

The core of the paper lies in its theoretical analysis of a modified GP algorithm called RLS-GP. The authors introduce two key innovations:

  • Modified Mutation Operator: To combat bloat and avoid getting stuck in local optima, they modify the standard HVL-Prime mutation operator. The crucial change is allowing the deletion of entire subtrees, not just single leaves, which is more effective for pruning unnecessary complexity.
  • Super-Multiplicative Drift Theorem: This is a novel theoretical tool developed by the authors. It provides stronger bounds on the convergence speed of search algorithms when the expected progress is slightly better than linear, which is crucial for analyzing the RLS-GP's performance in this more complex setting.

They analyze two scenarios:

  1. Complete Truth Table: Evaluating program quality using all possible inputs. This is an ideal but computationally expensive scenario.
  2. Polynomial Training Set: Evaluating program quality using a randomly sampled subset of inputs. This is a more realistic scenario reflecting practical GP applications.

Datasets

The paper does not introduce new datasets. Instead, it uses the concept of the "complete truth table" for Boolean functions of n variables, which consists of all $2^n$ possible input combinations. For the more realistic scenario, it uses "polynomial training sets," which are randomly sampled subsets of the complete truth table.

Key Insights and Ideas

  • GP can handle mixed operators: Even when the GP system has access to both AND and OR operators, it can still efficiently evolve a pure conjunction function. The presence of ORs doesn't inherently derail the process, especially with the introduced mechanisms.
  • Bloat control is crucial: The tree size limit and the modified deletion operator are essential for preventing GP programs from becoming excessively large and complex, which can hinder convergence.
  • Subtree deletion is powerful: Allowing subtree deletion significantly improves the GP's ability to escape local optima and find better solutions, especially when combined with a tree size limit.
  • Theoretical tools matter: The development of the "super-multiplicative drift theorem" is a significant contribution, enabling tighter theoretical bounds for GP analysis.
  • Trade-off between speed and complexity: In practice, there's a trade-off: smaller tree size limits lead to simpler solutions but take longer to evolve, while larger limits result in faster evolution but potentially more redundant components.

Key Results

  • Complete Truth Table: RLS-GP with subtree deletion and a tree size limit l can evolve the exact target conjunction function in an expected $O(l \cdot n \cdot \log^2 n)$ iterations.
  • Polynomial Training Set: RLS-GP can evolve a conjunction with a polynomially small generalization error with high probability ($1 - O(\log^2(n)/n)$) within $O(\log n)$ iterations. This means the evolved function will be correct on most inputs, even if not all.
  • Experimental Confirmation: Experiments support the theoretical findings, showing that subtree deletion helps avoid local optima and that there's a trade-off between solution complexity and runtime.

Limitations and Future Work

  • Open Problem: Removing Tree Size Limit: The paper acknowledges that the theoretical analysis relies on a tree size limit, and removing this limit while maintaining theoretical guarantees is an open problem.
  • Extension to Larger Function Sets: The analysis is focused on conjunctions. Extending it to cover more complex Boolean functions (e.g., including NOT, or more general functions) is a natural next step.
  • More Complex Target Functions: Analyzing GP for target functions that might require populations and crossover operators is also suggested for future work.
  • Practical Implications: While the theoretical results are strong, the paper notes that the theoretical bounds might be pessimistic compared to experimental observations, suggesting further refinement or alternative analytical approaches.

Summary updated

BibTeX
@inproceedings{doerr2019evolving,
  author = {Benjamin Doerr and Andrei Lissovoi and Pietro S. Oliveto},
  title = {{Evolving boolean functions with conjunctions and disjunctions via genetic programming}},
  booktitle = {GECCO},
  year = {2019},
  url = {https://openreview.net/forum?id=rXXKld4BNP},
}
Figure