Introduction
Multimodal Adaptive Graph Evolution (MAGE) is a novel extension of Cartesian Genetic Programming (CGP) designed to address the challenges of evolving programs that must handle multiple data types simultaneously. While standard CGP represents programs as directed acyclic graphs, it often struggles when a problem involves disparate data modalities—such as processing an image alongside strings and integers.
Previous attempts to solve this, such as Mixed-Type CGP (MT-CGP), allowed functions to handle different types but frequently resulted in a "combinatorial explosion." Evolution would often waste computational resources generating "nonsense" programs where, for example, a function expecting a numerical input was provided with a text string. This led to massive search spaces, slow convergence, and high failure rates for complex, multi-typed problems.
Methodology: Type-Aware Evolution
MAGE restructures the evolutionary process to be "type-aware" from the ground up, effectively pruning the search space by making architectural errors impossible. The core of MAGE lies in its multi-chromosome representation and safe mutation operators.
Key Architectural Features
- Multi-Chromosome Representation: Instead of a single linear genome, MAGE splits the genome into multiple chromosomes, each dedicated to a specific return type (e.g., one for Integers, one for Strings).
- Type-Specific Function Libraries: Functions are grouped by their output type. This ensures that any node within the "Integer chromosome" is guaranteed to produce an integer, eliminating type mismatches at the structural level.
- Safe Mutation: MAGE employs a mutation operator that ensures changes only occur in the "active" part of the graph (nodes contributing to the final output). When a connection is modified, it is forced to connect to a node of the correct expected type, preventing runtime errors.
- Active-Node-Material-Only Mutation: To prevent evolutionary stalling, MAGE ensures that mutations result in functional changes to the program's logic rather than merely flipping "silent" genes that do not impact the output.
Experimental Evaluation
The researchers evaluated MAGE against the previous state-of-the-art, MT-CGP, using two distinct benchmarks:
- PSB2 (Second Program Synthesis Benchmark Suite): Focused on three classic problems—Basement, CamelCase, and Fizzbuzz—which require complex mixing of logic, mathematics, and string manipulation.
- P2043 Cell Image Library: A medical dataset for instance segmentation (identifying individual cells) using Phalloidin and DAPI channels, testing MAGE's ability to handle high-dimensional image data.
Key Results and Insights
The performance gap between MAGE and MT-CGP was significant across all benchmarks. By enforcing type constraints within the structure of the genome, MAGE spends more time exploring viable programs and less time evaluating broken ones.
- Success Rates: In the Fizzbuzz challenge, MAGE found a perfect solution in 17 out of 20 runs, whereas MT-CGP failed to solve it a single time (0 out of 20).
- Convergence Speed: For the CamelCase problem, MAGE reached a solution in an average of 461 generations, while MT-CGP required 10,514 generations—making MAGE over 20 times faster.
- Generalization in Medical Imaging: On the cell segmentation task, MAGE achieved a mean AP50 (Average Precision) of 0.8264 on test data, outperforming standard CGP (0.8161). This suggests that the structured approach helps evolution find simpler, more robust programs that generalize well to unseen data.
Conclusion and Future Work
MAGE represents a significant advancement in evolving explainable, multimodal algorithms. By using structure as a constraint, the algorithm no longer needs to "learn" basic type compatibility, allowing it to focus on solving the underlying logic of the problem.
Future work will look into reducing the need for manual function engineering and exploring how the system scales as the number of distinct data types increases. MAGE is particularly promising for high-stakes fields like medical imaging, where the interpretability of an evolved program is as critical as its performance.
Summary updated