next up previous
Next: References

Automatic Programming with Grammatical Evolution

Michael O' Neill
Dept. of Computer Science And Information Systems
University of Limerick
Ireland
Michael.ONeill@ul.ie

Abstract:

The aim of this work is to develop an Automatic Programming system drawing inspiration from biological genetic systems. Grammatical Evolution (GE), a system which can generate code in any language from variable length binary strings is the result of this investigation. Using a language definition in the form of a Backus Naur Form grammar permits the generation of programs in any language, of arbitrary complexity, through a genotype to phenotype mapping process.

Grammatical Evolution (GE) is a grammar based, variable length, linear genome system which is capable of generating code in any language. Rather than the functions and terminals associated with GP [5], GE takes a BNF specification of a language, or subset thereof, from which it can subsequently generate code. The BNF is used in a genotype to phenotype mapping process which produces a program from the genotypic binary string. Various genetic programming systems using grammars, and genotype to phenotype mapping have been developed prior to GE by other researchers, for examples see [3] [1] [15] [16] [2] [11], however GE's unique mapping process is it's distinguishing feature, see [10] for a description.

Although, at present the search technique used by the system is a Genetic Algorithm, conceivably any technique which can search variable length binary strings could be employed. Investigations in other possible search methods, and a comparison of their performances, has yet to be conducted.

In order to facilitate the evolutionary process in this system, a linear degenerate genetic code, along with a genotype to phenotype mapping has been used. The degenerate code means that there is a complex many to one mapping, i.e. codons of different values can represent the same production rule of the BNF definition. It is envisaged that these two principles serve to maintain validity of the phenotypic programs whilst allowing an unconstrained search to be performed upon the genotypic binary string. According to the neutral theory of molecular evolution [4] these principles should also serve to maintain genetic diversity within the population. This is due to the occurrence of neutral mutations, mutations which have no effect on the fitness of the phenotype. Following on from Kimura's theory the idea of neutral networks has been developed. A neutral network is comprised of individuals in the search space which are separated by single-point neutral mutations. It has been shown that within such a fitness landscape with increasing degrees of neutrality the maximum fitness attainable in a population increases [6]. The implications for GE have yet to be empirically investigated, however the suggestion is that by increasing the degeneracy in the code, the maximum obtainable fitness should rise.

During the mapping process it is possible to generate invalid (incompletely mapped) individuals, and so to counteract the transmission of these individuals to subsequent generations a Steady State replacement mechanism is employed [14]. A consequence of the Steady State method is its tendency to maintain fit individuals at the expense of less fit, and in particular, invalid individuals as these are given the lowest possible fitness value.

   figure34
Figure 1: A comparison between Grammatical Evolution and a Biological System.

GE has been successfully applied to a number of diverse problem domains such as, Symbolic Regression [12], Finding Trigonometric Identities [13], the Santa Fe Trail [10], and evolving Caching Algorithms [9]. The results compared favorably with systems such as GP, and in the case of the Santa Fe Trail problem have been shown to outperform GP [10]. An in depth analysis into the system is currently being undertaken, and some initial results can be seen in [8], and [7].




next up previous
Next: References


Thu May 20 21:05:46 IST 1999