Skip to main content
QUICK REVIEW

[Paper Review] GACNN: Training Deep Convolutional Neural Networks with Genetic Algorithm

Parsa Esfahanian, Mohammad Akhavan|arXiv (Cornell University)|Sep 29, 2019
Neural Networks and ApplicationsComputer Science10 citations
TL;DR

This paper proposes GACNN, a novel method for training deep convolutional neural networks (CNNs) using genetic algorithms (GAs), introducing the Accordion chromosome encoding to drastically reduce chromosome size and improve efficiency. It evaluates three GA schemes—steady-state, generational, and elitism—demonstrating that the elitism scheme with Accordion encoding achieves faster convergence and higher accuracy in early training stages compared to Adam-based backpropagation, especially on complex tasks like CIFAR-10.

ABSTRACT

Convolutional Neural Networks (CNNs) have gained a significant attraction in the recent years due to their increasing real-world applications. Their performance is highly dependent to the network structure and the selected optimization method for tuning the network parameters. In this paper, we propose novel yet efficient methods for training convolutional neural networks. The most of current state of the art learning method for CNNs are based on Gradient decent. In contrary to the traditional CNN training methods, we propose to optimize the CNNs using methods based on Genetic Algorithms (GAs). These methods are carried out using three individual GA schemes, Steady-State, Generational, and Elitism. We present new genetic operators for crossover, mutation and also an innovative encoding paradigm of CNNs to chromosomes aiming to reduce the resulting chromosome's size by a large factor. We compare the effectiveness and scalability of our encoding with the traditional encoding. Furthermore, the performance of individual GA schemes used for training the networks were compared with each other in means of convergence rate and overall accuracy. Finally, our new encoding alongside the superior GA-based training scheme is compared to Backpropagation training with Adam optimization.

Motivation & Objective

  • Address the inefficiency of traditional backpropagation with Adam optimizer in early training stages for complex CNN tasks.
  • Overcome limitations of conventional network-to-chromosome encoding in genetic algorithm-based CNN training, which becomes infeasible for large networks.
  • Develop a novel, compact chromosome encoding (Accordion) that treats entire layers as genes to reduce chromosome size and improve GA efficiency.
  • Design and evaluate new genetic operators (crossover and mutation) tailored for CNN architecture optimization.
  • Compare the performance of three GA schemes—steady-state, generational, and elitism—on CNN training in terms of convergence rate and final accuracy.

Proposed method

  • Proposes the Accordion chromosome encoding, where each layer (convolutional or fully connected) is encoded as a single gene, drastically reducing chromosome length compared to per-weight encoding.
  • Introduces novel genetic operators: a layer-wise crossover that exchanges entire layers between parent chromosomes and a mutation operator that modifies layer-specific hyperparameters (e.g., filter count, kernel size).
  • Employs three distinct GA training schemes: steady-state (replace one individual at a time), generational (replace entire population), and elitism (preserve best individuals across generations).
  • Applies the GA-based training to two deep CNN architectures on MNIST and CIFAR-10 datasets, using fitness defined by validation accuracy.
  • Compares the GA-based training with standard backpropagation using the Adam optimizer, evaluating convergence speed and final accuracy.
  • Uses a fitness evaluation mechanism that measures network performance on validation data after each generation to guide evolutionary selection.

Experimental results

Research questions

  • RQ1Can a novel chromosome encoding strategy significantly reduce the size of CNN representations in genetic algorithms, improving scalability and performance?
  • RQ2How do different GA schemes—steady-state, generational, and elitism—compare in terms of convergence rate and final accuracy when training deep CNNs?
  • RQ3Does GA-based training with the proposed encoding and operators outperform standard backpropagation with Adam in early training stages, particularly on complex datasets?
  • RQ4To what extent does the Accordion encoding enhance the efficiency and effectiveness of genetic operators in CNN architecture optimization?
  • RQ5Can the elitism scheme combine the exploration strength of generational GA with the stability of steady-state GA to deliver superior training outcomes?

Key findings

  • The Accordion encoding reduces chromosome size by a large factor compared to traditional per-weight encoding, enabling faster GA operations and more effective evolution.
  • The elitism GA scheme achieves the best balance of fast convergence and high accuracy, outperforming both steady-state and generational schemes in terms of stability and final performance.
  • GA training with the Accordion encoding and elitism scheme reaches higher validation accuracy faster than Adam-based backpropagation in the early stages of training, especially on the more complex CIFAR-10 dataset.
  • On the MNIST dataset, GA training with the proposed method achieves lower accuracy than Adam but does so more quickly in early generations, indicating faster initial exploration.
  • On CIFAR-10, the GA-based approach eventually surpasses Adam in accuracy, demonstrating its ability to scale the solution domain more effectively in complex, high-dimensional problems.
  • The generational scheme shows the fastest initial convergence but suffers from oscillations, failing to maintain high accuracy over time, while the steady-state scheme converges slowly but steadily.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.