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

Probabilistic Incremental Program Evolution: Stochastic Search Through Program Space

Rafal Salustowicz, Jürgen SchmidhuberECML 1997

Abstract

Probabilistic Incremental Program Evolution (PIPE) is a novel technique for automatic program synthesis that replaces the traditional crossover operators of Genetic Programming (GP) with a model-based stochastic search. By maintaining a Probabilistic Prototype Tree (PPT) that encodes the likelihood of instructions at specific tree positions, PIPE iteratively refines its search space based on the performance of sampled programs. This paper evaluates PIPE on function regression and Boolean parity tasks, demonstrating superior reliability, faster convergence, and reduced code bloat compared to standard Genetic Programming.

Introduction

In the field of automatic program synthesis, Genetic Programming (GP) has long been the dominant paradigm, utilizing biological metaphors like crossover and mutation to evolve populations of programs. However, crossover is often a "blind" operator that can be destructive, potentially breaking functional sub-trees by swapping vital branches for useless ones.

The relationship between a Prototype Tree and sampled programs.

PIPE addresses this by treating program synthesis as a statistical learning problem. Instead of breeding programs, PIPE learns a probability distribution over the space of possible programs using a structure called a Probabilistic Prototype Tree (PPT). This approach allows the algorithm to build a systematic model of what a "good" program looks like and sample from that model to find optimal solutions.

Methods

The core innovation of PIPE is the combination of tree-coded program representations with Population-Based Incremental Learning (PBIL). The PPT acts as a master structure where every node contains a probability vector rather than a single instruction. This vector defines the likelihood of selecting a specific function (e.g., sin, +) or a terminal (e.g., variable x, constant) for that position.

Detailed view of the Probabilistic Prototype Tree (PPT) and its node-level probability vectors.

The PIPE cycle consists of five distinct phases:

  1. Generation: A population of programs is sampled from the PPT.
  2. Evaluation: Each program is scored based on a fitness function.
  3. Learning: Probabilities in the PPT are shifted to make the best-performing programs more likely to be generated again. This includes "Elitist Learning," which refines the PPT toward the all-time best program.
  4. Mutation: Probabilities are randomly nudged to prevent the search from stalling in local optima.
  5. Pruning: Branches that have reached high certainty are trimmed to focus the search and save memory.

Results and Discussion

PIPE was benchmarked against Koza’s standard GP on two tasks: a complex oscillatory function regression and a 6-bit parity logic task.

On the 6-bit parity task—a notoriously difficult problem for search algorithms—PIPE demonstrated significant advantages:

  • Reliability: PIPE solved the problem in 70% of runs, compared to 60% for GP.
  • Efficiency: PIPE required a median of 52,000 evaluations to find a solution, whereas GP required 120,000.
  • Solution Quality: PIPE naturally resisted "code bloat," producing solutions with an average of 61 nodes, compared to 90 nodes for GP.

While PIPE showed higher variance in the function regression task, it consistently found the absolute best solutions. However, the algorithm exhibited sensitivity to initial parameter settings, such as learning rates and mutation probabilities, suggesting that tuning is critical for performance.

Conclusion

PIPE demonstrates that the "sexual reproduction" metaphor of crossover is not a requirement for evolving complex tree structures. By utilizing the PPT as a long-term search memory, PIPE offers a more systematic and often more efficient path to program synthesis. Future work will explore the scalability of this probabilistic approach to larger programs and more complex control structures like recursion.

Summary updated

BibTeX
@inproceedings{salustowicz1997probabilistic,
  author = {Rafal Salustowicz and Jürgen Schmidhuber},
  title = {{Probabilistic Incremental Program Evolution: Stochastic Search Through Program Space}},
  booktitle = {ECML},
  year = {1997},
  doi = {10.1007/3-540-62858-4\_86},
}
Figure