Genetic Programming, Validation Sets, and Parsimony Pressure

Christian Gagné, Marc Schoenauer, Marc Parizeau, Marco Tomassini

Introduction

Genetic Programming (GP) is a powerful evolutionary technique that "grows" computer programs to solve complex tasks. However, it has historically struggled with two significant issues: overfitting and code bloat. Overfitting occurs when a GP model memorizes training data but fails to generalize to new data, while code bloat refers to the tendency of programs to grow in complexity without a corresponding increase in effectiveness. This paper, originally published in 2006, investigates how standard Machine Learning (ML) practices—specifically validation sets and parsimony pressure—can mitigate these problems.

Methodology

The researchers evaluated four distinct configurations of a GP system designed for binary classification:

  1. Baseline: A standard GP approach focused solely on minimizing error on the training set.
  2. With Validation: The training data is split into training (67%) and validation (33%) sets. The system evolves a Pareto front of individuals on the training set and selects the best performer based on the validation set.
  3. With Parsimony Pressure: This configuration uses lexicographic pressure; if two programs yield the same error rate, the smaller program is preferred.
  4. Both (Hybrid): A combination of the validation set for final selection and parsimony pressure during evolution.

The GP primitives used to construct these programs included arithmetic operations, vector-to-scalar functions, and terminals for input data or random constants, as detailed in the table below.

Table 1: Primitives used in the Genetic Programming system, including arithmetic and vector operations.

Experimental Setup

The study utilized six binary classification benchmarks from the UCI Machine Learning Repository: Wisconsin Breast Cancer (bcw), Contraceptive Method Choice (cmc), German Credit Approval (ger), Ionosphere Radar Signal (ion), Pima Indians Diabetes (pid), and Spam E-mail (spa). To ensure statistical significance, the researchers employed 10-fold cross-validation, repeating the process 10 times for each fold, resulting in 100 runs per configuration.

Results and Discussion

The experimental results demonstrated that the hybrid approach ("Both") significantly reduced model complexity without sacrificing classification accuracy. As shown in the results table, the reduction in tree size was often dramatic.

Table 4: Experimental results across six datasets comparing baseline, validation, parsimony, and hybrid approaches.

Massive Size Reduction

On the bcw dataset, the baseline configuration produced trees with a mean size of 83.4 nodes. In contrast, the hybrid approach produced trees with a mean size of just 6.5 nodes—a reduction of over 92%. Despite this massive simplification, the test accuracy remained nearly identical to the baseline, supporting the idea that simpler models generalize better.

Computational Efficiency and Stability

Smaller trees are not only more interpretable but also computationally cheaper to evaluate. The hybrid approach reduced the total "effort" (primitive evaluations) by up to 50% in some cases. Furthermore, the combination of validation sets and parsimony pressure reduced the variance of the results, making the evolutionary process more predictable and less reliant on initial random seeds.

Conclusion

The findings strongly support the application of "Occam’s Razor" in Genetic Programming. By enforcing lean models through parsimony pressure and using validation sets to guide selection, researchers can produce GP models that generalize better and are significantly more efficient. Future work may explore more sophisticated stopping criteria and dynamic test cases to further refine the evolutionary pressure.

Summary updated

BibTeX
@inproceedings{gagne2006genetic,
  author = {Christian Gagné and Marc Schoenauer and Marc Parizeau and Marco Tomassini},
  title = {{Genetic Programming, Validation Sets, and Parsimony Pressure}},
  booktitle = {EuroGP},
  year = {2006},
  doi = {10.1007/11729976\_10},
}
Figure