This paper presents Dynamic Structured Grammatical Evolution (DSGE), a novel approach to NeuroEvolution that breaks through the "shallow" bottleneck of previous grammar-based methods. By introducing dynamic production rules, the authors enable the automatic evolution of both the topology and weights of multi-layered artificial neural networks (ANNs).
TL;DR
DSGE introduces a dynamic genotypic representation that allows grammars to adapt at runtime, enabling the evolution of deep, multi-layered neural networks with multiple output neurons. It outperforms traditional Grammatical Evolution (GE) and Structured Grammatical Evolution (SGE) across various classification benchmarks by effectively managing the connectivity constraints of complex topologies.
What Problem Does This Paper Address?
In the field of NeuroEvolution, researchers use evolutionary algorithms to automate the design of neural networks. Grammatical Evolution (GE) is a popular sub-field because it uses a formal grammar to define the search space, making it highly flexible.
However, standard GE has a major limitation: static grammars. When evolving a multi-layered network, a grammar needs to know how many neurons exist in "Layer A" to define valid connections for "Layer B." Because the number of neurons is itself an evolved parameter, a static grammar cannot easily track these dependencies. Consequently, most previous grammar-based approaches were restricted to single-hidden-layer networks with a single output.
Methods
The authors build upon Structured Grammatical Evolution (SGE), which maps genotypes to phenotypes using specific lists for each non-terminal symbol, reducing redundancy and improving "locality" (the idea that small changes in the genotype lead to small changes in the phenotype).
The "Dynamic" Innovation
The core contribution is the Dynamic aspect of DSGE:
- Runtime Rule Generation: As the algorithm expands the network, it creates new production rules (e.g.,
<features-i>) on the fly. These rules encode the specific neurons available in previous layers that the current layer can use as inputs. - Variable Genotype Length: Unlike GE, where genotypes are often fixed-length and full of "silent" (unused) segments, DSGE genotypes grow only as needed to represent the complexity of the evolved network.
- Connectivity Heuristics: To prevent the evolution of "zombie" neurons (nodes not connected to the output), the authors implemented a probability distribution that favors connections to the most recent hidden layers.
Datasets
The authors evaluated DSGE on four binary classification problems of increasing complexity:
- Flame: A synthetic 2D dataset for clustering/classification.
- WDBC (Wisconsin Breast Cancer): 30 features, 569 instances.
- Ionosphere: Radar return data with 34 features.
- Sonar: 60 features, 208 instances (the most challenging set).
Key Insights and Ideas
- Solving the Connectivity Constraint: The "aha moment" is realizing that the grammar itself must be a dynamic property of the individual. By letting the grammar evolve alongside the network, the system can guarantee that every evolved connection is valid, regardless of how many layers or neurons are generated.
- Locality is King: DSGE's performance boost over GE is largely attributed to better locality. In GE, a single mutation can trigger a "ripple effect" that completely changes the network's meaning. In DSGE, mutations are more surgical, allowing the evolutionary process to fine-tune topologies effectively.
- Complexity vs. Trainability: The authors found that DSGE is capable of evolving much more complex networks (more neurons and features) than SGE or GE. Crucially, it manages to tune the weights of these larger networks successfully, rather than getting lost in the high-dimensional search space.
Key Results
DSGE consistently outperformed both GE and SGE across all metrics (Fitness, RMSE, Accuracy, AUROC, and F-measure).
- Performance Gap: On the challenging Sonar dataset, DSGE achieved significantly better fitness evolution than its predecessors.
- Statistical Significance: Using the Mann-Whitney U test, the authors confirmed that DSGE is statistically superior to SGE in 31 out of 36 comparisons, often with a "large effect size."
- Deep Evolution: DSGE successfully evolved networks with up to 8 hidden layers, whereas previous methods were stuck at one. While simpler datasets (like Flame) didn't strictly require deep architectures, the more complex datasets showed a clear trend where deeper, evolved networks provided better generalization.
Limitations and Future Work
- Computational Cost: Evolving both topology and weights simultaneously is expensive. The authors suggest a hybrid approach for future work: using DSGE to find the initial topology and weights, followed by a gradient-based "fine-tuning" stage (like backpropagation).
- Dataset Scale: The current study focuses on relatively small UCI benchmarks. The authors acknowledge the need to test DSGE on high-dimensional image datasets like MNIST or CIFAR.
- Layer Diversity: The current grammar focuses on standard fully-connected layers. Future iterations aim to include specialized layers like convolutional and pooling layers to tackle computer vision tasks.
Summary updated