[Paper Review] Neuroevolution of Neural Network Architectures Using CoDeepNEAT and Keras
This paper presents an open-source implementation of CoDeepNEAT, a neuroevolution framework that automates neural network architecture and hyperparameter search using evolutionary algorithms, integrated with the Keras deep learning library. The approach achieves competitive performance on MNIST and CIFAR-10 with small populations and limited hardware, demonstrating feasibility for accessible, automated neural architecture search.
Machine learning is a huge field of study in computer science and statistics dedicated to the execution of computational tasks through algorithms that do not require explicit instructions but instead rely on learning patterns from data samples to automate inferences. A large portion of the work involved in a machine learning project is to define the best type of algorithm to solve a given problem. Neural networks - especially deep neural networks - are the predominant type of solution in the field. However, the networks themselves can produce very different results according to the architectural choices made for them. Finding the optimal network topology and configurations for a given problem is a challenge that requires domain knowledge and testing efforts due to a large number of parameters that need to be considered. The purpose of this work is to propose an adapted implementation of a well-established evolutionary technique from the neuroevolution field that manages to automate the tasks of topology and hyperparameter selection. It uses a popular and accessible machine learning framework - Keras - as the back-end, presenting results and proposed changes concerning the original algorithm. The implementation is available at GitHub (https://github.com/sbcblab/Keras-CoDeepNEAT) with documentation and examples to reproduce the experiments performed for this work.
Motivation & Objective
- To address the challenge of manually designing optimal neural network architectures and hyperparameters, which requires significant domain expertise and computational effort.
- To adapt the CoDeepNEAT algorithm—a neuroevolution method based on NEAT—for integration with Keras, a widely used, accessible deep learning framework.
- To enable researchers and practitioners to reproduce and extend neuroevolution experiments with minimal setup and clear documentation.
- To evaluate the performance of the Keras-integrated CoDeepNEAT on standard image classification benchmarks (MNIST and CIFAR-10) under constrained hardware resources.
- To identify bottlenecks in the evolutionary process, particularly the high computational cost of training all generated networks, and suggest future improvements.
Proposed method
- The implementation uses CoDeepNEAT’s co-evolutionary mechanism, where neural network modules evolve independently and are combined through crossover and mutation.
- Genetic operations include node and connection mutations, as well as speciation to preserve diversity and prevent premature convergence.
- The algorithm leverages historical markings to track lineage and enable meaningful crossover between similar network structures.
- Keras is used as the backend for neural network execution, enabling compatibility with modern deep learning workflows and hardware acceleration.
- Network fitness is evaluated via training and validation accuracy on benchmark datasets, with selection based on performance across generations.
- The framework supports configurable population size, generation count, and evolutionary parameters, with support for distributed or parallel evaluation.
Experimental results
Research questions
- RQ1Can CoDeepNEAT be effectively adapted to work with the Keras deep learning framework to enable accessible, reproducible neural architecture search?
- RQ2How well does the Keras-CoDeepNEAT implementation perform on standard image classification benchmarks like MNIST and CIFAR-10 with limited computational resources?
- RQ3What are the key performance bottlenecks in the evolutionary process, particularly regarding training time for each candidate network?
- RQ4To what extent can small population sizes and limited generations produce competitive architectures compared to larger runs?
- RQ5What improvements can be made to reduce evaluation cost, such as selective evaluation or domain-specific topology constraints?
Key findings
- The Keras-CoDeepNEAT implementation successfully generates competitive neural network architectures on MNIST and CIFAR-10 using only small population sizes and limited hardware.
- Even with constrained resources, the method achieves acceptable performance, demonstrating the feasibility of automated architecture search on standard workstations.
- Larger populations and more generations consistently yield better results, confirming the scalability of the approach with increased computational budget.
- The most time-consuming phase of the algorithm is the training of candidate networks, highlighting the need for more efficient evaluation strategies.
- The integration with Keras enables seamless use of modern deep learning tools, including GPU acceleration and model checkpointing, enhancing usability and reproducibility.
- The authors identify that future improvements should focus on reducing evaluation cost through selective evaluation or domain-aware topology generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.