TL;DR
The paper introduces Probabilistic Grammatical Evolution (PGE), a novel variant of Genetic Programming that replaces traditional integer-based genotypes with real-valued probabilities. By dynamically updating a Probabilistic Context-Free Grammar (PCFG) based on the choices of the fittest individuals, PGE significantly improves evolutionary performance over standard Grammatical Evolution (GE) and provides built-in explainability for feature selection.
What Problem Does This Paper Address?
Grammatical Evolution (GE) is a popular Genetic Programming variant that uses a context-free grammar (CFG) to map an algorithmic "genotype" (a string of integers) into a "phenotype" (an executable program). While powerful, standard GE suffers from two major flaws:
- High Redundancy: Many different integer strings map to the exact same program.
- Low Locality: A tiny mutation in the genotype can completely alter the structure of the resulting program, making the evolutionary search erratic and destructive.
The authors tackle these issues by rethinking the genotype-phenotype mapping process, moving away from rigid integer-modulo mapping toward a flexible, probabilistic approach.
Methods
Instead of a string of integers, PGE represents an individual's genotype as a vector of floating-point numbers (probabilities). The mapping process utilizes a Probabilistic Context-Free Grammar (PCFG), where each derivation rule has an associated selection probability.
To see the difference, consider how standard GE maps genotypes using a modulo operator:
In contrast, PGE steps through the genotype's float values to select rules based on cumulative probabilities:
Dynamic Probability Updating
What makes PGE unique is that the grammar isn't static. After evaluating each generation, the probabilities of the production rules are updated using a parameter called the learning factor ($\lambda = 1.0\%$).
The algorithm alternates between reinforcing rules used by the best individual of the current generation and the best individual found overall. Rules that successfully contribute to these elite individuals receive a probability boost, while unused rules see their probabilities decay. This feedback loop balances global exploration with local exploitation.
Datasets
The authors evaluated PGE across 100 independent runs on two standard regression benchmarks:
- Pagie Polynomial: A complex synthetic mathematical function ($1 / (1 + x^{-4}) + 1 / (1 + y^{-4})$) commonly used to test the symbolic regression capabilities of Genetic Programming.
- Boston Housing Dataset: A classic real-world machine learning dataset containing 506 entries and 13 features, split into 90% for training and 10% for testing, used to predict housing prices.
Key Insights and Ideas
- The Grammar Learns Over Time: Unlike traditional grammar-based approaches where the rules are fixed, PGE's underlying grammar adapts to the problem domain during the evolutionary run. It effectively learns a bias toward structural components that work.
- Built-in Feature Selection and Explainability: Because the grammar's probabilities reflect what works best, researchers can inspect the final grammar at the end of a run to see which variables or operations were selected most often. For example, in the Boston Housing problem, the feature
PTRATIO(pupil-teacher ratio) emerged with the highest selection probability (0.23), matching insights from independent statistical studies. - Delayed Acceleration: PGE exhibits a unique learning curve. In early generations, it progresses slowly (similar to standard GE), but around generation 10, it experiences a rapid drop in error as the optimized grammar probabilities begin to guide the search more effectively.
Key Results
PGE was compared against standard GE and Structured Grammatical Evolution (SGE), a state-of-the-art variant known for high locality. Performance was measured using Root Relative Squared Error (RRSE), where lower values mean better fitness.
- Pagie Polynomial: PGE achieved the lowest overall error (0.56 ± 0.16), outperforming both standard GE (0.68 ± 0.17) and SGE (0.59 ± 0.13). The improvement over standard GE was statistically significant.
- Boston Housing (Test Set): PGE scored 0.84 ± 0.13, significantly outperforming standard GE (0.90 ± 0.15) and achieving statistically comparable performance to SGE (0.79 ± 0.12).
Limitations and Future Work
While PGE delivers strong performance and excellent interpretability, the authors note a few areas for improvement:
- Alternative Update Mechanisms: The current linear reward/decay mechanism for updating probabilities is relatively simple; more sophisticated reinforcement learning or estimation of distribution methods could be explored.
- Locality and Redundancy Analysis: Although PGE mathematically mitigates some structural issues of GE, the paper does not provide a formal quantitative analysis of how much locality is actually improved or how much redundancy is reduced compared to SGE. This remains an open question for future research.
Summary updated